/* ==========================================================================
   PANORAMA PAYMENTLINK - MAIN STYLESHEET
   Single Source CSS - Production Ready
   ========================================================================== */

/* ==========================================================================
   1. GOOGLE FONTS IMPORT
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   2. CSS VARIABLES - DESIGN SYSTEM
   ========================================================================== */
:root {
    /* Primary Colors - Panorama Brand */
    --primary-color: #ee8033;
    --primary-hover: #d96f28;
    --primary-light: #fff0e6;
    --secondary-color: #fbc78f;

    /* Neutral Colors */
    --black-color: #000000;
    --white-color: #ffffff;
    --background-color: #f5f5f4;
    --text-dark: #222222;
    --text-muted: #8c8c8c;

    /* Gray Scale */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    /* Status Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;

    /* Brand Colors */
    --green-color: #1bbc9b;
    --red-color: #ef4444;

    /* Layout Variables */
    --sidebar-width: 260px;
    --header-height: 70px;
    --right-panel-width: 320px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 18px;

    /* Typography */
    --font-family: "Poppins", sans-serif;
}

/* ==========================================================================
   3. RESET & GLOBAL STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-color);
}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 16px;
}

h6 {
    font-size: 14px;
}

p {
    margin-bottom: 1rem;
}

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

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

/* ==========================================================================
   5. ADMIN DASHBOARD LAYOUT - THREE COLUMN
   ========================================================================== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--background-color);
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--white-color);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Sidebar Brand */
.sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white-color);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.sidebar-logo {
    width: 140px;
    height: auto;
    object-fit: contain;
    margin: auto;
}

.sidebar-brand small {
    display: block;
    margin-top: 0.5rem;
    opacity: 0.95;
    font-size: 0.8rem;
    font-weight: 400;
}

