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

/* app_hub/static/css/style.css */

/* Import Google Fonts - Poppins for headings, Inter for body */

/* CSS Variables for Easy Theme Management */
:root {
    /* Primary Colors - Future Expert (Deep Royal Purple) */
    --primary: #7C3AED;      /* Violet 600 - Bold, Energetic */
    --primary-dark: #5B21B6;  /* Violet 800 - Deep, Authoritative */
    --primary-light: #A78BFA; /* Violet 400 - Soft, Accessible */

    /* Secondary Colors - Technical Balance */
    --secondary: #475569;     /* Slate 600 - Solid Neutral */
    --accent: #2DD4BF;        /* Teal 400 - High Tech Spark */

    /* State Colors - Clear Signals */
    --success: #059669;      /* Emerald 600 */
    --warning: #D97706;      /* Amber 600 */
    --danger: #DC2626;       /* Red 600 */
    --info: #2563EB;         /* Blue 600 */

    /* Neutral Colors - Cool Slate Scale (More modern than gray) */
    --gray-50: #F8FAFC;      /* Slate 50 */
    --gray-100: #F1F5F9;     /* Slate 100 */
    --gray-200: #E2E8F0;     /* Slate 200 */
    --gray-300: #CBD5E1;     /* Slate 300 */
    --gray-400: #94A3B8;     /* Slate 400 */
    --gray-500: #64748B;     /* Slate 500 */
    --gray-600: #475569;     /* Slate 600 */
    --gray-700: #334155;     /* Slate 700 */
    --gray-800: #1E293B;     /* Slate 800 */
    --gray-900: #0F172A;     /* Slate 900 */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%); /* Subtle Violet Mist */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Transitions */
    --transition: all 0.2s ease;
    --transition-fast: all 0.15s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.zoom-reset {
    zoom: 1 !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

html {
    -webkit-text-size-adjust: 100%;
}

.form-control,
textarea,
input,
select {
    text-align: -webkit-match-parent;
    text-align: match-parent;
    text-align: inherit;
}

.privacy-warning {
    background-color: rgba(245, 158, 11, 0.12);
    border-left: 4px solid var(--warning);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    color: var(--gray-800);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Header Styles - Professional & Polished */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(124, 58, 237, 0.05);
    transition: all 0.3s ease;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

header:hover::before {
    opacity: 1;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 1rem;
}

.header-container > .logo {
    flex-shrink: 0;
}

.header-container > nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
    gap: 1rem;
}

.logo a {
    font-family: 'Poppins', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: -0.02em;
    display: inline-block;
}

.logo a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.logo a:hover::after {
    transform: scaleX(1);
}

/* Navigation - Professional & Polished */
nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

nav ul li a,
nav ul li button {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease, background 0.2s ease;
    padding: 0.625rem 1rem;
    position: relative;
    line-height: 1.2;
    display: inline-block;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    border-radius: var(--radius);
    white-space: nowrap;
    height: fit-content;
}

nav ul li a::before,
nav ul li button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(124, 58, 237, 0.08);
    border-radius: var(--radius);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

nav ul li a:hover,
nav ul li button:hover {
    color: var(--primary-dark);
    text-decoration: none;
    transform: translateY(-1px);
}

nav ul li a:hover::before,
nav ul li button:hover::before {
    opacity: 1;
    transform: scale(1);
}

nav ul li a.active-nav,
nav ul li button.active-nav {
    color: var(--primary-dark);
    font-weight: 600;
    background: rgba(124, 58, 237, 0.1);
}

nav ul li a.active-nav::after,
nav ul li button.active-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

/* Dropdown Menu - Professional & Polished */
.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(124, 58, 237, 0.1);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    z-index: 1000;
    min-width: 200px;
    border: 1px solid rgba(124, 58, 237, 0.1);
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown[data-dropdown-open="true"] .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu,
.nav-item.dropdown .dropdown-menu:hover,
.user-menu-wrapper:hover .user-menu-dropdown,
.user-menu-wrapper[data-dropdown-open="true"] .user-menu-dropdown,
.user-menu-wrapper:focus-within .user-menu-dropdown {
    display: block;
}

.dropdown-menu .dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    white-space: nowrap;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.9375rem;
}

.dropdown-menu .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 0 2px 2px 0;
    transition: height 0.2s ease;
}

.dropdown-menu .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    color: var(--primary-dark);
    text-decoration: none;
    padding-left: 1.25rem;
    transform: translateX(2px);
}

.dropdown-menu .dropdown-item:hover::before {
    height: 60%;
}

.dropdown-menu .dropdown-item.disabled {
    color: var(--gray-400);
    cursor: not-allowed;
    pointer-events: none;
    background-color: transparent;
    opacity: 0.6;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.7em;
    display: inline-block;
    margin-left: 0.25em;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Admin details accordion */
.admin-details {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-50);
    padding: 0.5rem 0.75rem;
}
th.access-col,
td.access-col {
    min-width: 10rem;
    vertical-align: top;
}
td.access-col details {
    display: block;
    width: 100%;
}
td.access-col .details-summary {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    background-color: var(--gray-100);
}
td.access-col .details-summary::before {
    margin: 0;
}
.admin-details[open] {
    background: #fff;
}
.admin-details[open] .details-summary {
    background-color: var(--gray-50);
}
.details-summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    outline: none;
}
.details-summary::-webkit-details-marker {
    display: none;
}
.details-summary::before {
    content: '▸';
    margin-right: 0.5rem;
    color: var(--gray-500);
}
.admin-details[open] .details-summary::before {
    content: '▾';
}
.details-body {
    margin-top: 0.75rem;
}

/* Ensure table-responsive works with sticky positioning */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Admin user table styling - edge-to-edge for clean appearance */
.admin-user-table-wrapper {
    overflow-x: auto;
    margin: -1rem -1.5rem; /* Negative margin to extend to card edges */
    padding: 0;
}

.admin-user-table {
    width: 100%;
    margin-bottom: 0;
}

/* Remove card body padding for user management table */
.card-body[style*="overflow-x: auto"] {
    padding: 0;
}

/* Sticky actions column for admin table */
.admin-user-table th.actions-col,
.admin-user-table td.actions-col {
    vertical-align: top;
    position: sticky;
    right: 0;
    background: white;
    z-index: 10;
    padding-left: 1rem !important;
    min-width: 190px;
}

.admin-user-table th.actions-col {
    box-shadow: -2px 0 3px rgba(0, 0, 0, 0.04);
}

.admin-user-table td.actions-col {
    box-shadow: -2px 0 3px rgba(0, 0, 0, 0.05);
}

/* Maintain background color on hover for sticky cells */
.admin-user-table.table-striped tbody tr:nth-of-type(odd) td.actions-col {
    background-color: rgba(0, 0, 0, 0.05);
}

.admin-user-table.table-hover tbody tr:hover td.actions-col {
    background-color: var(--gray-50);
}

.admin-user-table.table-striped.table-hover tbody tr:nth-of-type(odd):hover td.actions-col {
    background-color: var(--gray-100);
}

/* Button group styling for actions column */
td.actions-col .btn-group-vertical {
    width: 100%;
}

td.actions-col .btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

td.actions-col .btn-group .btn {
    flex: 1 0 auto;
    width: 100%;
    white-space: nowrap;
    text-align: left;
    justify-content: flex-start;
}

/* Sticky first column (username) on the left */
.admin-user-table thead th:first-child,
.admin-user-table tbody td:first-child {
    position: sticky;
    left: 0;
    background: white;
    z-index: 10;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
    min-width: 120px;
}

.admin-user-table thead th:first-child {
    box-shadow: 2px 0 3px rgba(0, 0, 0, 0.04);
    z-index: 11;
}

.admin-user-table tbody td:first-child {
    box-shadow: 2px 0 3px rgba(0, 0, 0, 0.05);
}

/* Maintain background color for sticky first column */
.admin-user-table.table-striped tbody tr:nth-of-type(odd) td:first-child {
    background-color: rgba(0, 0, 0, 0.05);
}

.admin-user-table.table-hover tbody tr:hover td:first-child {
    background-color: var(--gray-50);
}

.admin-user-table.table-striped.table-hover tbody tr:nth-of-type(odd):hover td:first-child {
    background-color: var(--gray-100);
}

/* Ensure header cells for sticky columns have proper background */
.admin-user-table thead th:first-child,
.admin-user-table thead th.actions-col {
    background-color: white;
}

/* Add subtle border to table header */
.admin-user-table thead th {
    border-bottom: 2px solid var(--gray-200);
    padding: 0.75rem 1rem;
}


/* Language Selector - Professional & Polished */
.language-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.language-selector select {
    appearance: none;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 0.625rem 2rem 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237C3AED' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    height: fit-content;
    line-height: 1.2;
}

.language-selector select:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.language-selector select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Container - Professional & Polished */
.container {
    width: 95%;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: white;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(124, 58, 237, 0.05);
    border-radius: var(--radius-xl);
    flex-grow: 1;
    position: relative;
    border: 1px solid rgba(124, 58, 237, 0.08);
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    opacity: 0.6;
}

/* Responsive container adjustments */
@media (max-width: 1600px) {
    .container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        width: 92%;
    }
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: visible;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform-origin: top;
    transform: scaleY(0);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card:hover::before {
    transform: scaleY(1);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-family: inherit;
    text-align: center;
}
.btn:hover {
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-primary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: white;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
    color: var(--gray-700);
}

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

.btn-info:hover {
    background: #2563eb; /* Darker info */
    color: white;
}

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

.btn-success:hover {
    background: #059669; /* Darker success */
    color: white;
}

.btn-outline-secondary {
    background: transparent;
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
}

.btn-outline-secondary:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}


/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
    color: var(--gray-800);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Form Validation Styles (for form_macros.html) */
.form-group .is-invalid {
    border-color: var(--danger);
}
.form-group .is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1); /* Danger focus color */
}

.form-group .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--danger);
}


/* Alerts - Professional & Polished */
.alert {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    position: relative;
    border: 1px solid transparent;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.alert:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.95) 0%, rgba(254, 226, 226, 0.95) 100%);
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.2);
}

.alert-danger::before {
    background: linear-gradient(180deg, var(--danger) 0%, #b91c1c 100%);
}

.alert-success {
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.95) 0%, rgba(220, 252, 231, 0.95) 100%);
    color: var(--success);
    border-color: rgba(5, 150, 105, 0.2);
}

.alert-success::before {
    background: linear-gradient(180deg, var(--success) 0%, #047857 100%);
}

.alert-info {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(219, 234, 254, 0.95) 100%);
    color: var(--info);
    border-color: rgba(37, 99, 235, 0.2);
}

.alert-info::before {
    background: linear-gradient(180deg, var(--info) 0%, #1d4ed8 100%);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.95) 0%, rgba(254, 243, 199, 0.95) 100%);
    color: var(--warning);
    border-color: rgba(217, 119, 6, 0.2);
}

.alert-warning::before {
    background: linear-gradient(180deg, var(--warning) 0%, #b45309 100%);
}

/* Home Page Specific Styles - Professional & Enterprise-Grade */
.home-hero {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 30%, #EDE9FE 70%, #F8FAFC 100%);
    text-align: center;
    padding: 2rem 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(124, 58, 237, 0.1);
    box-shadow: 0 20px 60px -12px rgba(124, 58, 237, 0.15);
}

.hero-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(45, 212, 191, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, transparent 0%, rgba(124, 58, 237, 0.03) 50%, transparent 100%);
    opacity: 0.8;
    animation: patternShift 20s ease-in-out infinite;
}

@keyframes patternShift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    animation: pulse 12s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease-out;
    position: relative;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1);
    transition: all 0.3s ease;
}

.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
}

