:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #475569;
    --secondary-light: #64748b;
    --success: #10b981;
    --success-dark: #059669;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --info: #06b6d4;
    --info-dark: #0891b2;
    --light: #f8fafc;
    --light-gray: #f1f5f9;
    --dark: #0f172a;
    --dark-gray: #1e293b;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #f8f9fa;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.5;
}

/* ===== NAVBAR ===== */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* ===== NAVBAR LOGO ===== */
.navbar-brand {
    font-weight: 700;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
    padding: 0;
}

.navbar-logo {
    height: 65px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

/* Main Navigation Links */
.navbar-nav {
    align-items: center;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.625rem 1rem !important;
    transition: all 0.2s;
    border-radius: 0.5rem;
    position: relative;
    font-size: 0.9375rem;
}

.nav-link:hover {
    color: var(--primary) !important;
    background-color: var(--light);
}

.nav-link.active {
    color: var(--primary) !important;
    background-color: rgba(37, 99, 235, 0.1);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}

.nav-link i {
    font-size: 0.875rem;
    margin-right: 0.375rem;
}

/* Auth Buttons - Updated Design */
.btn-auth {
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

/* Login Button - Outline Style */
.btn-auth.btn-login {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.btn-login:hover {
    color: white;
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Register Button - Solid with Gradient */
.btn-auth.btn-register {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-auth.btn-register::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 100%
    );
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: -1;
}

.btn-register:hover {
    box-shadow: 0 10px 30px rgba(37, 99, 135, 0.45);
    color: white;
}

.btn-register:hover::before {
    transform: translateX(0);
}

.btn-auth i {
    display: inline-block;
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.btn-auth:hover i {
    transform: scale(1);
}

/* User Dropdown */
.user-dropdown .nav-link {
    padding: 0.5rem 1rem !important;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
}

.user-dropdown .nav-link:hover {
    border-color: var(--primary);
    background: var(--light);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dropdown-menu {
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    padding: 0.5rem;
    min-width: 220px;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background-color: var(--light);
    color: var(--primary);
}

.dropdown-item:active {
    background-color: var(--light-gray);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--border);
}

/* Hamburger Icon */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.navbar-toggler:hover {
    background-color: var(--light);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(37, 99, 235, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Menu */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0 !important;
        right: -100%;
        width: 280px;
        min-height: 100vh;
        height: 100%;
        background: #ffffff;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        padding: 1.5rem;
        padding-bottom: 3rem;
        transition: right 0.3s ease-in-out;
        z-index: 1050;
        overflow-y: auto;
        margin: 0 !important;
        border: none;
        border-radius: 0;
        display: block !important; /* Override Bootstrap display */
        visibility: hidden;
    }

    /* Override Bootstrap collapsing animation */
    .navbar-collapse.collapsing {
        right: -100%;
        height: 100vh !important;
        transition: right 0.3s ease-in-out, visibility 0s;
        visibility: visible;
    }

    .navbar-collapse.show {
        right: 0;
        visibility: visible;
    }

    /* Mobile Sidebar Close Button */
    .mobile-sidebar-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        border-radius: 0.5rem;
        color: var(--danger);
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
        z-index: 10;
    }

    .mobile-sidebar-close:hover {
        background-color: #fee2e2; /* Light red background on hover */
        color: var(--danger-dark); /* Darker red on hover */
    }

    .mobile-sidebar-close:active {
        transform: scale(0.95);
    }

    .navbar-logo {
        height: 50px;
    }

    .navbar-nav {
        gap: 0.25rem;
        margin-top: 3rem;
    }

    .nav-link {
        padding: 0.625rem 0.875rem !important;
        text-align: left;
        font-size: 0.875rem;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link.active {
        background-color: rgba(37, 99, 235, 0.08);
    }

    .nav-link.text-danger {
        color: var(--danger) !important;
    }

    .nav-link.text-danger:hover {
        background-color: #fee2e2 !important;
        color: var(--danger-dark) !important;
    }

    /* Mobile User Section */
    .mobile-user-section {
        padding: 0.75rem;
        background: var(--light);
        border-radius: 0.625rem;
        margin-bottom: 0.75rem;
    }

    .mobile-user-info {
        display: flex;
        align-items: center;
        gap: 0.625rem;
    }

    .mobile-user-info .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.9375rem;
    }

    .mobile-user-details {
        flex: 1;
        min-width: 0;
    }

    .mobile-user-name {
        font-weight: 600;
        font-size: 0.9375rem;
        color: var(--text-primary);
        margin-bottom: 0.125rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-user-email {
        font-size: 0.75rem;
        color: var(--text-muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Mobile Menu Sections */
    .mobile-menu-section {
        margin-bottom: 0.25rem;
    }

    .mobile-menu-section:last-child {
        margin-bottom: 0;
    }

    .mobile-divider {
        height: 1px;
        background: var(--border);
        margin: 0.625rem 0;
    }

    .btn-auth {
        width: 100%;
        margin-top: 0.5rem;
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 0.625rem;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }

    .btn-login {
        margin-bottom: 0.5rem;
    }

    .btn-auth i {
        display: inline-block;
        font-size: 0.9375rem;
    }

    .nav-link i {
        font-size: 0.8125rem;
        margin-right: 0.5rem;
    }
}

@media (min-width: 992px) {
    .mobile-sidebar-close {
        display: none !important;
    }

    .mobile-user-section,
    .mobile-divider {
        display: none !important;
    }

    .navbar-nav .nav-item {
        margin: 0;
    }
}

/* ===== BUTTONS ===== */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: var(--success-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.25);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: var(--danger-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.25);
}

.btn-warning {
    background-color: var(--warning);
    color: white;
}

.btn-warning:hover {
    background-color: var(--warning-dark);
}

.btn-info {
    background-color: var(--info);
    color: white;
}

.btn-info:hover {
    background-color: var(--info-dark);
}

.btn-outline-info {
    border: 1px solid var(--info);
    color: var(--info);
    background: white;
}

.btn-outline-danger {
    border: 1px solid var(--danger);
    color: var(--danger);
    background: white;
}

.btn-outline-dark {
    border: 1px solid var(--dark);
    color: var(--dark);
    background: white;
}

.btn-outline-warning {
    border: 1px solid var(--warning);
    color: var(--warning);
    background: white;
}

.btn-outline-primary {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: white;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-outline-secondary {
    border: 1px solid var(--border);
    color: var(--text-secondary);
    background: white;
}

.btn-outline-secondary:hover {
    background-color: var(--light);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* ===== CARDS ===== */
.card {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    background: white;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
}

/* ===== BADGES ===== */
.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    line-height: 1;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-success {
    background-color: var(--success) !important;
}

.bg-danger {
    background-color: var(--danger) !important;
}

.bg-warning {
    background-color: var(--warning) !important;
}

.bg-info {
    background-color: var(--info) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-bottom: 2rem;
    /* border-bottom: 1px solid var(--border); */
}

.page-header h1 {
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.page-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
}

/* ===== TABLES ===== */
.table {
    color: var(--text-primary);
}

.table-hover tbody tr {
    transition: background-color 0.2s;
}

.table-hover tbody tr:hover {
    background-color: var(--light);
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
    padding: 0.875rem 1rem;
    background: var(--light);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
}

/* ===== FORMS ===== */
.form-control,
.form-select {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    transition: all 0.2s;
    font-size: 0.9375rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

/* ===== ALERTS ===== */
.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    font-weight: 500;
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
}

.alert i {
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left-color: var(--success);
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-left-color: var(--danger);
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left-color: var(--warning);
}

.alert-info {
    background-color: #cffafe;
    color: #155e75;
    border-left-color: var(--info);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: calc(100vh - 280px);
    padding: 0;
}

/* ===== TABS ===== */
.nav-tabs {
    border-bottom: 2px solid var(--border);
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.875rem 1.5rem !important;
    margin-bottom: -2px;
    transition: all 0.2s;
    font-size: 0.9375rem;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--border-light);
    color: var(--text-primary) !important;
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary) !important;
    border-bottom-color: var(--primary);
    background: transparent;
}

/* ===== FOOTER DESIGN (KarirKu Style) ===== */
footer {
    background: #ffffff;
    padding: 3.5rem 0 1.5rem;
    margin-top: 4rem;
}

footer .container {
    margin: 0 auto;
}

/* Footer Top Section */
.footer-top {
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand & Newsletter Column */
.footer-brand-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-brand-logo i {
    color: #3b82f6;
    font-size: 1.75rem;
}

.footer-brand-section h3 {
    color: #3b82f6;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.footer-description {
    color: #94a3b8;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Social Section */
.social-section {
    margin-top: 2rem;
}

.social-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 42px;
    height: 42px;
    background: #334155;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #3b82f6;
    color: white;
}

.social-link i {
    font-size: 1rem;
}

/* Footer Columns */
.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.875rem;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #3b82f6;
}

/* Contact Info */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #94a3b8;
    font-size: 0.9375rem;
}

.contact-info li:last-child {
    margin-bottom: 0;
}

.contact-info i {
    color: #3b82f6;
    font-size: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.contact-info a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: #3b82f6;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #3b82f6;
}

/* ===== PAGINATION ===== */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.9375rem;
}

.page-link:hover {
    background-color: var(--light);
    border-color: var(--primary);
    color: var(--primary);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-item.disabled .page-link {
    opacity: 0.5;
}

/* ===== UTILITIES ===== */
.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

/* SweetAlert2 Custom Styling */
.swal-border-radius {
    border-radius: 12px !important;
}
.swal2-popup {
    font-family: "Poppins", sans-serif !important;
}
.swal2-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
}
.swal2-html-container {
    font-size: 1rem !important;
}
.btn-lg {
    padding: 0.5rem 1.5rem !important;
    font-weight: 500 !important;
}

/* ===== RESPONSIVE ===== */

/* Tablet (768px - 991px) */
@media (max-width: 991.98px) {
    body {
        font-size: 15px;
    }

    .navbar-brand {
        font-size: 1.375rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    footer {
        padding: 2.5rem 0 1rem;
    }

    /* Footer Responsive Tablet */
    .footer-logo-img {
        height: 55px;
    }

    .footer-brand-logo h3 {
        font-size: 1.5rem;
    }

    .footer-brand-logo i {
        font-size: 1.5rem;
    }

    .footer-description {
        font-size: 0.875rem;
    }

    .footer-column h4 {
        font-size: 0.9375rem;
    }

    .footer-links a {
        font-size: 0.875rem;
    }

    .contact-info li {
        font-size: 0.875rem;
    }
}

/* Mobile (576px - 767px) */
@media (max-width: 767.98px) {
    body {
        font-size: 14px;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-brand i {
        font-size: 1.5rem;
    }

    .navbar-logo {
        height: 50px;
    }

    .page-header {
        padding: 1.5rem 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .card-header {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .table thead th {
        font-size: 0.7rem;
        padding: 0.625rem 0.5rem;
    }

    .table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    footer {
        padding: 2rem 0 1rem;
    }

    footer h5 {
        font-size: 1rem;
    }

    footer p,
    footer a {
        font-size: 0.875rem;
    }
    .footer-logo-img {
        height: 50px;
    }
    /* Footer Responsive Mobile */
    .footer-brand-logo h3 {
        font-size: 1.375rem;
    }

    .footer-brand-logo i {
        font-size: 1.375rem;
    }

    .footer-description {
        font-size: 0.8125rem;
        margin-bottom: 1.5rem;
    }

    .social-section {
        margin-top: 1.5rem;
    }

    .footer-column h4 {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .footer-links li {
        margin-bottom: 0.75rem;
    }

    .footer-links a {
        font-size: 0.8125rem;
    }

    .contact-info li {
        font-size: 0.8125rem;
        margin-bottom: 0.875rem;
    }

    .contact-info i {
        font-size: 0.875rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-copyright {
        font-size: 0.8125rem;
    }
}

/* Small Mobile (360px - 575px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar-logo {
        height: 42px;
    }

    .alert {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .badge {
        padding: 0.3rem 0.625rem;
        font-size: 0.7rem;
    }

    .page-link {
        padding: 0.375rem 0.625rem;
        font-size: 0.875rem;
    }
    /* Footer Responsive Small Mobile */
    .footer-top {
        padding-bottom: 2rem;
    }

    .footer-logo-img {
        height: 45px;
    }

    .footer-brand-logo {
        gap: 0.5rem;
        margin-bottom: 0.875rem;
    }

    .footer-brand-logo h3 {
        font-size: 1.25rem;
    }

    .footer-brand-logo i {
        font-size: 1.25rem;
    }

    .footer-description {
        font-size: 0.75rem;
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }

    .social-section h4 {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .social-link {
        width: 38px;
        height: 38px;
    }

    .social-link i {
        font-size: 0.875rem;
    }

    .footer-column h4 {
        font-size: 0.8125rem;
        margin-bottom: 0.875rem;
    }

    .footer-links li {
        margin-bottom: 0.625rem;
    }

    .footer-links a {
        font-size: 0.75rem;
    }

    .contact-info li {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .contact-info i {
        font-size: 0.8125rem;
    }

    .footer-bottom {
        padding-top: 1.25rem;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }

    .footer-bottom-links a {
        font-size: 0.75rem;
    }
    .navbar-collapse {
        margin-top: 0.625rem;
        padding: 0.625rem;
    }

    .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8125rem;
    }

    .mobile-user-section {
        padding: 0.625rem;
        margin-bottom: 0.625rem;
    }

    .mobile-user-info {
        gap: 0.5rem;
    }

    .mobile-user-info .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .mobile-user-name {
        font-size: 0.875rem;
    }

    .mobile-user-email {
        font-size: 0.6875rem;
    }

    .btn-auth {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        margin-top: 0.375rem;
    }

    .btn-login {
        margin-bottom: 0.375rem;
    }

    .btn-auth i {
        font-size: 0.875rem;
    }

    .nav-link i {
        font-size: 0.75rem;
        margin-right: 0.375rem;
    }

    .mobile-divider {
        margin: 0.5rem 0;
    }
}

/* Extra Small (< 360px) */
@media (max-width: 359.98px) {
    body {
        font-size: 13px;
    }

    .navbar-brand {
        font-size: 1.125rem;
    }

    .navbar-brand i {
        font-size: 1.375rem;
    }

    .navbar-logo {
        height: 35px;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .page-header {
        padding: 1rem 0;
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    .card-header {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }

    .card-body {
        padding: 0.875rem;
    }

    .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    /* Footer Responsive Extra Small */
    footer {
        padding: 1.5rem 0 1rem;
    }

    .footer-logo-img {
        height: 40px;
    }

    .footer-top {
        padding-bottom: 1.5rem;
    }

    .footer-brand-logo {
        gap: 0.375rem;
    }

    .footer-brand-logo h3 {
        font-size: 1.125rem;
    }

    .footer-brand-logo i {
        font-size: 1.125rem;
    }

    .footer-description {
        font-size: 0.6875rem;
        margin-bottom: 1rem;
    }

    .social-section {
        margin-top: 1rem;
    }

    .social-section h4 {
        font-size: 0.8125rem;
        margin-bottom: 0.625rem;
    }

    .footer-social {
        gap: 0.5rem;
    }

    .social-link {
        width: 34px;
        height: 34px;
        border-radius: 6px;
    }

    .social-link i {
        font-size: 0.8125rem;
    }

    .footer-column h4 {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-links a {
        font-size: 0.6875rem;
    }

    .contact-info li {
        font-size: 0.6875rem;
        margin-bottom: 0.625rem;
        gap: 0.5rem;
    }

    .contact-info i {
        font-size: 0.75rem;
    }

    .footer-bottom {
        padding-top: 1rem;
        gap: 0.5rem;
    }

    .footer-copyright {
        font-size: 0.6875rem;
    }

    .footer-bottom-links {
        gap: 1rem;
    }

    .footer-bottom-links a {
        font-size: 0.6875rem;
    }
    .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.5rem;
    }

    .nav-link {
        padding: 0.45rem 0.625rem !important;
        font-size: 0.75rem;
    }

    .mobile-user-section {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .mobile-user-info .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.8125rem;
    }

    .mobile-user-name {
        font-size: 0.8125rem;
    }

    .mobile-user-email {
        font-size: 0.625rem;
    }

    .btn-auth {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        margin-top: 0.3rem;
    }

    .btn-login {
        margin-bottom: 0.3rem;
    }

    .btn-auth i {
        font-size: 0.8125rem;
    }

    .nav-link i {
        font-size: 0.7rem;
        margin-right: 0.3rem;
    }

    .mobile-divider {
        margin: 0.4rem 0;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar {
        position: relative;
    }

    .main-content {
        min-height: auto;
    }

    /* Footer Landscape Mode */
    footer {
        padding: 2rem 0 1rem;
    }

    footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .footer-top {
        padding-bottom: 1.5rem;
    }

    .footer-brand-logo h3 {
        font-size: 1.25rem;
    }

    .footer-brand-logo i {
        font-size: 1.25rem;
    }

    .footer-description {
        font-size: 0.8125rem;
        margin-bottom: 1rem;
    }

    .social-section {
        margin-top: 1rem;
    }

    .footer-column h4 {
        font-size: 0.875rem;
        margin-bottom: 0.875rem;
    }

    .footer-links a,
    .contact-info li {
        font-size: 0.8125rem;
    }

    .footer-bottom {
        padding-top: 1rem;
    }
}

/* Alert auto-hide animation */
.alert {
    animation: slideInDown 0.3s ease-out;
}

.alert.fade-out {
    animation: slideOutUp 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    .alert {
        display: none !important;
    }

    .main-content {
        min-height: auto;
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
}
