@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    --bg-main: linear-gradient(135deg, #0f172a 0%, #1e1e2f 100%);
    --bg-card: rgba(255, 255, 255, 0.05); /* Glassmorphic base */
    --sidebar-bg: rgba(15, 23, 42, 0.85); /* Deep slate with glass effect */
    --sidebar-text: #94a3b8;
    --sidebar-text-hover: #ffffff;
    --sidebar-hover-bg: rgba(255, 255, 255, 0.1);
    
    --primary: #10b981; /* Emerald/Teal replacing indigo for premium tech feel */
    --primary-hover: #059669;
    --secondary: #34d399; /* Lighter emerald */
    --secondary-hover: #10b981;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --warning: #f59e0b;
    --info: #3b82f6;
    --accent: #8b5cf6; /* Violet accent */

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Glassmorphism Utilities */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    background-attachment: fixed; /* Keep gradient fixed */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

/* ------------------------
   LAYOUT
   ------------------------ */
.portal-layout {
    display: flex;
    min-height: 100vh;
}

.portal-sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.portal-sidebar.collapsed {
    width: 0 !important;
    opacity: 0;
    border-right: none;
}

.hamburger-btn {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.hamburger-btn:hover {
    transform: scale(1.1);
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand {
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.sidebar-menu {
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.sidebar-link, .sidebar-menu a, .logout-container a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    color: var(--sidebar-text);
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
    margin-bottom: 4px;
    text-decoration: none;
}

.sidebar-link:hover, .sidebar-menu a:hover, .logout-container a:hover,
.sidebar-link.active, .sidebar-menu a.active {
    background: var(--sidebar-hover-bg);
    color: var(--sidebar-text-hover);
    transform: translateX(4px);
}

.sidebar-link.active, .sidebar-menu a.active {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.2) 0%, transparent 100%);
    border-left: 4px solid var(--primary);
    padding-left: 14px;
}

.logout-container {
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 20px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.portal-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents flex children from overflowing */
}

.portal-header {
    height: 70px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 10;
    color: white;
}

.header-title {
    font-size: 1.25rem;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.portal-content {
    padding: 50px 60px !important;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box !important;
}

/* ------------------------
   COMPONENTS
   ------------------------ */

.page-title {
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.premium-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    border: var(--glass-border);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-card:hover {
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
    transform: translateY(-2px);
}

.table-card .premium-table {
    margin-top: 0;
    border: none;
}

.table-card .table-responsive {
    margin: 0;
    padding: 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.2rem;
    margin: 0;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-secondary {
    background: white;
    color: #0f172a;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: var(--danger-hover);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    border: var(--glass-border);
    margin-bottom: 30px;
}

.table-responsive .premium-table {
    margin-top: 0;
    border: none;
}

.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
}

.premium-table th, .premium-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
}

.premium-table th:first-child {
    border-top-left-radius: 8px;
}

.premium-table th:last-child {
    border-top-right-radius: 8px;
}

.premium-table tbody tr {
    transition: background-color 0.2s;
}

.premium-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.premium-table td {
    font-size: 0.95rem;
    color: var(--text-main);
    vertical-align: middle;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-neutral {
    background: #f1f5f9;
    color: #475569;
}

/* Dashboard Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-details h4 {
    margin: 0 0 5px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-details p {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .portal-layout {
        flex-direction: column;
    }
    
    .portal-sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 1000;
        height: 100vh;
        left: 0;
        top: 0;
        width: 260px !important;
        opacity: 1;
    }
    
    .portal-sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 15px;
    }
    
    .sidebar-link {
        white-space: nowrap;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Styles */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.4) !important;
    margin-bottom: 8px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select option {
    background: #1e293b;
    color: #f8fafc;
}

select[multiple] {
    background: rgba(0, 0, 0, 0.2);
}

select[multiple] option {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

select[multiple] option:checked {
    background: var(--primary) !important;
    color: white !important;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-main);
}

/* Premium Dashboard Components appended to portal.css */

/* Tabs */
.course-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1px;
}

.course-tab {
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.course-tab:hover {
    color: var(--primary);
}

.course-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    border: var(--glass-border);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

.course-img {
    height: 180px;
    background: #e2e8f0;
    background-size: cover;
    background-position: center;
    position: relative;
}

.course-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.25rem;
    color: var(--text-main);
    margin: 0 0 10px 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.4;
}

.course-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.course-progress {
    margin-top: auto;
    background: #f1f5f9;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.course-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--info));
    border-radius: 4px;
}

/* Alert Banner */
.alert-banner {
    background: #fff4e5;
    border-left: 4px solid #ff9800;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #b26a00;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.alert-banner a {
    color: #f57c00;
    text-decoration: underline;
    margin-left: 10px;
}

/* Profile Layout */
.profile-header-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: var(--glass-shadow);
    margin-bottom: 40px;
    border: var(--glass-border);
}

.profile-pic-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.profile-pic-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 10px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-pic-svg {
    position: absolute;
    top: 0; left: 0;
    width: 120px; height: 120px;
    transform: rotate(-90deg);
}

.profile-pic-circle-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 6;
}

.profile-pic-circle {
    fill: none;
    stroke: var(--secondary);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease-out;
}

.profile-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    border: 2px solid white;
}

.profile-info {
    flex-grow: 1;
}

.profile-info h2 {
    font-size: 2rem;
    margin: 0 0 8px 0;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
}

.id-badge {
    font-size: 0.8rem;
    background: #f1f5f9;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.profile-info p {
    color: var(--text-muted);
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #3f51b5 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(92, 107, 192, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(92, 107, 192, 0.4);
}

/* Grid Layouts */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    border: var(--glass-border);
    margin-bottom: 30px;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
    transform: translateY(-2px);
}

.info-card h3 {
    margin: 0 0 25px 0;
    font-size: 1.3rem;
    color: var(--text-main);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.edit-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.edit-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: rotate(15deg);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field-group {
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.field-value {
    display: block;
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 500;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    0% { transform: scale(0.95) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e2e8f0;
    color: var(--danger);
    transform: rotate(90deg);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 30px;
    margin-bottom: 10px;
}

.progress-bar-bg {
    background: #f1f5f9;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 25px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--warning), var(--secondary));
    border-radius: 5px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.missing-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.missing-list li {
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    background: #fafbfc;
}

.missing-list li:hover {
    background: white;
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-outline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #f8fafc;
    color: var(--text-main);
    border-color: #cbd5e1;
}

@media (max-width: 768px) {
    .profile-header-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
}


/* Premium dark theme scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

/* Fix table action buttons */
.premium-table .edit-btn, .premium-table .delete-btn {
    position: static;
    display: inline-block;
    width: auto;
    height: auto;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 5px;
    transform: none;
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.premium-table .edit-btn {
    background: #f8fafc;
    color: var(--primary);
    border-color: #cbd5e1;
}

.premium-table .edit-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.premium-table .delete-btn {
    background: #fef2f2;
    color: var(--danger);
    border-color: #fecaca;
}

.premium-table .delete-btn:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    transform: translateY(-1px);
}