.badge-glow {
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.hero-badge:hover .badge-glow {
    opacity: 0.3;
}

.hero-badge i {
    color: var(--accent);
    font-size: 1rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.8; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    opacity: 0.3;
}

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

.home-hero .lead {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 0;
    position: relative;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.home-hero .hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-hero-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px 0 rgba(124, 58, 237, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.btn-hero-primary:hover .btn-shine {
    left: 100%;
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px 0 rgba(124, 58, 237, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    color: white;
}

.btn-hero-secondary {
    background: white;
    color: var(--secondary);
    border: 2px solid var(--gray-300);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
}

.btn-hero-secondary:hover {
    background: var(--gray-50);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.12);
    color: var(--secondary);
}

.btn-hero-primary i,
.btn-hero-secondary i,
.btn-hero-primary span:not(.btn-shine),
.btn-hero-secondary span:not(.btn-shine) {
    position: relative;
    z-index: 2;
}

.btn-hero-primary i,
.btn-hero-secondary i {
    font-size: 1rem;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: float 15s infinite ease-in-out;
}

.hero-orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -100px;
    left: 10%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 50%;
    right: 15%;
    animation-delay: 5s;
}

.hero-orb-3 {
    width: 250px;
    height: 250px;
    background: var(--primary-light);
    bottom: -80px;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.6;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* ============================================
   About Page Styles - Professional & Clean
   ============================================ */

.about-page {
    max-width: 1200px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.about-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-section p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--gray-700);
    text-align: center;
}

/* About Hero Section */
.about-hero-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 30%, #EDE9FE 70%, #F8FAFC 100%);
    padding: 2rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    border: 1px solid rgba(124, 58, 237, 0.1);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.1);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.about-hero-section .lead {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Section Light Background */
.section-light {
    background: var(--gray-50);
    margin-left: -2.5rem;
    margin-right: -2.5rem;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

/* Team Section */
.team-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.team-member {
    max-width: 550px;
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
}

.team-member-image {
    margin-bottom: 2rem;
    display: inline-block;
}

.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-light);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
    transition: transform 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-member h3 {
    font-size: 1.875rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.team-member .role {
    font-size: 1.125rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.team-member .bio {
    text-align: left;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.team-member .bio p {
    text-align: left;
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.15);
    border-color: var(--primary-light);
}

.testimonial-logo-wrapper {
    margin-bottom: 1.5rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-logo {
    max-height: 60px;
    max-width: 200px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.testimonial-quote-icon {
    color: var(--primary-light);
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.125rem;
    margin-top: 1rem;
}

.testimonial-company {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-top: 0.25rem;
}

/* About CTA Section */
.about-cta-section {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-top: 4rem;
    position: relative;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
}

.about-cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.about-cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.about-cta-icon i {
    font-size: 2rem;
    color: white;
}

.about-cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2.25rem;
    font-weight: 700;
}

.about-cta-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-cta-section .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary);
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-cta-section .btn-cta:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: var(--primary-dark);
}

.about-cta-section .btn-cta i {
    font-size: 1rem;
}

/* Responsive About Page */
@media (max-width: 768px) {
    .about-hero-section {
        padding: 1.5rem 1.5rem;
    }

    .about-hero-section h1 {
        font-size: 1.75rem;
    }

    .about-hero-section .lead {
        font-size: 1rem;
    }

    .about-section {
        padding: 2rem 0;
    }

    .about-section h2 {
        font-size: 2rem;
    }

    .section-light {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding: 2rem 1.5rem;
    }

    .team-member {
        padding: 2rem 1.5rem;
    }

    .team-member img {
        width: 150px;
        height: 150px;
    }

    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .about-cta-section {
        padding: 3rem 1.5rem;
    }

    .about-cta-section h2 {
        font-size: 1.75rem;
    }
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.contact-hero-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 30%, #EDE9FE 70%, #F8FAFC 100%);
    padding: 2rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.contact-hero-icon i {
    font-size: 1.25rem;
    color: white;
}

.contact-hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.contact-hero-section .lead {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 0;
    line-height: 1.6;
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.contact-form .form-group {
    margin-bottom: 2rem;
    position: relative;
}

.contact-form .form-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.contact-form .form-label i {
    color: var(--primary);
    font-size: 1.125rem;
}

.contact-form .form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    background: var(--gray-50);
    color: var(--gray-900);
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.contact-form .form-control.is-valid {
    border-color: var(--accent);
    background: rgba(45, 212, 191, 0.05);
}

.contact-form .form-control.is-invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

.character-counter {
    text-align: right;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.character-counter.warning {
    color: #ff9800;
}

.character-counter.danger {
    color: #dc3545;
    font-weight: 600;
}

.form-error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-error-message::before {
    content: "⚠";
    font-size: 1rem;
}

.form-group.has-success .form-control {
    border-color: var(--accent);
}

.form-group.has-error .form-control {
    border-color: #dc3545;
}

.form-submit-wrapper {
    margin-top: 2.5rem;
    text-align: center;
}

.btn-contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

/* Contact Success Page */
.contact-success-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.contact-success-container {
    max-width: 700px;
    text-align: center;
    background: white;
    padding: 4rem 3rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
    position: relative;
}

.success-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.success-icon-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
    position: relative;
    z-index: 2;
}

.success-icon-circle i {
    font-size: 3rem;
    color: white;
}

.success-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.contact-success-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.success-messages {
    margin-bottom: 2.5rem;
}

.success-message-primary {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.success-message-secondary {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.success-actions {
    margin-top: 2rem;
}

.success-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
}

/* Responsive Contact Page */
@media (max-width: 768px) {
    .contact-hero-section {
        padding: 1.5rem 1.5rem;
    }

    .contact-hero-section h1 {
        font-size: 1.75rem;
    }

    .contact-hero-icon {
        width: 45px;
        height: 45px;
    }

    .contact-hero-icon i {
        font-size: 1.125rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .contact-success-container {
        padding: 3rem 2rem;
    }

    .contact-success-container h1 {
        font-size: 2rem;
    }

    .success-icon-circle {
        width: 80px;
        height: 80px;
    }

    .success-icon-circle i {
        font-size: 2.5rem;
    }
}

/* ===== LOGIN PAGE STYLES ===== */
.login-page-simple {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-container-simple {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.login-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    margin-top: 0;
}

.login-form-simple .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.login-form-simple .form-label {
    display: block;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.login-form-simple .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    background: white;
    color: var(--gray-900);
}

.login-form-simple .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.login-form-simple .form-control.is-invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.login-form-simple .form-group.has-error .form-control {
    border-color: #dc3545;
}

.form-options-simple {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.forgot-password-link-simple {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.forgot-password-link-simple:hover {
    color: var(--primary);
    text-decoration: underline;
}

.form-submit-wrapper-simple {
    margin-top: 0.5rem;
}

.btn-login-submit-simple {
    width: 100%;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-login-submit-simple:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.login-form-footer-simple {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.login-form-footer-simple p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.signup-link-simple {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 0.25rem;
}

.signup-link-simple:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Old login page styles (keeping for backward compatibility) */
.login-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-hero-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 30%, #EDE9FE 70%, #F8FAFC 100%);
    padding: 2rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.login-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.login-hero-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.login-hero-icon i {
    font-size: 1.25rem;
    color: white;
}

.login-hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.login-hero-section .lead {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 0;
    line-height: 1.6;
}

.login-form-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.login-form .form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.login-form .form-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.login-form .form-label i {
    color: var(--primary);
    font-size: 1.125rem;
}

.login-form .form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    background: var(--gray-50);
    color: var(--gray-900);
}

.login-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.login-form .form-control.is-invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.form-error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-error-message::before {
    content: "⚠";
    font-size: 1rem;
}

.form-group.has-error .form-control {
    border-color: #dc3545;
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.forgot-password-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.forgot-password-link i {
    font-size: 0.875rem;
}

.form-submit-wrapper {
    margin-top: 0.5rem;
}

.btn-login-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.btn-login-submit i {
    font-size: 1rem;
}

.login-form-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.login-form-footer p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.signup-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 0.25rem;
}

.signup-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive Login Page */
@media (max-width: 768px) {
    .login-page-simple {
        padding: 2rem 1rem;
    }

    .login-form-container-simple {
        padding: 2rem 1.5rem;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .login-hero-section {
        padding: 1.5rem 1.5rem;
    }

    .login-hero-section h1 {
        font-size: 1.75rem;
    }

    .login-hero-icon {
        width: 45px;
        height: 45px;
    }

    .login-hero-icon i {
        font-size: 1.125rem;
    }

    .login-form-container {
        padding: 2rem 1.5rem;
    }
}

/* ===== SIGNUP PAGE STYLES ===== */
.signup-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.signup-hero-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 30%, #EDE9FE 70%, #F8FAFC 100%);
    padding: 2rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.signup-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.signup-hero-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.signup-hero-icon i {
    font-size: 1.25rem;
    color: white;
}

.signup-hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.signup-hero-section .lead {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 0;
    line-height: 1.6;
}

.signup-form-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.signup-form .form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.signup-form .form-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.signup-form .form-label i {
    color: var(--primary);
    font-size: 1.125rem;
}

.signup-form .form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    background: var(--gray-50);
    color: var(--gray-900);
}

.signup-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.signup-form .form-control.is-invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.signup-form .form-group.has-error .form-control {
    border-color: #dc3545;
}

.form-submit-wrapper {
    margin-top: 0.5rem;
}

.btn-signup-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-signup-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.btn-signup-submit i {
    font-size: 1rem;
}

.signup-form-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.signup-form-footer p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.login-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 0.25rem;
}

.login-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.signup-form-hint {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.signup-form-hint .hint-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
}

.signup-form-hint p {
    margin: 0;
    color: var(--gray-700);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Responsive Signup Page */
@media (max-width: 768px) {
    .signup-hero-section {
        padding: 1.5rem 1.5rem;
    }

    .signup-hero-section h1 {
        font-size: 1.75rem;
    }

    .signup-hero-icon {
        width: 45px;
        height: 45px;
    }

    .signup-hero-icon i {
        font-size: 1.125rem;
    }

    .signup-form-container {
        padding: 2rem 1.5rem;
    }
}

/* ===== RESEND VERIFICATION PAGE STYLES ===== */
.resend-verification-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.resend-verification-hero-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 30%, #EDE9FE 70%, #F8FAFC 100%);
    padding: 2rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.resend-verification-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.resend-verification-hero-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.resend-verification-hero-icon i {
    font-size: 1.25rem;
    color: white;
}

.resend-verification-hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
}

.resend-verification-container {
    max-width: 700px;
    margin: 0 auto;
}

.resend-verification-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.resend-verification-content {
    text-align: center;
}

.resend-verification-content .lead {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.email-info-box {
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.email-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.email-info-item i {
    color: var(--primary);
    font-size: 1.25rem;
}

.email-info-item strong {
    color: var(--primary-dark);
    margin-right: 0.5rem;
}

.email-info-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    padding-top: 1rem;
    border-top: 1px solid rgba(124, 58, 237, 0.15);
}

.email-info-note i {
    color: var(--primary);
}

.resend-verification-form {
    margin-bottom: 2rem;
}

.btn-resend-verification {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.btn-resend-verification:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    text-align: left;
}

.alert-warning-box {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.alert-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    font-size: 1.25rem;
}

.success-message-box {
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, #14b8a6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(45, 212, 191, 0.3);
}

.success-icon i {
    font-size: 2.5rem;
    color: white;
}

.resend-verification-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ===== RESET PASSWORD PAGE STYLES ===== */
.reset-password-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reset-password-hero-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 30%, #EDE9FE 70%, #F8FAFC 100%);
    padding: 2rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.reset-password-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.reset-password-hero-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.reset-password-hero-icon i {
    font-size: 1.25rem;
    color: white;
}

.reset-password-hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.reset-password-hero-section .lead {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 0;
    line-height: 1.6;
}

.reset-password-container {
    max-width: 600px;
    margin: 0 auto;
}

.reset-password-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.reset-password-form .form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.reset-password-form .form-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.reset-password-form .form-label i {
    color: var(--primary);
    font-size: 1.125rem;
}

.reset-password-form .form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    background: var(--gray-50);
    color: var(--gray-900);
}

.reset-password-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.reset-password-form .form-control.is-invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

.form-hint i {
    color: var(--primary);
    font-size: 0.875rem;
}

.reset-password-form .form-group.has-error .form-control {
    border-color: #dc3545;
}

.form-submit-wrapper {
    margin-top: 0.5rem;
}

.btn-reset-password {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.btn-reset-password:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.reset-password-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

/* ===== FORGOT PASSWORD PAGE STYLES ===== */
.forgot-password-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.forgot-password-hero-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 30%, #EDE9FE 70%, #F8FAFC 100%);
    padding: 2rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.forgot-password-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.forgot-password-hero-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.forgot-password-hero-icon i {
    font-size: 1.25rem;
    color: white;
}

.forgot-password-hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.forgot-password-hero-section .lead {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 0;
    line-height: 1.6;
}

.forgot-password-container {
    max-width: 600px;
    margin: 0 auto;
}

.forgot-password-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.forgot-password-info-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.forgot-password-info-box .info-icon {
    color: var(--accent);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.forgot-password-info-box p {
    margin: 0;
    color: var(--gray-700);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.forgot-password-form .form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.forgot-password-form .form-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.forgot-password-form .form-label i {
    color: var(--primary);
    font-size: 1.125rem;
}

.forgot-password-form .form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.forgot-password-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.forgot-password-form .form-group.has-error .form-control {
    border-color: var(--danger);
}

.forgot-password-form .form-error-message {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-forgot-password {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.btn-forgot-password:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.forgot-password-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.forgot-password-footer .back-link i {
    font-size: 0.875rem;
}

/* ===== EDIT PROFILE PAGE STYLES ===== */
.edit-profile-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.edit-profile-hero-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 30%, #EDE9FE 70%, #F8FAFC 100%);
    padding: 2rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.edit-profile-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.edit-profile-hero-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.edit-profile-hero-icon i {
    font-size: 1.25rem;
    color: white;
}

.edit-profile-hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.edit-profile-hero-section .lead {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 0;
    line-height: 1.6;
}

.edit-profile-container {
    max-width: 600px;
    margin: 0 auto;
}

.edit-profile-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.edit-profile-form .form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.edit-profile-form .form-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.edit-profile-form .form-label i {
    color: var(--primary);
    font-size: 1.125rem;
}

.edit-profile-form .form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.edit-profile-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.edit-profile-form .form-group.has-error .form-control {
    border-color: var(--danger);
}

.edit-profile-form .form-error-message {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-profile-form .form-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
}

.edit-profile-form .form-hint i {
    color: var(--accent);
    font-size: 0.875rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.btn-edit-profile {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.btn-edit-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.edit-profile-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.edit-profile-footer .back-link i {
    font-size: 0.875rem;
}

/* ===== PROFILE PAGE ENHANCEMENTS ===== */
.profile-hero-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 30%, #EDE9FE 70%, #F8FAFC 100%);
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.profile-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.profile-hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.profile-hero-icon i {
    font-size: 2rem;
    color: white;
}

.profile-hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.profile-hero-section .lead {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 0;
    line-height: 1.6;
}

.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.profile-section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-section-title i {
    color: var(--primary);
    font-size: 1.5rem;
}

.profile-section-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.profile-section-subtitle {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.profile-section-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-info, .profile-access {
    background: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.profile-info h2, .profile-access h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.info-item strong {
    color: var(--primary-dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    color: var(--gray-900);
    font-size: 1rem;
}

.email-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 600;
}

.email-verified-badge i {
    color: var(--accent);
}

.access-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.access-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.access-section h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.access-list li {
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.access-list li:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.course-access-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.access-type {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background: rgba(124, 58, 237, 0.1);
    border-radius: var(--radius);
}

.no-access {
    color: var(--gray-600);
    font-style: italic;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    text-align: center;
}

/* Responsive styles for new pages */
@media (max-width: 768px) {
    .resend-verification-hero-section,
    .reset-password-hero-section,
    .forgot-password-hero-section,
    .edit-profile-hero-section,
    .change-password-hero-section,
    .dashboard-hero-section,
    .privacy-hero-section {
        padding: 1.5rem 1.5rem;
    }

    .resend-verification-hero-section h1,
    .reset-password-hero-section h1,
    .forgot-password-hero-section h1,
    .edit-profile-hero-section h1,
    .change-password-hero-section h1,
    .dashboard-hero-section h1,
    .privacy-hero-section h1 {
        font-size: 1.75rem;
    }

    .resend-verification-hero-icon,
    .reset-password-hero-icon,
    .forgot-password-hero-icon,
    .edit-profile-hero-icon,
    .change-password-hero-icon,
    .dashboard-hero-icon,
    .privacy-hero-icon {
        width: 45px;
        height: 45px;
    }

    .resend-verification-hero-icon i,
    .reset-password-hero-icon i,
    .forgot-password-hero-icon i,
    .edit-profile-hero-icon i,
    .change-password-hero-icon i,
    .dashboard-hero-icon i,
    .privacy-hero-icon i {
        font-size: 1.125rem;
    }

    .profile-hero-section {
        padding: 2rem 1.5rem;
    }

    .profile-hero-section h1 {
        font-size: 2rem;
    }

    .profile-hero-icon {
        width: 60px;
        height: 60px;
    }

    .profile-hero-icon i {
        font-size: 1.5rem;
    }

    .resend-verification-card,
    .reset-password-card,
    .forgot-password-card,
    .edit-profile-card,
    .change-password-card {
        padding: 2rem 1.5rem;
    }

    .forgot-password-info-box {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .forgot-password-info-box .info-icon {
        margin-top: 0;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tool-card {
        margin-bottom: 0;
    }

    .tool-image {
        height: 150px;
    }

    .tool-image i {
        font-size: 3rem;
    }

    .tool-content {
        padding: 1.5rem;
    }

    .tool-card h3 {
        font-size: 1.25rem;
    }

    .privacy-content-block {
        padding: 1.5rem;
    }

    .privacy-content-block h2 {
        font-size: 1.5rem;
    }

    .privacy-content-section {
        gap: 1.5rem;
    }

    .profile-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-section-actions {
        width: 100%;
    }

    .profile-section-actions .btn {
        flex: 1;
    }

    .profile-info, .profile-access {
        padding: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== DASHBOARD PAGE STYLES ===== */
.dashboard-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.dashboard-hero-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 30%, #EDE9FE 70%, #F8FAFC 100%);
    padding: 2rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.dashboard-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.dashboard-hero-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.dashboard-hero-icon i {
    font-size: 1.25rem;
    color: white;
}

.dashboard-hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.dashboard-hero-section .lead {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 0;
    line-height: 1.6;
}

.dashboard-tools-section {
    margin-top: 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(124, 58, 237, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.15), 0 0 0 1px rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.3);
}

.tool-image {
    width: 100%;
    height: 180px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tool-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
}

.tool-image i {
    font-size: 4rem;
    color: white;
    z-index: 1;
    position: relative;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.tool-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tool-card h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.tool-card p {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 1rem;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    text-decoration: none;
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.tool-btn i {
    font-size: 0.875rem;
}

/* ===== AI ASSISTANT PAGE STYLES ===== */
.ai-assistant-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.ai-assistant-hero-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 30%, #EDE9FE 70%, #F8FAFC 100%);
    padding: 2rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.ai-assistant-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.ai-assistant-hero-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.ai-assistant-hero-icon i {
    font-size: 1.25rem;
    color: white;
}

.ai-assistant-hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.ai-assistant-hero-section .lead {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 0;
    line-height: 1.6;
}

/* System Selector Section */
.ai-assistant-selector-section {
    margin-bottom: 3rem;
}

.ai-assistant-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.ai-assistant-selector-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ai-assistant-selector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.15), 0 0 0 1px rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.3);
}

.ai-assistant-selector-card-primary {
    background: var(--gradient-primary);
    color: white;
}

.ai-assistant-selector-card-secondary {
    background: white;
}

.ai-assistant-selector-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.ai-assistant-selector-card-primary .ai-assistant-selector-icon {
    background: rgba(255, 255, 255, 0.25);
}

.ai-assistant-selector-card-secondary .ai-assistant-selector-icon {
    background: var(--gradient-primary);
}

.ai-assistant-selector-icon i {
    font-size: 1.75rem;
    color: white;
}

.ai-assistant-selector-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: inherit;
}

.ai-assistant-selector-card p {
    color: inherit;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.ai-assistant-selector-card-secondary p {
    color: var(--gray-700);
    opacity: 1;
}

.ai-assistant-selector-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.ai-assistant-selector-card-primary .ai-assistant-selector-btn {
    background: white;
    color: var(--primary);
}

.ai-assistant-selector-card-primary .ai-assistant-selector-btn:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ai-assistant-selector-card-secondary .ai-assistant-selector-btn {
    background: var(--gradient-primary);
    color: white;
}

.ai-assistant-selector-card-secondary .ai-assistant-selector-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Section Header */
.ai-assistant-section-header {
    margin-bottom: 2rem;
}

.ai-assistant-section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
}

.ai-assistant-section-header h2 i {
    color: var(--primary);
}

/* Stats Section */
.ai-assistant-stats-section {
    margin-bottom: 3rem;
}

.ai-assistant-stats-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.ai-assistant-usage-card,
.ai-assistant-config-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.ai-assistant-usage-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.ai-assistant-usage-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.ai-assistant-usage-subtitle {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin: 0;
}

.ai-assistant-usage-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.ai-assistant-usage-badge-success {
    background: var(--success);
}

.ai-assistant-usage-badge-warning {
    background: var(--warning);
    color: var(--gray-900);
}

.ai-assistant-usage-item {
    margin-bottom: 2rem;
}

.ai-assistant-usage-item:last-of-type {
    margin-bottom: 1.5rem;
}

.ai-assistant-usage-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.ai-assistant-usage-value {
    font-weight: 600;
    color: var(--gray-900);
}

.ai-assistant-progress {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.ai-assistant-progress-bar {
    height: 100%;
    border-radius: var(--radius);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ai-assistant-progress-bar.bg-success,
.ai-assistant-progress-primary {
    background: var(--success);
}

.ai-assistant-progress-bar.bg-warning,
.ai-assistant-progress-warning {
    background: var(--warning);
}

.ai-assistant-progress-bar.bg-danger,
.ai-assistant-progress-danger {
    background: var(--danger);
}

.ai-assistant-progress-bar.bg-info,
.ai-assistant-progress-info {
    background: var(--info);
}

.ai-assistant-usage-remaining {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.ai-assistant-usage-reset {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 1rem;
}

.ai-assistant-usage-reset i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.ai-assistant-usage-warning {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(217, 119, 6, 0.1);
    border-left: 4px solid var(--warning);
    border-radius: var(--radius);
    color: var(--warning);
    font-size: 0.9375rem;
    margin-top: 1rem;
}

.ai-assistant-usage-warning i {
    font-size: 1.125rem;
}

.ai-assistant-config-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.ai-assistant-config-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-assistant-config-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.ai-assistant-config-list li:last-child {
    border-bottom: none;
}

.ai-assistant-config-list li i {
    color: var(--primary);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Quota Section */
.ai-assistant-quota-section {
    margin-bottom: 3rem;
}

.ai-assistant-quota-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.ai-assistant-quota-header {
    margin-bottom: 1.5rem;
}

.ai-assistant-quota-header h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.ai-assistant-quota-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
}

.ai-assistant-quota-badge-enabled {
    background: var(--info);
    color: white;
}

.ai-assistant-quota-badge-disabled {
    background: var(--gray-300);
    color: var(--gray-700);
}

.ai-assistant-quota-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-left: 4px solid var(--info);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.ai-assistant-quota-info i {
    color: var(--info);
    font-size: 1.125rem;
    margin-top: 0.125rem;
}

.ai-assistant-quota-info p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.ai-assistant-quota-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.ai-assistant-quota-item {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.ai-assistant-quota-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ai-assistant-quota-item-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--gray-600);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.ai-assistant-quota-item-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.ai-assistant-quota-item-remaining {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

.ai-assistant-quota-reset {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.ai-assistant-quota-reset i {
    color: var(--primary);
}

/* Prompts Section */
.ai-assistant-prompts-section {
    margin-bottom: 3rem;
}

.ai-assistant-prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.ai-assistant-prompt-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.ai-assistant-prompt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.15), 0 0 0 1px rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.3);
}

.ai-assistant-prompt-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.ai-assistant-prompt-icon i {
    font-size: 1.75rem;
    color: white;
}

.ai-assistant-prompt-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.ai-assistant-prompt-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.ai-assistant-prompt-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--gray-200);
    color: var(--gray-700);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.ai-assistant-prompt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.ai-assistant-prompt-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.ai-assistant-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.ai-assistant-empty-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.ai-assistant-empty-icon i {
    font-size: 2rem;
    color: var(--gray-400);
}

.ai-assistant-empty-state p {
    color: var(--gray-600);
    font-size: 1.125rem;
    margin: 0;
}

/* History Section */
.ai-assistant-history-section {
    margin-bottom: 2rem;
}

.ai-assistant-history-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
    overflow: hidden;
}

.ai-assistant-history-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.ai-assistant-history-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.ai-assistant-history-header h3 i {
    color: var(--primary);
}

.ai-assistant-history-content {
    padding: 1.5rem 2rem;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar styling for history content */
.ai-assistant-history-content::-webkit-scrollbar {
    width: 8px;
}

.ai-assistant-history-content::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.ai-assistant-history-content::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

.ai-assistant-history-content::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

.ai-assistant-history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-assistant-history-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.ai-assistant-history-item:hover {
    background: var(--gray-100);
}

.ai-assistant-history-main {
    flex: 1;
}

.ai-assistant-history-action {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.ai-assistant-history-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.ai-assistant-history-date {
    font-size: 0.875rem;
    color: var(--gray-600);
    white-space: nowrap;
    margin-left: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .ai-assistant-page {
        padding: 1rem;
    }

    .ai-assistant-hero-section {
        padding: 1.5rem 1.5rem;
    }

    .ai-assistant-hero-section h1 {
        font-size: 1.75rem;
    }

    .ai-assistant-hero-section .lead {
        font-size: 0.9375rem;
    }

    .ai-assistant-selector-grid {
        grid-template-columns: 1fr;
    }

    .ai-assistant-stats-grid {
        grid-template-columns: 1fr;
    }

    .ai-assistant-quota-grid {
        grid-template-columns: 1fr;
    }

    .ai-assistant-prompts-grid {
        grid-template-columns: 1fr;
    }

    .ai-assistant-history-content {
        padding: 1rem 1.5rem;
        max-height: 400px;
    }

    .ai-assistant-history-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .ai-assistant-history-date {
        margin-left: 0;
    }
}

/* ===== CHANGE PASSWORD PAGE STYLES ===== */
.change-password-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.change-password-hero-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 30%, #EDE9FE 70%, #F8FAFC 100%);
    padding: 2rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.change-password-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.change-password-hero-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.change-password-hero-icon i {
    font-size: 1.25rem;
    color: white;
}

.change-password-hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.change-password-hero-section .lead {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 0;
    line-height: 1.6;
}

.change-password-container {
    max-width: 600px;
    margin: 0 auto;
}

.change-password-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.change-password-form .form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.change-password-form .form-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.change-password-form .form-label i {
    color: var(--primary);
    font-size: 1.125rem;
}

.change-password-form .form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.change-password-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.change-password-form .form-group.has-error .form-control {
    border-color: var(--danger);
}

.change-password-form .form-error-message {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.change-password-form .form-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
}

.change-password-form .form-hint i {
    color: var(--accent);
    font-size: 0.875rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.btn-change-password {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.btn-change-password:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.change-password-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.change-password-footer .back-link i {
    font-size: 0.875rem;
}

/* ===== PRIVACY PAGE STYLES ===== */
.privacy-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.privacy-hero-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 30%, #EDE9FE 70%, #F8FAFC 100%);
    padding: 2rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.privacy-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.privacy-hero-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.privacy-hero-icon i {
    font-size: 1.25rem;
    color: white;
}

.privacy-hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.privacy-hero-section .lead {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 0;
    line-height: 1.6;
}

.privacy-content-section {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.privacy-content-block {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.privacy-content-block h2 {
    color: var(--primary-dark);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.privacy-content-block p {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.privacy-content-block p:last-child {
    margin-bottom: 0;
}

.privacy-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.privacy-list li {
    color: var(--gray-700);
    line-height: 1.7;
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.privacy-list li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.875rem;
}

.privacy-note {
    color: var(--gray-600);
    font-size: 0.9375rem;
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.privacy-warning-box {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.privacy-warning-box i {
    color: var(--warning);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.privacy-warning-box p {
    margin: 0;
    color: var(--gray-800);
    font-weight: 500;
}

/* Features Section */
.home-features {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.features-header {
    text-align: center;
    margin-bottom: 3rem;
}

.home-features h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
}

.features-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-card-glow {
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.5s ease;
    z-index: -1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.feature-hover-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 48px rgba(124, 58, 237, 0.2), 0 0 0 1px rgba(124, 58, 237, 0.1);
    border-color: var(--primary-light);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover .feature-card-glow {
    opacity: 0.4;
}

.feature-card:hover .feature-hover-effect {
    width: 400px;
    height: 400px;
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(45, 212, 191, 0.12) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
    border: 2px solid rgba(124, 58, 237, 0.1);
}

.icon-backdrop {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.5s ease;
    z-index: -1;
}

.feature-icon i {
    font-size: 2.25rem;
    color: var(--primary);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(8deg);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(45, 212, 191, 0.2) 100%);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
    border-color: rgba(124, 58, 237, 0.3);
}

.feature-card:hover .icon-backdrop {
    opacity: 0.3;
}

.feature-card:hover .feature-icon i {
    color: var(--primary-dark);
    transform: scale(1.15);
    filter: drop-shadow(0 2px 8px rgba(124, 58, 237, 0.3));
}

.feature-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 0;
}

.feature-accent {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover .feature-accent {
    opacity: 1;
}

/* CTA Section - Professional */
.home-cta {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-xl);
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px -12px rgba(124, 58, 237, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-background-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: ctaShapeFloat 20s infinite ease-in-out;
}

.cta-shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.2);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.cta-shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(45, 212, 191, 0.3);
    bottom: -50px;
    right: -50px;
    animation-delay: 7s;
}

.cta-shape-3 {
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.15);
    top: 50%;
    right: 20%;
    animation-delay: 14s;
}

@keyframes ctaShapeFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.home-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    animation: pulse 15s infinite reverse;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: float 8s infinite ease-in-out;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.icon-pulse-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: pulseRing 2s infinite ease-out;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.cta-icon i {
    font-size: 3rem;
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 1;
}

.home-cta h2 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.home-cta p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.7;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.75rem;
    background: white;
    color: var(--primary);
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 10;
    cursor: pointer;
    text-decoration: none;
}

.btn-cta .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.2), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.btn-cta:hover .btn-shine {
    left: 100%;
}

.btn-cta:hover {
    background: var(--gray-50);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 28px 0 rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    color: var(--primary-dark);
}

.btn-cta i,
.btn-cta span:not(.btn-shine) {
    position: relative;
    z-index: 2;
}

.btn-cta i {
    font-size: 1rem;
}

.cta-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: patternMove 25s infinite linear;
    opacity: 0.6;
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(50%, 50%) rotate(360deg);
    }
}

.cta-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 50%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 50%, transparent 90%);
}

/* Footer - Professional & Polished */
footer {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, white 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    padding: 2.5rem 2rem;
    text-align: center;
    margin-top: auto;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

footer p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.8;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

footer a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

footer a:hover::after {
    transform: scaleX(1);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0 0 var(--radius) 0;
    transform: translateY(-100%);
    transition: var(--transition);
    z-index: 9999; /* Ensure it's on top */
}

.skip-link:focus {
    transform: translateY(0);
}

/* Loading States */
.loading {
    position: relative;
    color: transparent !important; /* Ensure text is hidden */
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Course Platform Specific Styles --- */

/* ===== BASE SIDEBAR COMPONENT (shared by filter, lesson, content, blog sidebars) ===== */
.sidebar-base {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    height: fit-content;
    box-shadow: var(--shadow);
}

.sidebar-base.sticky {
    position: sticky;
    top: 2rem;
}

.sidebar-base h3,
.sidebar-base h4 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.sidebar-base ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-base li {
    margin-bottom: 0.5rem;
}

/* Course Dashboard (Tiles & Filters) */
.dashboard-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.filter-sidebar {
    flex: 0 0 250px;
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    /* Inherits: padding, border-radius, height, box-shadow from .sidebar-base when applied */
}

.filter-sidebar h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.filter-list {
    list-style: none;
    padding-left: 0;
}

.filter-list li label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: color 0.2s ease;
}

.filter-list li label:hover {
    color: var(--primary);
}

.filter-list li input[type="checkbox"] {
    margin-right: 0.75rem;
    accent-color: var(--primary);
    transform: scale(1.1);
    cursor: pointer;
}

.course-content-area {
    flex-grow: 1;
    min-width: 0;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
  gap: 2rem;
  padding: 1rem 0;
  justify-content: flex-start;
}

.course-tile {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--gray-200);
}

.course-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.course-tile-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--gray-200);
    display: block; /* Removed !important */
    opacity: 1;
    visibility: visible; /* Removed !important */
}

.course-tile-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-tile-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.course-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.rating-dot {
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--gray-400);
    background-color: transparent;
    border-radius: 50%;
    margin-right: 4px;
    display: inline-block;
}

.rating-dot.filled {
    background-color: var(--warning);
    border-color: var(--warning);
}

.rating-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-left: 0.5rem;
    font-weight: 500;
}

.course-tile-description {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.course-tile-price { /* Style from course_dashboard.html inline */
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-800);
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}
.course-tile-price strong { /* Style from course_dashboard.html inline */
    color: var(--primary);
}

.course-tile-actions {
    padding: 0 1.25rem 1.25rem 1.25rem;
    margin-top: auto;
    text-align: right;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.course-tile-actions .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Unavailable Course Styling */
.course-tile.unavailable {
    opacity: 0.85;
    position: relative;
    border: 1px solid var(--gray-300);
    background-color: var(--gray-50);
}

.course-tile.unavailable .course-tile-image {
    filter: grayscale(80%);
    opacity: 0.9;
    /* display: block and visibility: visible are inherited or default, !important removed */
    position: relative; /* Keep for z-index context if needed */
    z-index: 1;
}

.course-tile.unavailable:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--gray-400);
}

.course-tile.unavailable .course-tile-actions .btn-primary,
.course-tile.unavailable .course-tile-actions .btn-info {
    display: none; /* Removed !important, ensure specificity handles this */
}

.course-tile.unavailable .btn-secondary { /* Request Access Button */
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    position: relative;
    z-index: 10;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    display: inline-block; /* Removed !important */
    visibility: visible; /* Removed !important */
}

.course-tile.unavailable .btn-secondary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Lesson View (from lesson_view.html inline styles) */
.lesson-container {
    display: flex;
    gap: 20px; /* Original was 20px, existing was 2rem. Keeping 20px for now. */
    margin-top: 2rem; /* Existing style */
}
.lesson-sidebar {
    flex: 0 0 250px;
    background-color: var(--gray-100);
    position: sticky;
    top: 5rem; /* Adjust if header height changes */
    /* Inherits: padding, border-radius, height from .sidebar-base */
}
.lesson-sidebar h3 {
    margin-top: 0;
    border-bottom: 1px solid var(--gray-300);
    padding-bottom: 10px;
    /* Inherits: margin-bottom, color from .sidebar-base h3 */
}
.lesson-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lesson-sidebar ul li {
    margin-bottom: 0.5rem; /* Existing style */
}
.lesson-sidebar ul li a {
    display: block;
    padding: 0.75rem 1rem; /* Existing style, original 8px 0 */
    color: var(--gray-700); /* Using var, original #3498db */
    text-decoration: none;
    border-bottom: 1px solid var(--gray-200); /* Using var, original #eee */
    border-radius: var(--radius); /* Existing style */
    transition: var(--transition); /* Existing style */
}
.lesson-sidebar ul li a:hover,
.lesson-sidebar ul li.active a {
    color: var(--primary-dark); /* Using var, original #2980b9 */
    font-weight: bold;
    background: white; /* Existing style */
    box-shadow: var(--shadow-sm); /* Existing style */
}
.lesson-sidebar ul li:last-child a {
    border-bottom: none;
}
.lesson-sidebar ul li.completed a {
    color: var(--success);
    font-weight: bold;
}
.lesson-sidebar ul li.completed a::after {
    content: " ✓"; /* Original ✔, existing ✓ */
    color: var(--success);
}
.lesson-content {
    flex-grow: 1; /* Original */
    flex: 1; /* Existing */
    background-color: white;
    padding: 2rem; /* Existing style, original 20px */
    border-radius: var(--radius-lg); /* Existing style, original 5px */
    box-shadow: var(--shadow); /* Existing style, original 0 2px 5px rgba(0,0,0,0.05) */
}
.lesson-actions { /* from lesson_view.html inline */
    margin-bottom: 15px;
}
.lesson-nav {
    margin-top: 20px; /* Original, existing 3rem */
    padding-top: 1.5rem; /* Refined from existing 2rem */
    border-top: 1px solid var(--gray-200); /* Existing style */
    display: flex;
    justify-content: space-between;
    align-items: center; /* Existing style */
}


/* --- Prompt Builder Specific Styles --- */
/* From view_prompt_type.html inline styles & existing */
.category-block {
    margin-bottom: 20px; /* Original */
    border: 1px solid var(--gray-200); /* Using var, original #eee */
    padding: 1.5rem; /* Existing style, original 15px */
    border-radius: var(--radius-lg); /* Existing style, original 5px */
    background: var(--gray-50); /* Existing style */
    transition: var(--transition); /* Existing style */
}
.category-block:hover { /* Existing style */
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.category-title {
    font-size: 1.25rem; /* Existing style, original 1.2em */
    font-weight: 600; /* Existing style, original bold */
    margin-bottom: 10px; /* Original */
    color: var(--primary); /* Existing style */
}
.module-selection { /* from view_prompt_type.html inline */
    margin-bottom: 10px;
}
.module-label { /* from view_prompt_type.html inline */
    display: block;
    margin-bottom: 5px;
    font-weight: 500; /* Added for consistency */
}
.module-description { /* from view_prompt_type.html inline */
    font-size: 0.9em;
    color: var(--gray-600); /* Using var, original #666 */
    margin-left: 20px;
}
#prompt-preview-container { /* from view_prompt_type.html inline */
    margin-top: 20px;
}
#prompt-preview, #prompt-editor-area {  /* from view_prompt_type.html inline & existing */
    white-space: pre-wrap;
    background-color: var(--gray-100); /* Using var, original #f8f9fa, existing var(--gray-50) */
    border: 1px solid var(--gray-300); /* Using var, original #dee2e6, existing 2px solid var(--gray-200) */
    padding: 1rem; /* Refined, original 10px, existing 1.5rem */
    border-radius: var(--radius); /* Refined, original 5px, existing var(--radius-lg) */
    min-height: 150px;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace; /* Ensure consistent font */
    line-height: 1.5; /* Improve readability */
    font-size: 0.95rem; /* Added for better code display */
}
#prompt-editor-area { /* from view_prompt_type.html inline */
    width: 100%;
    resize: vertical;
}
.prompt-actions { /* from view_prompt_type.html inline & existing */
    margin-top: 10px;
    display: flex;
    gap: 10px; /* Original */
    align-items: center; /* Existing */
}
.copy-btn { /* Existing style, might be redundant if .prompt-actions .btn is used */
    margin-top: 1rem;
}


/* --- Profile Page Styles (from profile.html inline & existing) --- */
.profile-container {
    max-width: 1400px; /* Increased from 800px to allow more width */
    margin: 0 auto;
}
.profile-info, .profile-access {
    background-color: var(--gray-50);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow); /* Added from inline */
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Increased from 250px to 300px for wider boxes */
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.info-item {
    padding: 1.25rem 1.5rem; /* Increased from 1rem for more breathing room */
    background-color: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    min-height: 80px; /* Ensure consistent height */
    display: flex;
    flex-direction: column;
}
.info-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem; /* Slightly smaller label */
    text-transform: uppercase;
    letter-spacing: 0.025em;
}
.info-item span {
    font-size: 1rem;
    word-break: break-word; /* Allow long content to wrap */
}
.access-section {
    margin-bottom: 2rem;
}
.access-section:last-child {
    margin-bottom: 0;
}
.access-section h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.access-list {
    list-style: none;
    padding: 0; /* Added from inline */
}
.access-list li {
    padding: 1.25rem 1.5rem; /* Increased padding for more space */
    background-color: white;
    margin-bottom: 0.75rem; /* Increased spacing between items */
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    display: flex; /* Added from inline */
    justify-content: space-between; /* Added from inline */
    align-items: center; /* Added from inline */
    transition: var(--transition); /* Existing */
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 1rem; /* Add gap between flex items */
}
.access-list li:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}
.access-type { /* from profile.html inline */
    background: var(--primary-light);
    color: white;
    padding: 0.375rem 1rem; /* Increased padding */
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap; /* Prevent badge text wrapping */
}
.no-access { /* from profile.html inline */
    color: var(--gray-600);
    font-style: italic;
    padding: 1rem;
}
.access-details { /* from profile.html inline */
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Increased from 250px */
    gap: 1.5rem; /* Increased gap */
}
.status-badge { /* from profile.html inline */
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: white; /* Default color */
    text-align: center;
}
.status-badge.status-aktiv, /* More specific */
.status-badge.status-full-tilgang {
    background: var(--success);
}
.status-badge.status-begrenset, /* More specific */
.status-badge.status-prøveperiode {
    background: var(--warning);
}
.status-badge.status-inaktiv { /* More specific */
    background: var(--gray-400);
}
.profile-actions { /* from profile.html inline */
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Contact Page Styles (from contact.html inline) --- */
.contact-form-container {
    max-width: 600px;
    margin: 2em auto;
    padding: 2em;
    background-color: #fff;
    border-radius: var(--radius-lg); /* Using var */
    box-shadow: var(--shadow-md); /* Using var */
}
.contact-form-container h1 {
    text-align: center;
    color: var(--primary-dark); /* Using var */
    margin-bottom: 1em;
}
.contact-intro {
    text-align: center;
    margin-bottom: 2em;
    color: var(--gray-600); /* Using var */
    line-height: 1.6;
}
.contact-intro a {
    font-weight: 500;
}

/* --- Admin Contact Submissions Styles (from contact_submissions.html inline) --- */
.submissions-container {
    max-width: 1200px;
    margin: 0 auto;
}
.submission-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.submission-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}
.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Changed from start for consistency */
    margin-bottom: 1rem;
    flex-wrap: wrap; /* Allow status to wrap on small screens */
    gap: 0.5rem;
}
.submission-header h3 {
    margin-bottom: 0.25rem; /* Reduce margin for tighter layout */
}
.submission-meta {
    font-size: 0.875rem;
    color: var(--gray-600);
}
.submission-status {
    padding: 0.35rem 0.75rem; /* Slightly more padding */
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}
.status-new {
    background-color: #fef3c7; /* amber-100 */
    color: #92400e; /* amber-800 */
}
.status-read {
    background-color: #e5e7eb; /* gray-200 */
    color: #374151; /* gray-700 */
}
.status-responded {
    background-color: #d1fae5; /* green-100 */
    color: #065f46; /* green-800 */
}
.submission-content {
    margin-top: 1rem;
}
.submission-field {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.submission-field strong {
    color: var(--primary);
    display: inline-block;
    min-width: 110px; /* Adjusted from 120px */
    font-weight: 500;
}
.submission-message {
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    white-space: pre-wrap;
    border: 1px solid var(--gray-200);
    line-height: 1.6;
}
.no-submissions {
    text-align: center;
    padding: 3rem;
    color: var(--gray-600);
    font-style: italic; /* Added from empty-state-message */
    background-color: var(--gray-50); /* Added from empty-state-message */
    border-radius: var(--radius); /* Added from empty-state-message */
    border: 1px dashed var(--gray-300); /* Added from empty-state-message */
    margin: 2rem 0; /* Added from empty-state-message */
}
.filter-bar {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.filter-bar label {
    margin-right: 0.5rem;
    font-weight: 500;
}
.filter-bar .form-control { /* To style the select dropdown */
    width: auto;
    display: inline-block;
    min-width: 150px;
}
.submission-actions { /* For buttons on submission card */
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}


/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

/* Grid System (Simple) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -1rem; /* Gutter compensation */
    margin-left: -1rem;  /* Gutter compensation */
}

.col, .col-md-6 /* Add more .col-* as needed */ {
    position: relative;
    width: 100%;
    padding-right: 1rem; /* Gutter */
    padding-left: 1rem;  /* Gutter */
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* List Groups */
.list-group {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.list-group-item {
    background: white;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
}

.list-group-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    /* color: inherit; Ensure text color doesn't change unexpectedly on hover if it's not an action item */
}

.list-group-item-action {
    text-decoration: none;
    color: inherit; /* Or var(--gray-800) for default text color */
    display: block;
}

.list-group-item-action:hover {
    text-decoration: none;
    background-color: var(--gray-50); /* Slight hover for action items */
}

/* Progress bar height for quota displays */
.progress-quota {
    height: 20px;
}

.progress-thin {
    height: 0.5rem;
}

.saved-value-list-item {
    cursor: pointer;
}

.saved-value-item-title {
    color: var(--primary);
}

.saved-value-preview {
    margin-bottom: 0.25rem;
}

.saved-values-modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem;
}

.list-group-item h5 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.list-group-item small {
    color: var(--gray-600);
}

/* Form Container for Login */
.form-container {
    max-width: 450px;
    margin: 3rem auto;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.form-container h1,
.form-container h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 2rem;
}

/* 404/500 Error Pages */
.error-page {
    text-align: center;
    padding: 5rem 2rem;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* About Page Section Divider */
.section-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, transparent, var(--gray-300), transparent);
    margin: 4rem auto;
    max-width: 60%;
}

/* KI Portalen special link styling */
.ki-portalen-link {
    background: var(--gray-100);
    padding: 0.5rem 1rem !important; /* Keep important if needed to override general nav link padding */
    border-radius: var(--radius-lg);
    font-weight: 600;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.ki-portalen-link:hover {
    background: var(--primary-light);
    color: white !important; /* Keep important for hover state */
    border-color: var(--primary);
    text-decoration: none;
}

.ki-portalen-link.active-nav {
    background: var(--primary);
    color: white !important; /* Keep important for active state */
    border-color: var(--primary-dark);
}

.ki-portalen-link.active-nav::after {
    display: none; /* Remove the underline for this special button */
}

/* Empty state message styling */
.empty-state-message {
    text-align: center;
    padding: 2rem;
    color: var(--gray-600);
    font-style: italic;
    background-color: var(--gray-50);
    border-radius: var(--radius);
    border: 1px dashed var(--gray-300);
    margin: 2rem 0;
}


/* Responsive Design */
@media (max-width: 768px) {
    header {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }

    .logo a {
        font-size: 1.625rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        align-items: stretch;
    }
    nav ul li {
        width: 100%;
    }
    nav ul li a,
    nav ul li button {
        display: block;
        text-align: center;
        padding: 0.875rem 1rem;
        width: 100%;
    }
    nav ul li a.active-nav::after {
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
    }
    .language-selector {
        margin-top: 1rem;
        width: 100%;
    }
    .language-selector select {
        width: 100%;
    }
    .header-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .user-menu-button {
        width: 100%;
        justify-content: center;
    }

    .user-menu-text {
        display: none;
    }

    .user-menu-dropdown {
        width: 100%;
        left: 0;
        right: 0;
    }

    .help-button {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    .container {
        padding: 1.5rem;
        margin: 1rem auto;
    }
    footer {
        padding: 2rem 1.5rem;
    }

    .home-hero {
        padding: 1.5rem 1.5rem;
    }

    .home-hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .home-hero .lead {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .hero-orb {
        display: none; /* Hide decorative orbs on mobile for performance */
    }

    .hero-grid-overlay {
        opacity: 0.3; /* Reduce opacity on mobile */
    }

    .hero-background-pattern {
        opacity: 0.5; /* Reduce pattern intensity on mobile */
    }

    .features-header h2 {
        font-size: 2rem;
    }

    .features-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
    }

    .feature-icon i {
        font-size: 1.75rem;
    }

    .home-cta {
        padding: 3rem 1.5rem;
        min-height: 250px;
    }

    .home-cta h2 {
        font-size: 1.75rem;
    }

    .home-cta p {
        font-size: 1rem;
    }

    .cta-icon {
        width: 80px;
        height: 80px;
    }

    .cta-icon i {
        font-size: 2rem;
    }

    .cta-background-shapes {
        opacity: 0.5; /* Reduce shape intensity on mobile */
    }

    .cta-grid-overlay {
        opacity: 0.2; /* Reduce grid overlay on mobile */
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .feature-card-glow,
    .icon-backdrop {
        display: none; /* Disable glow effects on mobile for performance */
    }

    .dashboard-layout {
        flex-direction: column;
    }
    .filter-sidebar {
        flex-basis: 100%;
        margin-bottom: 2rem;
        height: auto;
    }
    .course-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Profile page responsive adjustments */
    .profile-container {
        max-width: 100%;
    }
    .info-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    .container {
        width: 100%;
        padding: 1rem;
        margin: 1rem auto;
    }
    .profile-info, .profile-access {
        padding: 1.25rem;
    }
}

@media (max-width: 992px) { /* For filter sidebar on medium screens */
    .filter-sidebar {
        flex: 0 0 220px;
    }
}


/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    header, footer, nav, .btn, .filter-sidebar, .lesson-actions, .prompt-actions, .profile-actions, .submission-actions, .filter-bar {
        display: none !important;
    }

    .container, .lesson-container, .profile-container, .submissions-container, .contact-form-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
    }
    .course-grid, .info-grid, .access-details {
        grid-template-columns: 1fr !important; /* Stack grids for printing */
    }
    .course-tile, .info-item, .submission-card, .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
    a[href^="/"]:after, a[href^="mailto:"]:after {
        /* Don't show internal links or mailto links */
        content: "";
    }
}

/* Loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.loading-overlay-hidden {
    display: none !important;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Language selector fallback for no-JS */
.language-links {
    display: inline-block;
    margin-left: 10px;
}

.language-links a {
    margin: 0 5px;
    padding: 2px 8px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.9em;
}

.language-links a:hover {
    background-color: #e9ecef;
}

/* Improved form validation styles */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-group.has-success input,
.form-group.has-success textarea,
.form-group.has-success select {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-error-message {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

/* Button loading states */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-loading {
    position: relative;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from { transform: rotate(0turn); }
    to { transform: rotate(1turn); }
}

/* Improved error page styles */
.error-page {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.error-page h1 {
    font-size: 6rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* Logo fallback styling */
.logo img {
    max-height: 40px;
    width: auto;
    vertical-align: middle;
    margin-right: 10px;
}

/* Rate limit error styling */
.alert-rate-limit {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* Contact form improvements */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== CONTENT ENGINE STYLES ===== */

/* Content Dashboard Layout */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.content-tile {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.content-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.content-tile.unavailable {
    opacity: 0.6;
    filter: grayscale(0.3);
}

.content-tile-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--gray-200);
}

.content-tile-content {
    padding: 1.5rem;
}

.content-tile-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.content-tile-description {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.content-tile-price {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.content-tile-actions {
    padding: 0 1.5rem 1.5rem;
}

/* Content View Layout */
.content-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.content-sidebar {
    background: white;
    position: sticky;
    top: 2rem;
    /* Inherits: padding, border-radius, box-shadow, height from .sidebar-base */
}

.content-sidebar h3 {
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    color: var(--gray-900);
    /* Inherits: margin-bottom from .sidebar-base h3 */
}

#content-list-sidebar {
    list-style: none;
    padding: 0;
    margin: 0;
}

#content-list-sidebar li {
    margin-bottom: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

#content-list-sidebar li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
}

#content-list-sidebar li a:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

#content-list-sidebar li.active a {
    background-color: var(--primary);
    color: white;
}

#content-list-sidebar li.completed a::after {
    content: " ✓";
    color: var(--success);
    font-weight: bold;
}

.content-main {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.content-actions {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.content-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

/* Content Styling */
.content-main h1,
.content-main h2,
.content-main h3,
.content-main h4,
.content-main h5,
.content-main h6 {
    color: var(--gray-900);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-main h1:first-child,
.content-main h2:first-child,
.content-main h3:first-child {
    margin-top: 0;
}

.content-main p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.content-main ul,
.content-main ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-main li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.content-main blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray-600);
}

.content-main pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
    position: relative;
}

.content-main code {
    background: var(--gray-100);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.content-main pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Table of Contents */
.table-of-contents {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.table-of-contents h4 {
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
}

.table-of-contents a:hover {
    color: var(--primary);
}

/* Table Scroll Shell */
.table-scroll-shell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.table-scroll-shell .table-scroll-top {
    overflow-x: auto;
    overflow-y: hidden;
    height: 12px;
    border-radius: var(--radius);
}

.table-scroll-shell .table-scroll-top.is-hidden {
    display: none;
}

.table-scroll-shell .table-scroll-top::-webkit-scrollbar {
    height: 8px;
}

.table-scroll-shell .table-scroll-top::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius);
}

.table-scroll-shell .table-scroll-body {
    overflow: auto;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    background: white;
}

.table-scroll-shell .table-scroll-inner {
    height: 12px;
}

.table-scroll-shell table {
    margin-bottom: 0;
    table-layout: auto;
}

.table-scroll-shell table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: white;
    box-shadow: inset 0 -1px 0 var(--gray-200);
    white-space: nowrap;
}

.table-scroll-shell table th,
.table-scroll-shell table td {
    padding: 0.75rem 1.25rem;
    vertical-align: middle;
}

.table-scroll-shell table tbody tr:hover {
    background: rgba(124, 58, 237, 0.04);
}

.table-scroll-shell table tbody td:first-child,
.table-scroll-shell table thead th:first-child {
    position: sticky;
    left: 0;
    background: white;
    z-index: 4;
    box-shadow: 2px 0 0 rgba(15, 23, 42, 0.04);
}

.table-scroll-shell [data-table-layout="wide"] {
    min-width: 1100px;
}

.table-scroll-shell .table-subtext {
    color: var(--gray-500);
    font-size: 0.85rem;
    display: block;
    margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .content-sidebar {
        position: static;
        order: 2;
    }

    .content-main {
        order: 1;
        padding: 1.5rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .content-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .content-nav .btn {
        text-align: center;
    }
}

/* Content Dashboard Responsive */
@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .filter-sidebar {
        order: 2;
        margin-top: 1rem;
    }

    .content-area {
        order: 1;
    }
}

/* ===== BLOG DASHBOARD PAGE STYLES ===== */
.blog-dashboard-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.blog-hero-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 30%, #EDE9FE 70%, #F8FAFC 100%);
    padding: 2rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.blog-hero-icon i {
    font-size: 1.25rem;
    color: white;
}

.blog-hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.blog-hero-section .lead {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 0;
    line-height: 1.6;
}

.blog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.blog-sidebar {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
    /* Inherits: padding, border-radius, box-shadow, height from .sidebar-base */
}

.blog-sidebar h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
    font-size: 1.125rem;
    font-weight: 700;
}

.blog-sidebar h4 i {
    color: var(--primary);
    font-size: 1rem;
}

.search-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.search-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 1;
}

.blog-search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: white;
}

.blog-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.blog-search-input:focus + .search-icon,
.blog-search-input:focus ~ .search-icon {
    color: var(--primary);
}

.tag-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tag-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 2px solid var(--gray-300);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    width: 100%;
}

.tag-filter-btn i {
    font-size: 0.875rem;
    color: var(--gray-500);
    transition: color 0.3s ease;
}

.tag-filter-btn:hover {
    background: rgba(124, 58, 237, 0.05);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(4px);
}

.tag-filter-btn:hover i {
    color: var(--primary);
}

.tag-filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.tag-filter-btn.active i {
    color: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(124, 58, 237, 0.1);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.15), 0 0 0 1px rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.3);
}

.blog-card-image {
    height: 160px;
    overflow: hidden;
    position: relative;
    background: var(--gradient-primary);
    flex-shrink: 0;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.blog-author,
.blog-date,
.blog-reading-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.blog-author i,
.blog-date i,
.blog-reading-time i {
    font-size: 0.6875rem;
    color: var(--accent);
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: var(--primary-dark);
    line-height: 1.3;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-card-title {
    color: var(--primary);
}

.blog-card-excerpt {
    color: var(--gray-700);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.blog-tag {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.blog-card-actions {
    margin-top: auto;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
    flex-shrink: 0;
}

.btn-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.btn-read-more i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(4px);
}

.blog-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.blog-empty-state p {
    color: var(--gray-600);
    font-size: 1.125rem;
    margin: 0;
}

/* Blog Dashboard Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-sidebar {
        position: static;
        order: 2;
    }

    .blog-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .blog-dashboard-page {
        padding: 1rem;
    }

    .blog-hero-section {
        padding: 1.5rem 1.5rem;
    }

    .blog-hero-section h1 {
        font-size: 1.75rem;
    }

    .blog-hero-icon {
        width: 45px;
        height: 45px;
    }

    .blog-hero-icon i {
        font-size: 1.125rem;
    }

    .blog-sidebar {
        padding: 1.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card-content {
        padding: 1.25rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-card-title {
        font-size: 1.125rem;
    }

    .blog-card-image {
        height: 140px;
    }

    .blog-card-placeholder {
        font-size: 2rem;
    }
}

/* Audio Recording Interface Styles */
.audio-input-section {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.audio-input-section h3 {
    margin-bottom: 1.5rem;
    color: var(--gray-800);
    font-size: 1.25rem;
}

.file-upload-section,
.browser-recording-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.file-upload-section label,
.browser-recording-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.recording-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.recording-controls button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
    justify-content: center;
}

.recording-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.recording-controls button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.recording-icon {
    font-size: 1.1rem;
}

.recording-status {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
}

.recording-timer {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: var(--danger);
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.recording-visualizer {
    height: 60px;
    background: var(--gray-200);
    border-radius: var(--radius);
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.recording-info {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.audio-input-section small {
    display: block;
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Audio visualization bars */
.audio-bar {
    position: absolute;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
    transition: height 0.1s ease;
}

/* Recording state indicators */
.recording-active {
    border-color: var(--danger);
    background: #fef2f2;
}

.recording-active .recording-timer {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive design for audio interface */
@media (max-width: 768px) {
    .audio-input-section {
        padding: 1rem;
    }

    .recording-controls {
        flex-direction: column;
    }

    .recording-controls button {
        width: 100%;
    }

    .file-upload-section,
    .browser-recording-section {
        padding: 0.75rem;
    }
}

/* Additional utility classes for templates (moved from inline styles) */
.form-footer {
    margin-top: 12px;
}

.form-hint {
    margin-top: 12px;
}

.btn-continue-content {
    display: none;
}

.btn-continue-content.show {
    display: inline-block;
}

.contact-success-container {
    text-align: center;
    padding: 40px 0;
}

/* Debug page utilities */
.btn-hidden {
    display: none;
}

.btn-hidden.show {
    display: inline-block;
}

.is-hidden {
    display: none !important;
}

.debug-pre {
    overflow-y: auto;
    font-size: 0.8em;
}

.debug-pre-xs {
    font-size: 0.7em;
}

.debug-pre-sm {
    max-height: 300px;
}

.debug-pre-lg {
    max-height: 400px;
}

.debug-pre-wrap {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ===== USE PROMPT PAGE STYLES ===== */

/* Usage Overview and Recent Activity Cards - Compact Design */
.use-prompt-page {
    padding-bottom: 1rem;
}

.use-prompt-page .container {
    max-width: 1200px;
}

.use-prompt-page .breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.use-prompt-page .breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.use-prompt-page .breadcrumb-item a:hover {
    text-decoration: underline;
}

.use-prompt-page .row.g-2 {
    margin-bottom: 0.75rem !important;
    gap: 0.5rem !important;
}

/* Ensure Usage Overview and Recent Activity stay in one row on medium+ screens */
.use-prompt-usage-row {
    display: flex !important;
}

@media (min-width: 768px) {
    .use-prompt-usage-row {
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 767px) {
    .use-prompt-usage-row {
        flex-wrap: wrap !important;
    }
}

/* Compact card styling for usage overview and recent activity */
.use-prompt-compact-card {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
}

.use-prompt-compact-card .card-body {
    padding: 0.625rem !important;
}

.use-prompt-compact-card .card-title {
    margin-bottom: 0.25rem !important;
}

.use-prompt-compact-card .alert {
    margin-top: 0.5rem !important;
    padding: 0.375rem 0.5rem !important;
    font-size: 0.6875rem !important;
}

.use-prompt-page .card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.use-prompt-page .card-body {
    padding: 1.25rem !important;
}

.use-prompt-page .col-lg-8 .card-body {
    padding: 1rem 1.25rem !important;
}

.use-prompt-page .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.use-prompt-page .card-body .mb-3 {
    margin-bottom: 0.875rem !important;
}

.use-prompt-page .card-body > div:last-child {
    margin-bottom: 0 !important;
}

.use-prompt-page .card-body .small {
    font-size: 0.8125rem;
}

.use-prompt-page .badge.fs-6 {
    font-size: 0.8125rem !important;
    padding: 0.25rem 0.625rem;
    font-weight: 600;
    border-radius: var(--radius);
}

.use-prompt-page .d-flex.justify-content-between.align-items-start {
    margin-bottom: 0.75rem;
}

.use-prompt-page .progress {
    height: 0.5rem;
    border-radius: var(--radius);
    background-color: var(--gray-200);
    margin-top: 0.375rem;
}

.use-prompt-page .progress-bar {
    border-radius: var(--radius);
}

.use-prompt-page .list-group-item {
    padding: 0.625rem 0 !important;
    border: none;
    border-bottom: 1px solid var(--gray-200);
}

.use-prompt-page .list-group-item:last-child {
    border-bottom: none;
}

.use-prompt-page .list-group-item .fw-semibold {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-800);
}

.use-prompt-page .list-group-item .text-muted {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.use-prompt-page h6.text-uppercase {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem !important;
}

/* Limit height of history list and add scroll for compact cards */
.use-prompt-compact-card .list-group {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

.use-prompt-compact-card .list-group::-webkit-scrollbar {
    width: 5px;
}

.use-prompt-compact-card .list-group::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: var(--radius);
}

.use-prompt-compact-card .list-group::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius);
}

.use-prompt-compact-card .list-group::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .use-prompt-page .row.g-4 > div {
        margin-bottom: 1rem;
    }

    .use-prompt-page .card-body {
        padding: 1rem !important;
    }
}

@media (max-width: 768px) {
    .use-prompt-page .card-body {
        padding: 0.875rem !important;
    }

    .use-prompt-page .card-title {
        font-size: 0.9375rem;
    }

    .use-prompt-page .badge.fs-6 {
        font-size: 0.8125rem !important;
        padding: 0.25rem 0.5rem;
    }
}

.use-prompt-result-section {
    margin-bottom: 2rem;
}

.use-prompt-result-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
    overflow: hidden;
}

.use-prompt-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--gradient-primary);
    color: white;
}

.use-prompt-result-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.use-prompt-result-header-content i {
    font-size: 1.5rem;
}

.use-prompt-result-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.use-prompt-result-body {
    padding: 2rem;
    background: white;
}

/* Enhanced result content area */
.use-prompt-result-body .result-content {
    background: white;
    padding: 0;
}

.result-content {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--gray-800);
    font-size: 1rem;
}

.result-content h1,
.result-content h2,
.result-content h3,
.result-content h4 {
    color: var(--gray-900);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.result-content h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
}

.result-content h3 {
    font-size: 1.375rem;
    color: var(--primary);
    margin-top: 1.75rem;
}

.result-content h4 {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-top: 1.5rem;
}

.result-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.result-content strong {
    color: var(--gray-900);
    font-weight: 600;
}

.result-content ul,
.result-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.result-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.result-content li strong {
    color: var(--primary);
}

/* CV Assessment specific styling */
.result-content .ai-output-content {
    max-width: 100%;
}

/* Rating display styling - for CV assessments */
.result-content h2 + p,
.result-content h2 + p strong {
    font-size: 1.125rem;
}

.result-content p strong:first-child {
    color: var(--primary);
}

/* Rating text styling */
.result-content p:has(strong) {
    font-size: 1.0625rem;
}

/* Professional section dividers */
.result-content h2:not(:first-child) {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

/* Better spacing for CV assessment sections */
.result-content .ai-output-content > h2:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

/* Professional alert styling for errors */
.result-content .alert {
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.result-content .alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.result-content .alert-info {
    background: #d1ecf1;
    border-color: #0dcaf0;
    color: #055160;
}

.result-content .alert strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
}

.result-content pre {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    overflow-x: auto;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray-800);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 1rem 0;
}

/* Better code block styling */
.result-content code {
    background: var(--gray-100);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--primary);
    font-family: 'Courier New', Courier, monospace;
}

.result-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Raw output fallback styling */
.result-content .raw-output-fallback {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    overflow-x: auto;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray-800);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 1rem 0;
    font-family: 'Courier New', Courier, monospace;
}

/* AI Output Content wrapper */
.result-content .ai-output-content {
    max-width: 100%;
}

.result-content .ai-output-content > *:first-child {
    margin-top: 0;
}

/* Better list styling for CV assessments */
.result-content .ai-output-content ul li {
    position: relative;
    padding-left: 0.5rem;
}

.result-content .ai-output-content ul li::marker {
    color: var(--primary);
}

/* Professional blockquote styling if needed */
.result-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--gray-700);
    font-style: italic;
    background: var(--gray-50);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
}

/* CV Assessment section headers */
.result-content .cv-assessment-section {
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--primary);
    margin-left: -1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.result-content .cv-assessment-section::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 2px 0 0 2px;
}

/* Enhanced paragraph styling after headers */
.result-content h2 + p,
.result-content h3 + p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-800);
}

/* Better list item styling for key observations */
.result-content h2 + ul,
.result-content h3 + ul {
    margin-top: 1rem;
}

.result-content h2 + ul li,
.result-content h3 + ul li {
    background: var(--gray-50);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
    transition: all 0.2s ease;
}

.result-content h2 + ul li:hover,
.result-content h3 + ul li:hover {
    background: var(--gray-100);
    border-left-color: var(--primary-dark);
    transform: translateX(4px);
}

/* Fit Score styling */
.result-content h3 + p strong {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius);
    font-size: 1rem;
    margin-right: 0.75rem;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.2);
}

/* Recommendation section styling */
.result-content h2:last-of-type + p,
.result-content h2:last-of-type + ul {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    margin-top: 1.5rem;
}

/* Better spacing between sections */
.result-content .ai-output-content > * + h2 {
    margin-top: 3rem;
}

.result-content .ai-output-content > * + h3 {
    margin-top: 2rem;
}

/* Markdown Table Styles */
.result-content table,
.result-content .markdown-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.result-content table thead,
.result-content .markdown-table thead {
    background: var(--gradient-primary);
    color: white;
}

.result-content table th,
.result-content .markdown-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.result-content table th:first-child,
.result-content .markdown-table th:first-child {
    padding-left: 1.5rem;
}

.result-content table th:last-child,
.result-content .markdown-table th:last-child {
    padding-right: 1.5rem;
}

.result-content table tbody tr,
.result-content .markdown-table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: background-color 0.2s ease;
}

.result-content table tbody tr:last-child,
.result-content .markdown-table tbody tr:last-child {
    border-bottom: none;
}

.result-content table tbody tr:hover,
.result-content .markdown-table tbody tr:hover {
    background: var(--gray-50);
}

.result-content table td,
.result-content .markdown-table td {
    padding: 1rem 1.25rem;
    color: var(--gray-700);
    font-size: 0.9375rem;
    line-height: 1.6;
    vertical-align: top;
}

.result-content table td:first-child,
.result-content .markdown-table td:first-child {
    padding-left: 1.5rem;
}

.result-content table td:last-child,
.result-content .markdown-table td:last-child {
    padding-right: 1.5rem;
}

.result-content table tbody tr:nth-child(even),
.result-content .markdown-table tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.result-content table tbody tr:nth-child(even):hover,
.result-content .markdown-table tbody tr:nth-child(even):hover {
    background: var(--gray-100);
}

/* Responsive table styles */
@media (max-width: 768px) {
    .result-content table,
    .result-content .markdown-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .result-content table thead,
    .result-content .markdown-table thead {
        display: none;
    }

    .result-content table tbody,
    .result-content .markdown-table tbody,
    .result-content table tr,
    .result-content .markdown-table tr,
    .result-content table td,
    .result-content .markdown-table td {
        display: block;
        width: 100%;
    }

    .result-content table tr,
    .result-content .markdown-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius);
        padding: 0.75rem;
        background: white;
    }

    .result-content table td,
    .result-content .markdown-table td {
        padding: 0.5rem 0;
        border: none;
        text-align: left;
    }

    .result-content table td:before,
    .result-content .markdown-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--gray-900);
        display: inline-block;
        min-width: 120px;
    }
}