/* Sidebar Menu */
.sidebar-menu {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

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

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.sidebar-menu-item:hover {
    background: var(--gray-100);
}

.sidebar-menu-item.active {
    background: #fff3e9;
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-menu-item i {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Sidebar Dropdown Menu */
.sidebar-menu-item.dropdown {
    padding: 0;
    background: transparent;
}

.sidebar-menu-item.dropdown>.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    font-size: 0.95rem;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.sidebar-menu-item.dropdown>.dropdown-toggle:hover {
    background: var(--gray-100);
}

.sidebar-menu-item.dropdown>.dropdown-toggle::after {
    content: '';
    margin-left: auto;
    border: none;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.2s ease;
}

.sidebar-menu-item.dropdown.show>.dropdown-toggle::after {
    transform: rotate(180deg);
}

.sidebar-menu-item.dropdown .dropdown-menu {
    position: relative;
    float: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    min-width: 100%;
}

.sidebar-menu-item.dropdown .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 44px;
    border-radius: var(--radius-lg);
    color: var(--text-dark);
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.sidebar-menu-item.dropdown .dropdown-menu .dropdown-item:hover {
    background: var(--gray-100);
}

.sidebar-menu-item.dropdown .dropdown-menu .dropdown-item.active {
    background: #fff3e9;
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-menu-item.dropdown .dropdown-menu .dropdown-item i {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Sidebar Divider */
.sidebar-menu-divider {
    padding: 0.5rem 16px;
    margin: 1rem 0;
    border-top: 1px solid var(--gray-200);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    background-color: var(--gray-100);
    flex-shrink: 0;
}

/* Main Wrapper */
.admin-main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* ==========================================================================
   6. TOPBAR (ADMIN)
   ========================================================================== */
.admin-topbar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background: var(--white-color);
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: var(--gray-100);
}

.page-title-admin {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Search Box */
.search-box {
    background: var(--gray-100);
    border-radius: 30px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 300px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    width: 100%;
    color: var(--text-dark);
}

.search-box i {
    color: var(--text-muted);
}

/* Notification Icon */
.notification-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.notification-icon:hover {
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: var(--white-color);
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 600;
}

/* User Avatar */
.user-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.avatar-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* ==========================================================================
   7. MAIN CONTENT AREA
   ========================================================================== */
.admin-content {
    padding: 30px;
    flex: 1;
    background-color: var(--background-color);
    display: flex;
    gap: 24px;
}

.main-dashboard {
    flex: 1;
    padding: 0;
}

/* ==========================================================================
   8. RIGHT PANEL
   ========================================================================== */
.right-panel {
    width: var(--right-panel-width);
    background: #fafafa;
    padding: 24px;
    border-left: 1px solid var(--gray-200);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Profile Card */
.profile-card {
    background: var(--white-color);
    border-radius: var(--radius-2xl);
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.profile-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.profile-stat-item {
    text-align: center;
}

.profile-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.profile-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Streak Card */
.streak-card {
    background: var(--white-color);
    border-radius: var(--radius-xl);
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.streak-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.streak-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.streak-day {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

.streak-day.active {
    background: var(--primary-color);
    color: var(--white-color);
}

.streak-day-labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 8px;
    text-align: center;
}

.streak-day-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Right Panel Stat Cards */
.right-stat-card {
    background: var(--white-color);
    border-radius: var(--radius-xl);
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.right-stat-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.right-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ==========================================================================
   9. DASHBOARD CARDS
   ========================================================================== */
/* Learning Cards */
.learning-card {
    background: var(--white-color);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.learning-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.learning-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: rgba(238, 128, 51, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.learning-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.learning-card-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.learning-card-progress {
    margin-top: 8px;
}

.progress-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: right;
}

/* Course Cards */
.course-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.course-card {
    background: var(--white-color);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.course-thumbnail {
    height: 140px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 3rem;
}

.course-body {
    padding: 16px;
}

.course-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.course-author {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--warning);
    font-weight: 600;
    font-size: 0.9rem;
}

.course-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Stats Cards */
.stat-card {
    background: var(--white-color);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card-icon.primary {
    background: rgba(238, 128, 51, 0.1);
    color: var(--primary-color);
}

.stat-card-icon.success {
    background: rgba(27, 188, 155, 0.1);
    color: var(--success);
}

.stat-card-icon.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.stat-card-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-action {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.section-action:hover {
    color: var(--primary-hover);
}

/* ==========================================================================
   10. BADGES & UTILITIES
   ========================================================================== */
.badge-soft-success {
    background-color: rgba(27, 188, 155, 0.1);
    color: var(--green-color);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-soft-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--red-color);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-soft-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-soft-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--info);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.75rem;
}

/* ==========================================================================
   11. GENERAL LAYOUT (MAIN/MEMBER)
   ========================================================================== */
.main-content {
    min-height: calc(100vh - 200px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.site-footer {
    margin-top: auto;
}

.site-footer a {
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--primary-color) !important;
}

/* ==========================================================================
   12. HERO & FEATURE SECTIONS
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-section h1 {
    font-weight: 800;
}

.features-section .card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.features-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.features-section .card .bi {
    transition: transform 0.3s;
}

.features-section .card:hover .bi {
    transform: scale(1.1);
}

/* ==========================================================================
   13. BUTTONS
   ========================================================================== */
.btn {
    border-radius: var(--radius-md);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

/* ==========================================================================
   14. FORMS
   ========================================================================== */
.form-control {
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-300);
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(238, 128, 51, 0.25);
}

.input-group-text {
    background-color: var(--gray-100);
    border-radius: var(--radius-md);
}

/* ==========================================================================
   15. CARDS (GENERAL)
   ========================================================================== */
.card {
    border-radius: var(--radius-xl);
    border: none;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   16. FLASH MESSAGES
   ========================================================================== */
.flash-messages .alert {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   17. UTILITIES
   ========================================================================== */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   18. RESPONSIVE DESIGN
   ========================================================================== */
/* Tablet & Mobile */
@media (max-width: 1200px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        position: fixed;
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-main-wrapper {
        margin-left: 0;
    }

    .admin-content {
        flex-direction: column;
    }

    .right-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--gray-200);
    }

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

    .search-box {
        width: 200px;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        display: none;
    }

    .sidebar-overlay.show {
        display: block;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .admin-topbar {
        padding: 0 1rem;
    }

    .admin-content {
        padding: 1rem;
    }

    .search-box {
        display: none;
    }

    .page-title-admin {
        font-size: 1.1rem;
    }

    .user-name {
        display: none;
    }

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

    .features-section .card {
        margin-bottom: 1rem;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .admin-content {
        padding: 2.5rem;
    }
}

/* ==========================================================================
   19. PUBLIC PAGES (LOGIN, LOGOUT, RESET PASSWORD)
   ========================================================================== */
/* Login Page */
.login-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.unsplash.com/photo-1502920917128-1aa500764cbd?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.login-page-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.login-page-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.login-card {
    border-radius: var(--radius-xl);
    margin: 1rem 0;
    overflow: hidden;
    border: none;
}

.login-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2rem;
    text-align: center;
    color: var(--white-color);
}

.login-card-body {
    padding: 2.5rem;
    background: var(--white-color);
}

.logo-container {
    margin-bottom: 1.5rem;
    background: var(--white-color);
    padding: 1rem;
    border-radius: var(--radius-lg);
    display: inline-block;
}

.logo-img {
    /* max-height: 40px;  panorama logo*/
    /* triptour logo */
    max-height: 150px;
    height: auto;
    width: auto;
    object-fit: contain;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white-color);
}

.login-subtitle {
    font-size: 0.95rem;
    opacity: 0.95;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

.login-btn {
    border-radius: var(--radius-md);
    padding: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 128, 51, 0.3);
}

.forgot-password {
    text-align: center;
    margin-top: 1.5rem;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.remember-me {
    margin-top: 0.5rem;
}

.remember-me .form-check-input,
.remember-me .form-check-label {
    cursor: pointer;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Logout Page */
.logout-container {
    text-align: center;
    padding: 50px 20px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logout-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: wave 2s infinite;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(15deg);
    }

    75% {
        transform: rotate(-15deg);
    }
}

.logout-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--success);
}

.logout-message {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 30px;
}

.logout-spinner {
    margin: 30px auto;
}

.logout-timer {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-top: 20px;
}

.logout-timer strong {
    color: var(--success);
    font-size: 1.2rem;
}

/* Reset Password & Forgot Password Pages */
.password-strength {
    margin-top: 10px;
    margin-bottom: 10px;
}

.strength-meter {
    height: 5px;
    background: var(--gray-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.strength-meter-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
}

.strength-meter-fill.very-weak {
    background: var(--danger);
    width: 20%;
}

.strength-meter-fill.weak {
    background: var(--warning);
    width: 40%;
}

.strength-meter-fill.fair {
    background: #ffc107;
    width: 60%;
}

.strength-meter-fill.good {
    background: var(--success);
    width: 80%;
}

.strength-meter-fill.strong {
    background: #20c997;
    width: 100%;
}

.strength-text {
    font-size: 12px;
    margin-top: 5px;
    font-weight: 600;
}

.password-requirements {
    font-size: 11px;
    color: var(--gray-600);
    margin-top: 8px;
    padding: 8px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.password-requirements ul {
    margin: 0;
    padding-left: 15px;
}

.password-requirements li {
    margin: 2px 0;
}

.password-requirements li.valid {
    color: var(--success);
    text-decoration: line-through;
}

.password-requirements li.invalid {
    color: var(--danger);
}

/* Login Page Responsive */
@media (max-width: 768px) {
    .login-page-wrapper {
        background-image: url('https://images.unsplash.com/photo-1502920917128-1aa500764cbd?w=1200&q=80');
    }

    .login-card-body {
        padding: 2rem 1.5rem;
    }

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

    .logo-img {
        /* max-height: 130px; */
        /* triptour logo */
        max-height: 100px;
    }
}

@media (max-width: 576px) {
    .login-page-wrapper {
        background-image: url('https://images.unsplash.com/photo-1502920917128-1aa500764cbd?w=800&q=80');
    }

    .login-card {
        margin: 1rem;
    }

    .login-card-body {
        padding: 1.5rem 1.25rem;
    }

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

    .logo-img {
        /* max-height: 30px; panorama logo */
        /* triptour logo */
        max-height: 90px;
    }
}

/* ==========================================================================
   20. ADMIN BRANCHES PAGE
   ========================================================================== */
/* Page Header */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header .page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.page-header .page-subtitle {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
}

/* Admin Cards */
.admin-card {
    background: var(--white-color);
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.admin-card .card-header {
    background: var(--white-color);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.admin-card .card-body {
    padding: 1.5rem;
}

.admin-card .card-footer {
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

/* Custom Table */
.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-custom thead {
    background: var(--gray-100);
}

.table-custom th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200);
}

.table-custom td {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    vertical-align: middle;
    font-size: 0.95rem;
}

.table-custom tbody tr:hover {
    background: var(--gray-100);
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

/* Action Buttons */
.btn-action {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-action i {
    font-size: 14px;
}

.btn-action-primary {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.btn-action-primary:hover {
    background: rgba(59, 130, 246, 0.2);
}

.btn-action-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: var(--gray-600);
}

.btn-action-secondary:hover {
    background: rgba(108, 117, 125, 0.2);
}

.btn-action-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.btn-action-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Badge Styles */
.badge-soft-success {
    background: rgba(27, 188, 155, 0.1);
    color: var(--success);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
}

.badge-soft-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
}

.badge-soft-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: var(--gray-600);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-300);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(238, 128, 51, 0.15);
    outline: none;
}

.input-group-text {
    background: var(--gray-100);
    border-color: var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--gray-600);
}

/* Button Styles */
.btn {
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 128, 51, 0.3);
}

.btn-secondary {
    background: var(--gray-600);
    border-color: var(--gray-600);
}

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

/* Info List */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list .label {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
}

.info-list .value {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Tips Card */
.tips-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.tips-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.tips-card li {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination .page-link {
    border-radius: var(--radius-md);
    margin: 0 4px;
    border: 1px solid var(--gray-300);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
}

.pagination .page-link:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--gray-600);
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        margin-bottom: 1rem;
    }

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

    .table-custom {
        font-size: 0.85rem;
    }

    .table-custom th,
    .table-custom td {
        padding: 0.75rem 0.5rem;
    }

    .btn-action {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   21. ADMIN ROLES PAGE
   ========================================================================== */
/* Uses same styling as Admin Branches Page (section 20)
   - .table-custom
   - .btn-action
   - .badge-soft-*
   - .admin-card
   - .page-header
   - .form-control
   - .input-group
   - .tips-card
   - .info-list
*/

/* ==========================================================================
   22. ADMIN USERS PAGE
   ========================================================================== */
/* Uses same styling as Admin Branches & Roles Pages (section 20 & 21)
   - .table-custom
   - .btn-action
   - .badge-soft-success
   - .badge-soft-danger
   - .badge-soft-warning
   - .badge-soft-secondary
   - .badge-soft-primary
   - .admin-card
   - .page-header
   - .form-control
   - .input-group
   - .tips-card
   - .info-list
   
   Additional user-specific styling:
*/

/* User Avatar in Table */
.navbar-user-avatar {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-weight: 600;
    flex-shrink: 0;
}

/* ==========================================================================
   23. MEMBER NAVBAR
   ========================================================================== */
/* Custom navbar styling using design system variables */

.custom-navbar {
    background-color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.custom-navbar .navbar-brand {
    color: var(--white-color);
    font-weight: 700;
    font-size: 1.25rem;
    transition: opacity 0.2s ease;
}

.custom-navbar .navbar-brand:hover {
    opacity: 0.9;
    color: var(--white-color);
}

.custom-navbar .navbar-brand img {
    transition: transform 0.2s ease;
}

.custom-navbar .navbar-brand:hover img {
    transform: scale(1.05);
}

.custom-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.custom-navbar .nav-link:hover {
    color: var(--white-color);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

.custom-navbar .nav-link.active {
    color: var(--white-color);
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
}

.custom-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.custom-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.custom-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-navbar .dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.custom-navbar .dropdown-item:hover {
    background-color: var(--gray-100);
    padding-left: 1.25rem;
}

.custom-navbar .dropdown-item i {
    color: var(--primary-color);
}

/* Avatar Circle for User Menu */
.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==========================================================================
   21. PROFILE PAGE STYLES
   ========================================================================== */

/* Plain textarea for readonly bio display */
.plain-textarea {
    background: transparent;
    border: 1px dashed var(--gray-300);
    padding: 0.5rem 0.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    resize: none;
    overflow: hidden;
    min-height: 80px;
}

.plain-textarea:focus {
    outline: none;
    border-color: var(--gray-400);
    background: var(--gray-100);
}

/* Empty bio placeholder styling */
.plain-textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* Info list spacing */
.info-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.info-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ==========================================================================
   22. UTILITY CLASSES
   ========================================================================== */

/* Text opacity utility */
.op-9 {
    opacity: 0.9;
}

.op-8 {
    opacity: 0.8;
}

.op-7 {
    opacity: 0.7;
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success), #34d399);
}

.bg-gradient-info {
    background: linear-gradient(135deg, var(--info), #60a5fa);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning), #fbbf24);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, var(--danger), #f87171);
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Rounded circle with icon */
.icon-circle {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    color: white;
}

.icon-circle-sm {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.icon-circle-lg {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
}

/* Section spacing */
.section-py {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-py-lg {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.section-py-sm {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Shadow utilities */
.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

/* Border radius utilities */
.rounded-4 {
    border-radius: var(--radius-xl);
}

.rounded-5 {
    border-radius: var(--radius-2xl);
}

/* Min height utilities */
.min-vh-50 {
    min-height: 50vh;
}

.min-vh-75 {
    min-height: 75vh;
}

.min-vh-100 {
    min-height: 100vh;
}

/* Object fit utilities */
.object-fit-cover {
    object-fit: cover;
}

.object-fit-contain {
    object-fit: contain;
}

.object-fit-fill {
    object-fit: fill;
}

/* Z-index utilities */
.z-0 {
    z-index: 0;
}

.z-1 {
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

.z-3 {
    z-index: 3;
}

/* Backdrop blur */
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.animate-slide-up {
    animation: slideUp 0.5s ease;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ==========================================================================
   23. RESPONSIVE UTILITIES
   ========================================================================== */

@media (max-width: 768px) {
    .section-py {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .section-py-lg {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}