.use-prompt-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.use-prompt-result-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.use-prompt-result-usage {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.use-prompt-result-usage i {
    color: var(--primary);
}

/* Form Section Styles */
.use-prompt-form-section {
    margin-bottom: 2rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.use-prompt-form-section.use-prompt-form-hidden {
    display: none;
}

.use-prompt-form-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.1);
    overflow: hidden;
}

.use-prompt-form-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.use-prompt-form-header i {
    color: var(--primary);
    font-size: 1.25rem;
}

.use-prompt-form-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.use-prompt-form-body {
    padding: 2rem;
}

/* File Upload Styles */
.use-prompt-file-upload {
    margin-bottom: 1.5rem;
}

.use-prompt-file-upload .form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.use-prompt-file-upload .form-label i {
    color: var(--primary);
}

.use-prompt-file-preview {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.use-prompt-file-preview-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.use-prompt-file-preview-content i {
    color: var(--success);
    font-size: 1.125rem;
}

.use-prompt-file-name {
    font-weight: 500;
    color: var(--gray-900);
}

.use-prompt-file-clear {
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.use-prompt-file-clear:hover {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.use-prompt-or-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.use-prompt-or-divider::before,
.use-prompt-or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--gray-300);
}

.use-prompt-or-divider::before {
    left: 0;
}

.use-prompt-or-divider::after {
    right: 0;
}

.use-prompt-or-divider span {
    display: inline-block;
    padding: 0 1rem;
    background: white;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.use-prompt-text-input.use-prompt-text-optional {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.use-prompt-text-input.use-prompt-text-optional::placeholder {
    color: var(--gray-400);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .use-prompt-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .use-prompt-result-header-content {
        width: 100%;
    }

    .use-prompt-result-actions {
        flex-direction: column;
    }

    .use-prompt-result-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .use-prompt-form-body {
        padding: 1.5rem;
    }

    .use-prompt-file-preview-content {
        flex-wrap: wrap;
    }
}

/* ============================================
   Phase 0: Visual/UX Improvements
   ============================================ */

/* Global Table Row Hover Effects */
.table tbody tr {
    transition: background-color var(--transition-fast);
}

.table tbody tr:hover {
    background-color: var(--gray-50) !important;
}

.table-striped tbody tr:hover {
    background-color: var(--gray-100) !important;
}

/* Consistent Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    border-radius: var(--radius);
    text-align: center;
    white-space: nowrap;
}

.badge {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}

.badge-success,
.status-badge.status-active,
.status-badge.status-verified,
.status-badge.status-enabled {
    background-color: var(--success);
    color: white;
}

.badge-danger,
.status-badge.status-inactive,
.status-badge.status-disabled {
    background-color: var(--danger);
    color: white;
}

.badge-warning,
.status-badge.status-pending {
    background-color: var(--warning);
    color: var(--gray-900);
}

.badge-info,
.status-badge.status-new {
    background-color: var(--info);
    color: white;
}

.badge-secondary {
    background-color: var(--gray-500);
    color: white;
}

/* Enhanced Error Messages */
.form-error-message,
.invalid-feedback,
.alert-danger {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-error-message::before,
.alert-danger::before {
    content: "\f06a"; /* Font Awesome exclamation-circle icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
}

.has-error .form-control,
.form-control.is-invalid {
    border-color: var(--danger);
    border-width: 2px;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.15);
}

/* Empty State Messages */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--gray-600);
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

/* .empty-state-message is defined earlier at line ~1755 with more complete styles */

.empty-state-hint {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Card Hover Effects */
.tool-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transition: box-shadow var(--transition), transform var(--transition);
}

/* Monospace for JSON/Code */
textarea[readonly].json-display,
pre.json-display,
.code-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    padding: 1rem;
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
}

/* Character Counter */
.character-counter {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-align: right;
    margin-top: 0.25rem;
}

.character-counter.warning {
    color: var(--warning);
}

.character-counter.danger {
    color: var(--danger);
}

/* Visual Grouping for Forms */
.form-group-visual {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Organization Detail Form Styling */
.org-edit-form-card {
    border: 2px solid var(--primary-light);
    background-color: var(--gray-50);
}

.org-assign-form-card {
    border: 2px solid var(--info);
    background-color: rgba(59, 130, 246, 0.03);
}

/* Badge Sizing */
.badge-lg {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

/* Prominent Text */
.text-prominent {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Table Column Width */
.col-min-width-140 {
    min-width: 140px;
}

/* Timestamp Styling */
.timestamp-date {
    font-weight: 500;
}

/* Unassigned Course Warning */
.unassigned-course {
    background-color: rgba(245, 158, 11, 0.1) !important;
    border-left: 3px solid var(--warning);
}

/* Clickable Numbers */
.clickable-number {
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.clickable-number:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Activity Log Row Colors */
.activity-row-create {
    background-color: rgba(16, 185, 129, 0.05);
}

.activity-row-delete {
    background-color: rgba(239, 68, 68, 0.05);
}

.activity-row-update {
    background-color: rgba(59, 130, 246, 0.05);
}

/* Contact Submission States */
.submission-unread {
    background-color: rgba(59, 130, 246, 0.08) !important;
}

.submission-new {
    border: 2px solid var(--info);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

/* Copy Button */
.btn-copy {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border: none;
    background: transparent;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy:hover {
    color: var(--primary);
    background-color: var(--gray-100);
    border-radius: var(--radius-sm);
}

/* Unavailable Content Overlay */
.content-unavailable {
    filter: grayscale(100%);
    opacity: 0.6;
    position: relative;
}

.content-unavailable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
}

/* Filter Count Badge */
.filter-count-badge {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.filter-count-badge-hidden {
    display: none;
}

/* Prominent Current Badge */
.badge-current {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
}

/* Email Verification Badge */
.email-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background-color: var(--success);
    color: white;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
}

.email-verified-badge i {
    font-size: 1rem;
}

/* ==========================================================================
   Help System Styles
   ========================================================================== */

/* Header Actions Wrapper */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* User Menu Button */
.user-menu-wrapper {
    position: relative;
}

.user-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.user-menu-button:hover {
    background: var(--gray-200);
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.user-menu-button:active {
    transform: translateY(0);
}

.user-menu-button i.fa-user-circle {
    font-size: 1.25rem;
    color: var(--primary);
}

.user-menu-text {
    font-weight: 500;
}

.user-menu-chevron {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    margin-left: 0.25rem;
}

.user-menu-wrapper[data-dropdown-open="true"] .user-menu-chevron,
.user-menu-wrapper:hover .user-menu-chevron {
    transform: rotate(180deg);
}

/* User Menu Dropdown */
.user-menu-dropdown {
    right: 0;
    left: auto;
    min-width: 200px;
    margin-top: 0.5rem;
}

.user-menu-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

.user-menu-dropdown .dropdown-item i {
    width: 1.25rem;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.user-menu-dropdown .dropdown-item:hover i {
    color: var(--primary);
}

.user-menu-dropdown .dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid var(--gray-200);
}

.help-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
    white-space: nowrap;
    height: fit-content;
    line-height: 1.2;
}

.help-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.help-button:active {
    transform: translateY(0);
}

.help-button i {
    font-size: 1.1rem;
}

.help-button-text {
    font-weight: 500;
}

/* Hide text on mobile, show icon only */
@media (max-width: 768px) {
    .help-button-text {
        display: none;
    }
    .help-button {
        padding: 0.5rem;
        margin-left: 0.5rem;
    }

    .user-menu-text {
        display: none;
    }

    .user-menu-button {
        padding: 0.5rem 0.75rem;
    }
}

/* Help Modal Content Styles */
#help-content {
    min-height: 200px;
}

.help-section {
    margin-bottom: 2rem;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section-title {
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.help-overview {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
}

.help-elements {
    margin: 0;
}

/* ===== ADMIN DASHBOARD PAGE STYLES ===== */
.admin-dashboard-page {
    padding-bottom: 2rem;
}

.admin-dashboard-hero-section {
    background: var(--gradient-hero);
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.admin-dashboard-hero-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.admin-dashboard-hero-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.admin-dashboard-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.admin-dashboard-hero-content .lead {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.admin-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.admin-dashboard-actions .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    min-width: fit-content;
    text-decoration: none;
}

.admin-dashboard-actions .btn i {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.admin-dashboard-actions .btn span {
    display: inline-block;
    white-space: nowrap;
    overflow: visible;
}

.admin-dashboard-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Filter Section */
.admin-filter-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.admin-filter-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.admin-filter-group {
    flex: 1;
    min-width: 250px;
}

.admin-filter-group .form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-filter-group .form-label i {
    color: var(--primary);
}

.admin-filter-actions {
    display: flex;
    gap: 0.75rem;
}

.admin-filter-actions .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
    padding: 0.625rem 1.25rem !important;
    font-weight: 500 !important;
}

.admin-filter-actions .btn i {
    flex-shrink: 0;
}

.admin-filter-actions .btn span {
    display: inline-block;
}

/* Stats Section */
.admin-stats-section {
    margin-bottom: 2rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.admin-stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.admin-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.admin-stat-content {
    flex: 1;
}

.admin-stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin: 0 0 0.5rem 0;
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.2;
}

/* ===== ORGANIZATION DASHBOARD STYLES ===== */
.org-dashboard-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.org-dashboard-hero-section {
    background: var(--gradient-hero);
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.org-dashboard-hero-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.org-dashboard-hero-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.org-dashboard-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.org-dashboard-hero-content .lead {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.org-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.org-dashboard-actions .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    min-width: fit-content;
    text-decoration: none;
}

.org-dashboard-actions .btn i {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.org-dashboard-actions .btn span {
    display: inline-block;
    white-space: nowrap;
    overflow: visible;
}

.org-dashboard-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Org Stats Section */
.org-stats-section {
    margin-bottom: 2rem;
}

.org-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.org-stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.org-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.org-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.org-stat-content {
    flex: 1;
}

.org-stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin: 0 0 0.5rem 0;
}

.org-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.2;
}

.org-stat-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.org-stat-value a:hover {
    color: var(--primary);
}

/* Card Header Icon Styling */
.card-header .d-flex.align-items-center i {
    font-size: 1.125rem;
}

/* Responsive adjustments for org dashboard */
@media (max-width: 768px) {
    .org-dashboard-hero-section {
        padding: 2rem 0;
    }

    .org-dashboard-hero-content h1 {
        font-size: 2rem;
    }

    .org-dashboard-hero-icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 2rem;
    }

    .org-dashboard-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .org-dashboard-actions .btn {
        width: 100%;
    }

    .org-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .org-stat-card {
        padding: 1.25rem;
    }

    .org-stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .org-stat-value {
        font-size: 1.75rem;
    }
}

/* ===== ADMIN ORGANIZATIONS PAGE STYLES ===== */
.admin-organizations-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.admin-organizations-hero-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 30%, #EDE9FE 70%, #F8FAFC 100%);
    padding: 2rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.admin-organizations-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.admin-organizations-hero-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.admin-organizations-hero-icon i {
    font-size: 1.25rem;
    color: white;
}

.admin-organizations-hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.admin-organizations-hero-content .lead {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.admin-organizations-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.admin-organizations-hero-actions .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    min-width: fit-content;
    text-decoration: none;
}

.admin-organizations-hero-actions .btn i {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.admin-organizations-hero-actions .btn span {
    display: inline-block;
    white-space: nowrap;
    overflow: visible;
}

.admin-organizations-hero-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Admin Organizations Stats Section */
.admin-organizations-stats-section {
    margin-bottom: 2rem;
}

.admin-organizations-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.admin-organizations-stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.admin-organizations-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.admin-organizations-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.admin-organizations-stat-content {
    flex: 1;
}

.admin-organizations-stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin: 0 0 0.5rem 0;
}

.admin-organizations-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.2;
}

/* Admin Organizations Filter Section */
.admin-organizations-filter-section {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
}

.admin-organizations-filter-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.admin-organizations-filter-group {
    flex: 1;
    min-width: 250px;
}

.admin-organizations-filter-group .form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-organizations-filter-group .form-label i {
    color: var(--primary);
}

.admin-organizations-filter-actions {
    display: flex;
    gap: 0.75rem;
}

.admin-organizations-filter-actions .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
    padding: 0.625rem 1.25rem !important;
    font-weight: 500 !important;
}

.admin-organizations-filter-actions .btn i {
    flex-shrink: 0;
}

    .admin-organizations-filter-actions .btn span {
        display: inline-block;
    }

/* ===== ADMIN USAGE SYSTEM PAGE STYLES ===== */
.admin-usage-system-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.admin-usage-system-hero-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 30%, #EDE9FE 70%, #F8FAFC 100%);
    padding: 2rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.admin-usage-system-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.admin-usage-system-hero-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.admin-usage-system-hero-icon i {
    font-size: 1.25rem;
    color: white;
}

.admin-usage-system-hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.admin-usage-system-hero-content .lead {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.admin-usage-system-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.admin-usage-system-hero-actions .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    min-width: fit-content;
    text-decoration: none;
}

.admin-usage-system-hero-actions .btn i {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.admin-usage-system-hero-actions .btn span {
    display: inline-block;
    white-space: nowrap;
    overflow: visible;
}

.admin-usage-system-hero-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Admin Usage System Stats Section */
.admin-usage-system-stats-section {
    margin-bottom: 2rem;
}

.admin-usage-system-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.admin-usage-system-stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.admin-usage-system-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.admin-usage-system-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.admin-usage-system-stat-content {
    flex: 1;
}

.admin-usage-system-stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin: 0 0 0.5rem 0;
}

.admin-usage-system-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.2;
}

/* Admin Usage System Table */
.admin-usage-system-table-card {
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-usage-system-table-header {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.admin-usage-system-table-body {
    overflow-x: auto;
}

.admin-usage-system-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.admin-usage-system-table thead {
    background: var(--gray-50);
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-usage-system-table thead th {
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--gray-300);
    padding: 1.25rem 1rem;
    vertical-align: middle;
    white-space: nowrap;
    background: var(--gray-50);
}

.admin-usage-system-table tbody td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
    background: white;
}

.admin-usage-system-table tbody tr {
    transition: all 0.2s ease;
}

.admin-usage-system-table tbody tr:hover {
    background-color: var(--gray-50);
}

.admin-usage-system-table tbody tr:hover td {
    background-color: var(--gray-50);
}

.admin-usage-system-table tbody tr:last-child td {
    border-bottom: none;
}

/* Workspace name styling */
.usage-workspace-name {
    color: var(--gray-900);
    font-weight: 600;
    font-size: 0.9375rem;
}

.usage-table-row:hover .usage-workspace-name {
    color: var(--primary);
}

/* Number values styling */
.usage-number-value {
    font-weight: 600;
    color: var(--gray-700);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Button styling */
.usage-view-btn,
.usage-export-btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.usage-view-btn:hover,
.usage-export-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.usage-view-btn i,
.usage-export-btn i {
    font-size: 0.875rem;
}

/* Table column widths */
.usage-table-workspace {
    min-width: 200px;
    width: 25%;
}

.usage-table-calls,
.usage-table-tokens,
.usage-table-users,
.usage-table-average {
    min-width: 120px;
    width: 15%;
}

.usage-table-actions {
    min-width: 200px;
    width: 20%;
}

/* Responsive adjustments for admin usage system page */
@media (max-width: 768px) {
    .admin-usage-system-page {
        padding: 1rem 0.5rem;
    }

    .admin-usage-system-hero-section {
        padding: 1.5rem 1rem;
    }

    .admin-usage-system-hero-content h1 {
        font-size: 1.75rem;
    }

    .admin-usage-system-hero-icon {
        width: 45px;
        height: 45px;
    }

    .admin-usage-system-hero-icon i {
        font-size: 1.125rem;
    }

    .admin-usage-system-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .admin-usage-system-hero-actions .btn {
        width: 100%;
    }

    .admin-usage-system-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .admin-usage-system-stat-card {
        padding: 1.25rem;
    }

    .admin-usage-system-stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .admin-usage-system-stat-value {
        font-size: 1.75rem;
    }

    .admin-usage-system-table thead th,
    .admin-usage-system-table tbody td {
        padding: 0.875rem 0.75rem;
        font-size: 0.875rem;
    }

    .usage-workspace-name {
        font-size: 0.875rem;
    }

    .usage-view-btn,
    .usage-export-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    .usage-view-btn span,
    .usage-export-btn span {
        display: none;
    }

    .usage-view-btn i,
    .usage-export-btn i {
        margin: 0;
    }
}

/* ===== ORGANIZATION USAGE PAGE STYLES ===== */
.org-usage-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.org-usage-hero-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 30%, #EDE9FE 70%, #F8FAFC 100%);
    padding: 2rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.org-usage-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.org-usage-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.org-usage-back-link:hover {
    color: var(--primary);
}

.org-usage-back-link i {
    font-size: 0.875rem;
}

.org-usage-hero-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.org-usage-hero-icon i {
    font-size: 1.25rem;
    color: white;
}

.org-usage-hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.org-usage-hero-content .lead {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.org-usage-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.org-usage-hero-actions .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    min-width: fit-content;
    text-decoration: none;
}

.org-usage-hero-actions .btn i {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.org-usage-hero-actions .btn span {
    display: inline-block;
    white-space: nowrap;
    overflow: visible;
}

.org-usage-hero-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Org Usage Stats Section */
.org-usage-stats-section {
    margin-bottom: 2rem;
}

.org-usage-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.org-usage-stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.org-usage-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.org-usage-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.org-usage-stat-content {
    flex: 1;
}

.org-usage-stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin: 0 0 0.5rem 0;
}

.org-usage-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.2;
}

/* Org Usage Table */
.org-usage-table-card {
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.org-usage-table-header {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.org-usage-table-body {
    overflow-x: auto;
}

.org-usage-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.org-usage-table thead {
    background: var(--gray-50);
    position: sticky;
    top: 0;
    z-index: 10;
}

.org-usage-table thead th {
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--gray-300);
    padding: 1.25rem 1rem;
    vertical-align: middle;
    white-space: nowrap;
    background: var(--gray-50);
}

.org-usage-table tbody td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
    background: white;
}

.org-usage-table tbody tr {
    transition: all 0.2s ease;
}

.org-usage-table tbody tr:hover {
    background-color: var(--gray-50);
}

.org-usage-table tbody tr:hover td {
    background-color: var(--gray-50);
}

.org-usage-table tbody tr:last-child td {
    border-bottom: none;
}

/* Username and name styling */
.usage-username {
    color: var(--gray-900);
    font-weight: 600;
    font-size: 0.9375rem;
}

.usage-user-table-row:hover .usage-username {
    color: var(--primary);
}

.usage-name {
    color: var(--gray-700);
    font-size: 0.9375rem;
}

/* Table column widths */
.usage-user-table-username {
    min-width: 180px;
    width: 25%;
}

.usage-user-table-name {
    min-width: 180px;
    width: 25%;
}

.usage-user-table-tokens,
.usage-user-table-calls,
.usage-user-table-average {
    min-width: 140px;
    width: 16.67%;
}

/* Responsive adjustments for org usage page */
@media (max-width: 768px) {
    .org-usage-page {
        padding: 1rem 0.5rem;
    }

    .org-usage-hero-section {
        padding: 1.5rem 1rem;
    }

    .org-usage-hero-content h1 {
        font-size: 1.75rem;
    }

    .org-usage-hero-icon {
        width: 45px;
        height: 45px;
    }

    .org-usage-hero-icon i {
        font-size: 1.125rem;
    }

    .org-usage-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .org-usage-hero-actions .btn {
        width: 100%;
    }

    .org-usage-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .org-usage-stat-card {
        padding: 1.25rem;
    }

    .org-usage-stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .org-usage-stat-value {
        font-size: 1.75rem;
    }

    .org-usage-table thead th,
    .org-usage-table tbody td {
        padding: 0.875rem 0.75rem;
        font-size: 0.875rem;
    }

    .usage-username,
    .usage-name {
        font-size: 0.875rem;
    }
}

/* Admin Organizations Table */
.admin-organizations-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.admin-organizations-table thead {
    background: var(--gray-50);
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-organizations-table thead th {
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--gray-300);
    padding: 1.25rem 1rem;
    vertical-align: middle;
    white-space: nowrap;
    background: var(--gray-50);
}

.admin-organizations-table tbody td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
    background: white;
}

.admin-organizations-table tbody tr {
    transition: all 0.2s ease;
}

.admin-organizations-table tbody tr:hover {
    background-color: var(--gray-50);
}

.admin-organizations-table tbody tr:hover td {
    background-color: var(--gray-50);
}

.admin-organizations-table tbody tr:last-child td {
    border-bottom: none;
}

/* Workspace name styling */
.org-workspace-name {
    color: var(--gray-900);
    font-weight: 600;
    font-size: 0.9375rem;
}

.org-table-row:hover .org-workspace-name {
    color: var(--primary);
}

/* Number values styling */
.org-number-value {
    font-weight: 600;
    color: var(--gray-700);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Status badge styling */
.org-status-badge {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border-radius: var(--radius);
}

.org-status-badge i {
    font-size: 0.75rem;
}

/* View button styling */
.org-view-btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.org-view-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.org-view-btn i {
    font-size: 0.875rem;
}

/* Table column widths */
.org-table-workspace {
    min-width: 200px;
    width: 20%;
}

.org-table-created {
    min-width: 120px;
    width: 10%;
}

.org-table-members,
.org-table-admins,
.org-table-calls,
.org-table-tokens,
.org-table-users {
    min-width: 100px;
    width: 8%;
}

.org-table-assistant {
    min-width: 140px;
    width: 12%;
}

.org-table-actions {
    min-width: 120px;
    width: 10%;
}

/* Table card styling */
.admin-organizations-table-card {
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-organizations-table-header {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.admin-organizations-table-body {
    overflow-x: auto;
}

.admin-organizations-table-body .table-responsive {
    margin: 0;
}

/* Improve table spacing on mobile */
@media (max-width: 768px) {
    .admin-organizations-table thead th,
    .admin-organizations-table tbody td {
        padding: 0.875rem 0.75rem;
        font-size: 0.875rem;
    }

    .org-workspace-name {
        font-size: 0.875rem;
    }

    .org-view-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    .org-view-btn span {
        display: none;
    }

    .org-view-btn i {
        margin: 0;
    }

    .org-status-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Responsive adjustments for admin organizations page */
@media (max-width: 768px) {
    .admin-organizations-page {
        padding: 1rem 0.5rem;
    }

    .admin-organizations-hero-section {
        padding: 1.5rem 1rem;
    }

    .admin-organizations-hero-content h1 {
        font-size: 1.75rem;
    }

    .admin-organizations-hero-icon {
        width: 45px;
        height: 45px;
    }

    .admin-organizations-hero-icon i {
        font-size: 1.125rem;
    }

    .admin-organizations-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .admin-organizations-hero-actions .btn {
        width: 100%;
    }

    .admin-organizations-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .admin-organizations-stat-card {
        padding: 1.25rem;
    }

    .admin-organizations-stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .admin-organizations-stat-value {
        font-size: 1.75rem;
    }

    .admin-organizations-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-organizations-filter-group {
        min-width: 100%;
    }

    .admin-organizations-filter-actions {
        width: 100%;
    }

    .admin-organizations-filter-actions .btn {
        flex: 1;
    }
}

/* Tables Section */
.admin-tables-section {
    margin-bottom: 2rem;
}

.admin-tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.admin-table-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-table-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-table-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-table-header-content i {
    font-size: 1.25rem;
}

.admin-table-header h5 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
}

.admin-table-body {
    padding: 1.5rem;
    flex: 1;
}

.admin-table {
    margin: 0;
    font-size: 0.9375rem;
}

.admin-table thead {
    background: var(--gray-50);
}

.admin-table thead th {
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.875rem 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.admin-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
}

.admin-table tbody tr:hover {
    background: var(--gray-50);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Form Card */
.admin-form-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
    overflow: hidden;
}

.admin-form-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-form-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-form-header-content i {
    font-size: 1.25rem;
}

.admin-form-header h5 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
}

.admin-header-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
    padding: 0.625rem 1.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    border-radius: var(--radius) !important;
    transition: all 0.2s ease !important;
}

.admin-header-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.admin-header-btn i {
    flex-shrink: 0;
}

.admin-header-btn span {
    display: inline-block;
}

.admin-form-body {
    padding: 1.5rem;
}

.admin-form-body .form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.admin-form-body .form-control,
.admin-form-body .form-select {
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
    padding: 0.625rem 0.875rem;
    transition: all 0.2s ease;
}

.admin-form-body .form-control:focus,
.admin-form-body .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.admin-form-body .btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
    padding: 0.625rem 1.5rem !important;
    font-weight: 500 !important;
}

.admin-form-body .btn-primary i,
.admin-form-body .btn-primary span {
    display: inline-block;
}

/* Users Card */
.admin-users-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.admin-users-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.25rem 1.5rem;
}

.admin-users-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-users-header-content i {
    font-size: 1.25rem;
}

.admin-users-header h5 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
}

.admin-users-body {
    padding: 0;
    overflow-x: auto;
}

.admin-user-table {
    margin: 0;
    font-size: 0.9375rem;
}

.admin-user-table thead {
    background: var(--gray-50);
}

.admin-user-table thead th {
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
}

.admin-user-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
}

.admin-user-table .access-col {
    min-width: 160px;
    width: 160px;
}

.admin-user-table tbody tr {
    transition: background 0.2s ease;
}

.admin-user-table tbody tr:hover {
    background: var(--gray-50);
}

.admin-user-table tbody tr:last-child td {
    border-bottom: none;
}

/* Actions Column Styling */
.admin-user-table .actions-col {
    min-width: 220px;
    width: 220px;
    max-width: 220px;
}

.admin-actions-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.admin-action-btn {
    width: 100%;
    min-width: 100%;
    padding: 0.5rem 0.875rem !important;
    font-size: 0.8125rem !important;
    border-radius: var(--radius) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
    text-align: left !important;
    transition: all 0.2s ease !important;
    border-width: 1px !important;
    font-weight: 500 !important;
    overflow: visible !important;
}

.admin-action-btn i {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.admin-action-btn span {
    flex: 1;
    overflow: visible;
    text-overflow: clip;
}

.admin-action-btn:hover {
    transform: translateX(2px);
    box-shadow: var(--shadow-sm);
}

.admin-action-btn.btn-outline-secondary {
    border-color: var(--gray-300);
    color: var(--gray-700);
    background: white;
}

.admin-action-btn.btn-outline-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.admin-action-btn.btn-warning {
    background: var(--warning);
    border-color: var(--warning);
    color: white;
}

.admin-action-btn.btn-warning:hover {
    background: #B45309;
    border-color: #B45309;
    color: white;
}

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

.admin-action-btn.btn-danger:hover {
    background: #B91C1C;
    border-color: #B91C1C;
    color: white;
}

.admin-action-btn.btn-info {
    background: var(--info);
    border-color: var(--info);
    color: white;
}

.admin-action-btn.btn-info:hover {
    background: #1D4ED8;
    border-color: #1D4ED8;
    color: white;
}

.admin-user-table .btn-group-vertical {
    gap: 0.5rem;
}

.admin-user-table .btn-group {
    gap: 0.375rem;
}

.admin-user-table .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: var(--radius);
}

/* Details Component */
.admin-details {
    margin: 0;
}

.details-summary {
    cursor: pointer;
    padding: 0.625rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    user-select: none;
    border: none;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
    min-width: 140px;
    justify-content: center;
}

.details-summary i {
    flex-shrink: 0;
    font-size: 0.875rem;
}

.details-summary span {
    display: inline-block;
    white-space: nowrap;
}

.details-summary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.details-summary:active {
    transform: translateY(0);
}

.details-body {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

/* Responsive Design */
@media (max-width: 992px) {
    .admin-dashboard-hero-content h1 {
        font-size: 2rem;
    }

    .admin-dashboard-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-dashboard-actions .btn {
        width: 100%;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-tables-grid {
        grid-template-columns: 1fr;
    }

    .admin-filter-form {
        flex-direction: column;
    }

    .admin-filter-group {
        width: 100%;
    }

    .admin-filter-actions {
        width: 100%;
    }

    .admin-filter-actions .btn {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .admin-dashboard-hero-section {
        padding: 2rem 0;
    }

    .admin-dashboard-hero-icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 2rem;
    }

    .admin-dashboard-hero-content h1 {
        font-size: 1.75rem;
    }

    .admin-dashboard-hero-content .lead {
        font-size: 1rem;
    }

    .admin-stat-card {
        flex-direction: column;
        text-align: center;
    }

    .admin-stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .admin-stat-value {
        font-size: 1.75rem;
    }

    .admin-table-header,
    .admin-form-header,
    .admin-users-header {
        padding: 1rem;
    }

    .admin-table-body,
    .admin-form-body {
        padding: 1rem;
    }

    .admin-user-table {
        font-size: 0.8125rem;
    }

    .admin-user-table thead th,
    .admin-user-table tbody td {
        padding: 0.75rem 0.5rem;
    }

    .admin-user-table .actions-col {
        min-width: 180px;
        width: 180px;
    }

    .admin-action-btn {
        padding: 0.5rem 0.625rem !important;
        font-size: 0.75rem !important;
    }

    .admin-action-btn span {
        display: inline-block;
    }
}

.help-element-name {
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

.help-element-name:first-child {
    margin-top: 0;
}

.help-element-name i {
    color: var(--primary);
    font-size: 0.9rem;
}

.help-element-description {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--gray-700);
}

/* New structured help styles */
.help-elements-grid {
    display: grid;
    gap: 1rem;
}

.help-element-card {
    padding: 1rem;
    background: var(--gray-50);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
}

.help-element-card .help-element-name {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.help-element-meta {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.help-element-note {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--info);
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--info);
}

.help-element-shows {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.help-element-shows ul {
    margin-top: 0.25rem;
    margin-left: 1.5rem;
}

.help-concepts, .help-technical {
    font-size: 0.95rem;
}

.help-concept-item {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.help-concept-item strong {
    color: var(--primary-dark);
}

.help-nested-content {
    margin-left: 1rem;
}

.help-nested-level-1 {
    margin-left: 1rem;
}

.help-nested-level-2 {
    margin-left: 2rem;
}

.help-nested-level-3 {
    margin-left: 3rem;
}

.help-concept-list {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.help-concept-list li {
    margin-bottom: 0.25rem;
    color: var(--gray-700);
}

.help-systems {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.help-systems strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.help-systems p {
    margin-bottom: 0.75rem;
}

.help-systems p:last-child {
    margin-bottom: 0;
}

/* Help content code styling */
.help-element-card code,
.help-concept-item code,
.help-technical code {
    background-color: var(--gray-100);
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.875em;
    color: var(--primary-dark);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Help section collapsible */
details.help-section summary {
    padding: 0.75rem;
    background: var(--gray-100);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    user-select: none;
}

details.help-section summary:hover {
    background: var(--gray-200);
}

details.help-section[open] summary {
    margin-bottom: 1rem;
}

/* Help Modal Responsiveness */
@media (max-width: 768px) {
    .modal-lg {
        max-width: 95%;
    }

    .help-section-title {
        font-size: 1rem;
    }

    .help-systems {
        font-size: 0.9rem;
    }

    .help-element-card {
        padding: 0.75rem;
    }
}
