/* ==========================================================================
   PANORAMA PAYMENTLINK - MAIN STYLESHEET
   Single Source CSS - Production Ready (Refactored Compact & -sm Design)
   ========================================================================== */

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

/* poppins-100 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 100;
  src: url('../fonts/poppins-v24-latin/poppins-v24-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-200 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 200;
  src: url('../fonts/poppins-v24-latin/poppins-v24-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/poppins-v24-latin/poppins-v24-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/poppins-v24-latin/poppins-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/poppins-v24-latin/poppins-v24-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/poppins-v24-latin/poppins-v24-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/poppins-v24-latin/poppins-v24-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/poppins-v24-latin/poppins-v24-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/poppins-v24-latin/poppins-v24-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* ==========================================================================
   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: #737373;

    /* Gray Scale */
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;

    /* 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 (Compact & Space Efficient) */
    --sidebar-width: 240px;
    --header-height: 54px;
    --right-panel-width: 280px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 3px 6px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.08), 0 3px 6px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 16px 24px rgba(0, 0, 0, 0.08), 0 6px 10px rgba(0, 0, 0, 0.04);

    /* Border Radius (Compact) */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;
    --radius-2xl: 12px;

    /* Typography */
    --font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-dark);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   4. TYPOGRAPHY (SCALED DOWN FOR CLEAN PROFESSIONAL COMPACT LOOK)
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

h1 {
    font-size: 20px;
}

h2 {
    font-size: 17px;
}

h3 {
    font-size: 15px;
}

h4 {
    font-size: 13.5px;
}

h5 {
    font-size: 12.5px;
}

h6 {
    font-size: 11.5px;
}

p {
    margin-bottom: 0.5rem;
}

small,
.small {
    font-size: 0.75rem;
}

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

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

code {
    font-size: 0.775rem;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   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: 0.85rem 1rem;
    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: center;
    gap: 4px;
}

.sidebar-logo {
    width: 110px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    background-color: var(--white-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.sidebar-brand small {
    display: block;
    margin-top: 0.25rem;
    opacity: 0.95;
    font-size: 0.725rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

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

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

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

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

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

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

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

.sidebar-footer small {
    font-size: 0.725rem;
}

/* 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 20px;
    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: 0.75rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.25rem;
    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.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

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

/* Search Box */
.search-box {
    background: var(--gray-100);
    border-radius: 20px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 220px;
}

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

.search-box i {
    color: var(--text-muted);
    font-size: 0.8rem;
}

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

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

.notification-badge {
    position: absolute;
    top: -4px;
    right: -5px;
    background: var(--danger);
    color: var(--white-color);
    font-size: 0.6rem;
    padding: 1px 4px;
    border-radius: 8px;
    font-weight: 600;
    line-height: 1;
}

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

.avatar-image {
    width: 32px;
    height: 32px;
    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.8rem;
}

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

/* ==========================================================================
   7. MAIN CONTENT AREA (COMPACT PADDING & ROW SPACING)
   ========================================================================== */
.admin-content {
    padding: 16px 20px;
    flex: 1;
    background-color: var(--background-color);
    display: flex;
    gap: 16px;
}

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

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

/* Profile Card */
.profile-card {
    background: var(--white-color);
    border-radius: var(--radius-xl);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    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: 1.35rem;
    font-weight: 700;
    margin: 0 auto 0.5rem;
}

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

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

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

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

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

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

/* Streak Card */
.streak-card {
    background: var(--white-color);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-sm);
}

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

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

.streak-day {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    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: 4px;
    margin-top: 5px;
    text-align: center;
}

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

/* Right Panel Stat Cards */
.right-stat-card {
    background: var(--white-color);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
}

.right-stat-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

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

/* ==========================================================================
   9. DASHBOARD CARDS (COMPACT HEIGHT & SPACING)
   ========================================================================== */
/* Learning Cards */
.learning-card {
    background: var(--white-color);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

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

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

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

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

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

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

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

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

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

.course-card {
    background: var(--white-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.course-thumbnail {
    height: 90px;
    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;
}

.course-body {
    padding: 10px 12px;
}

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

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

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

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

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

/* Stats Cards */
.stat-card {
    background: var(--white-color);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

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

.stat-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    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.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
    line-height: 1.2;
}

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

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

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

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

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

/* ==========================================================================
   10. BADGES & UTILITIES (COMPACT)
   ========================================================================== */
.badge {
    font-size: 0.725rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.badge-soft-success {
    background-color: rgba(27, 188, 155, 0.1);
    color: var(--green-color);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.725rem;
    display: inline-flex;
    align-items: center;
}

.badge-soft-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--red-color);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.725rem;
    display: inline-flex;
    align-items: center;
}

.badge-soft-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.725rem;
    display: inline-flex;
    align-items: center;
}

.badge-soft-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--info);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.725rem;
    display: inline-flex;
    align-items: center;
}

.badge-soft-secondary {
    background-color: rgba(108, 117, 125, 0.1);
    color: var(--gray-600);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.725rem;
    display: inline-flex;
    align-items: center;
}

.badge-soft-primary {
    background-color: rgba(238, 128, 51, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.725rem;
    display: inline-flex;
    align-items: center;
}

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

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

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

.navbar-brand img {
    height: 30px;
    width: auto;
    margin-right: 8px;
    object-fit: contain;
}

.site-footer {
    margin-top: auto;
    padding: 1rem 0;
    font-size: 0.775rem;
}

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

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

/* ==========================================================================
   12. BUTTONS (COMPACT & -sm STANDARD SIZING)
   ========================================================================== */
.btn {
    border-radius: var(--radius-sm);
    padding: 0.325rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-sm {
    padding: 0.225rem 0.55rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

/* Ensure any remaining btn-lg is gracefully compact */
.btn-lg {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
}

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: var(--white-color) !important;
}

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

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

/* Action Buttons for Tables */
.btn-action {
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1.4;
}

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

.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);
}

/* ==========================================================================
   13. FORMS, INPUTS & SELECTS (-sm BY DEFAULT & TIGHT SPACING)
   ========================================================================== */
.form-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    padding: 0.325rem 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    min-height: calc(1.45em + 0.65rem + 2px);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.form-control-sm,
.form-select-sm {
    padding: 0.225rem 0.5rem;
    font-size: 0.775rem;
    min-height: calc(1.45em + 0.45rem + 2px);
    border-radius: var(--radius-sm);
}

.input-group-text {
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: 0.325rem 0.65rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.input-group-sm > .input-group-text,
.input-group-sm > .form-control,
.input-group-sm > .form-select {
    padding: 0.225rem 0.5rem;
    font-size: 0.775rem;
    border-radius: var(--radius-sm);
}

.form-check-label {
    font-size: 0.8125rem;
    color: var(--gray-700);
}

.form-check-input {
    width: 0.95rem;
    height: 0.95rem;
    margin-top: 0.15em;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-text {
    font-size: 0.725rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ==========================================================================
   14. TABLES (COMPACT ROWS & ZERO WASTED VERTICAL SPACE)
   ========================================================================== */
.table {
    font-size: 0.8125rem;
    margin-bottom: 0;
}

.table th,
.table td {
    padding: 0.45rem 0.65rem;
    vertical-align: middle;
}

.table-sm th,
.table-sm td {
    padding: 0.3rem 0.5rem;
}

.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: 0.8125rem;
}

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

.table-custom th {
    padding: 0.45rem 0.65rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}

.table-custom td {
    padding: 0.45rem 0.65rem;
    border-top: 1px solid var(--gray-200);
    vertical-align: middle;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.table-custom tbody tr:hover {
    background: #fdfdfd;
}

.table-custom tbody tr.table-row-danger td {
    background-color: rgba(220, 53, 69, 0.09) !important;
}

.table-custom tbody tr.table-row-danger {
    opacity: 0.8;
}

.table-custom tbody tr.table-row-danger:hover td {
    background-color: rgba(220, 53, 69, 0.15) !important;
}

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

/* ==========================================================================
   15. CARDS (GENERAL & ADMIN)
   ========================================================================== */
.card {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    background: var(--white-color);
}

.admin-card {
    background: var(--white-color);
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

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

.admin-card .card-body {
    padding: 0.85rem 1rem;
}

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

/* ==========================================================================
   16. INFO LIST & TIPS (COMPACT)
   ========================================================================== */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.8125rem;
}

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

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

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

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

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

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

/* Page Header */
.page-header {
    margin-bottom: 1rem;
}

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

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

/* ==========================================================================
   17. PAGINATION & EMPTY STATE (COMPACT)
   ========================================================================== */
.pagination {
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.pagination .page-link {
    border-radius: var(--radius-sm);
    margin: 0 2px;
    border: 1px solid var(--gray-300);
    color: var(--text-dark);
    padding: 0.25rem 0.6rem;
    font-size: 0.775rem;
}

.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);
    color: var(--white-color);
}

.empty-state {
    text-align: center;
    padding: 1.5rem 1rem;
}

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

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

/* ==========================================================================
   18. MEMBER NAVBAR
   ========================================================================== */
.custom-navbar {
    background-color: var(--primary-color);
    transition: background-color 0.3s ease;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.custom-navbar .navbar-brand {
    color: var(--white-color);
    font-weight: 700;
    font-size: 1.05rem;
}

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

.custom-navbar .navbar-brand img {
    height: 30px;
}

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

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

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

.custom-navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    font-size: 0.8125rem;
}

.custom-navbar .dropdown-item {
    padding: 0.35rem 0.85rem;
}

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

.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;
    font-size: 0.75rem;
}

/* ==========================================================================
   19. PUBLIC PAGES (LOGIN, REGISTER, FORGOT, RESET)
   ========================================================================== */
.login-page-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("../images/bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 2.5rem 1rem;
}

.login-page-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
}

.login-page-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    margin: auto;
}

.login-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    background: var(--white-color);
    width: 100%;
}

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

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

.logo-container {
    margin-bottom: 0.65rem;
    background: var(--white-color);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-img {
    max-height: 34px;
    height: auto;
    width: auto;
    object-fit: contain;
}

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

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

.login-btn {
    border-radius: var(--radius-sm);
    padding: 0.45rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

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

.forgot-password a {
    color: var(--primary-color);
    font-size: 0.8rem;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

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

/* Media Desktop for Login */
@media (min-width: 992px) {
    .login-page-wrapper {
        padding: 3rem 2rem;
    }

    .login-page-content {
        max-width: 440px;
    }

    .login-card {
        border-radius: 14px;
    }

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

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

/* Password strength */
.password-strength {
    margin-top: 6px;
    margin-bottom: 6px;
}

.strength-meter {
    height: 4px;
    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: 11px;
    margin-top: 3px;
    font-weight: 600;
}

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

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

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

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

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

/* ==========================================================================
   20. PUBLIC PAYMENT PAGE STYLES (COMPACT & CLEAN)
   ========================================================================== */
.payment-wrapper {
    min-height: 100vh;
    background-color: var(--gray-100);
    padding: 24px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

.payment-header {
    text-align: center;
    margin-bottom: 16px;
}

.payment-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 10px;
}

.payment-merchant-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.payment-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 14px;
    background-color: var(--white-color);
}

.payment-card-header {
    background-color: var(--primary-color);
    padding: 10px 16px;
    text-align: center;
    color: var(--white-color);
}

.payment-card-body {
    padding: 14px 16px;
}

.order-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.8125rem;
}

.order-detail:last-child {
    border-bottom: none;
}

.order-detail-label {
    font-size: 0.775rem;
    color: var(--gray-600);
}

.order-detail-value {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-900);
    text-align: right;
}

.order-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Payment Method Selection Styles */
.payment-method-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    background-color: var(--white-color);
}

.payment-method-item:hover {
    border-color: var(--primary-hover);
    background-color: var(--primary-light);
}

.payment-method-item input[type="radio"] {
    display: none;
}

.payment-method-item.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.payment-method-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background-color: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--gray-700);
    margin-right: 10px;
    flex-shrink: 0;
}

.payment-method-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-method-info {
    flex: 1;
}

.payment-method-name {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--gray-900);
    margin-bottom: 1px;
}

.payment-method-desc {
    font-size: 0.725rem;
    color: var(--gray-600);
}

.payment-method-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.15s ease;
    font-size: 9px;
}

.payment-method-item.selected .payment-method-check {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white-color);
}

@keyframes checkmark-scale {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.payment-method-item.selected .payment-method-check i {
    animation: checkmark-scale 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Payment Page Utility Classes (TASKING-98-20) */
.payment-card-header {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.payment-card-header h6 {
    color: var(--white-color);
}

.payment-method-item.payment-grid-item {
    width: 105px;
    min-height: 105px;
    justify-content: center;
    cursor: pointer;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md, 8px);
}

.payment-method-icon.sm-icon {
    height: 38px;
    width: 38px;
}

.payment-method-name.compact {
    font-size: 11px;
    line-height: 1.2;
}

.payment-method-check.top-right {
    top: 6px;
    right: 6px;
}

/* Payment Message Page Utility Classes (TASKING-98-22) */
.message-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-card {
    max-width: 500px;
    width: 100%;
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.icon-success-color {
    color: var(--bs-success, #198754);
}

.icon-warning-color {
    color: var(--primary-color, #ee8033);
}

.message-title {
    color: var(--text-dark, #333333);
}

.message-home-btn {
    border-radius: 50px;
}

/* Payment Finish Page Utility Classes (TASKING-98-23) */
.btn-home {
    background-color: var(--primary-color, #ee8033);
    border-color: var(--primary-color, #ee8033);
    border-radius: 50px;
    padding: 8px 32px;
    color: var(--white-color, #ffffff);
    transition: all 0.3s ease;
}

.btn-home:hover {
    background-color: var(--primary-hover, #d66d23);
    border-color: var(--primary-hover, #d66d23);
    color: var(--white-color, #ffffff);
}

.icon-danger-color {
    color: var(--bs-danger, #dc3545);
}

.icon-primary-color {
    color: var(--primary-color, #ee8033);
}

#paymentAccordion .accordion-button {
    padding: 0.5rem 0.85rem;
    font-size: 0.825rem;
}

#paymentAccordion .accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: none;
}

#paymentAccordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ==========================================================================
   21. PROFILE PAGE READONLY BIO & UTILITIES
   ========================================================================== */
.plain-textarea {
    background: transparent;
    border: 1px dashed var(--gray-300);
    padding: 0.35rem 0.6rem;
    font-family: inherit;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--text-dark);
    resize: none;
    overflow: hidden;
    min-height: 50px;
    border-radius: var(--radius-sm);
}

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

.plain-textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* Utility classes */
.op-9 { opacity: 0.9; }
.op-8 { opacity: 0.8; }
.op-7 { opacity: 0.7; }

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

.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.icon-circle {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.35rem;
    color: white;
}

.icon-circle-sm {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

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

/* ==========================================================================
   22. RESPONSIVE DESIGN
   ========================================================================== */
@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: 160px;
    }

    .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;
    }
}

@media (max-width: 768px) {
    .admin-topbar {
        padding: 0 12px;
    }

    .admin-content {
        padding: 12px;
    }

    .search-box {
        display: none;
    }

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

    .user-name {
        display: none;
    }

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

    .table-custom th,
    .table-custom td {
        padding: 0.35rem 0.45rem;
    }

    .btn-action {
        padding: 2px 6px;
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   22. PAYMENT INSTRUCTION PAGE STYLES (THEMED)
   ========================================================================== */
.payment-instruction-container {
    max-width: 680px;
    margin: 0 auto;
}

.payment-instruction-card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(0, 45, 114, 0.08);
    overflow: hidden;
    background: var(--white-color);
}

.instruction-timer-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #001a40 100%);
    color: var(--white-color);
    padding: 24px 20px;
    text-align: center;
    position: relative;
}

.instruction-timer-header .timer-title {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    margin-bottom: 6px;
}

.instruction-timer-header .countDownTimerDisplay {
    font-size: 2.25rem;
    font-weight: 700;
    font-family: 'Poppins', monospace;
    letter-spacing: 2px;
    color: #ffde59;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.instruction-timer-header .timer-deadline {
    font-size: 0.8125rem;
    opacity: 0.9;
    margin-top: 6px;
    margin-bottom: 0;
}

.instruction-channel-header {
    padding: 16px 20px;
    background-color: #f8fafc;
    border-bottom: 1px solid var(--gray-200);
}

.instruction-channel-header .channel-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.instruction-channel-header .channel-logo {
    max-height: 38px;
    max-width: 110px;
    object-fit: contain;
}

.instruction-channel-header .order-info-label {
    font-size: 0.725rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gray-500);
    display: block;
    margin-bottom: 2px;
}

.instruction-channel-header .order-info-value {
    color: var(--gray-900);
    font-size: 0.825rem;
    word-break: break-all;
}

.instruction-info-box {
    background-color: #f8fafc;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.instruction-info-box:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-sm);
}

.instruction-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.instruction-info-val-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.instruction-va-number {
    font-size: 1.35rem;
    font-weight: 700;
    font-family: 'Poppins', monospace;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin: 0;
}

.instruction-amount {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.btn-copy-va {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-view-invoice {
    background-color: var(--white-color);
    color: var(--gray-700);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-invoice:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
    border-color: var(--gray-400);
}

.instruction-accordion-section {
    margin-top: 24px;
}

.instruction-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instruction-accordion .accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md) !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.instruction-accordion .accordion-button {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    background-color: var(--white-color);
    padding: 12px 16px;
    box-shadow: none;
}

.instruction-accordion .accordion-button:not(.collapsed) {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.instruction-accordion .accordion-button::after {
    background-size: 14px;
}

.instruction-accordion .accordion-body {
    padding: 14px 18px;
    background-color: #fafbfc;
    font-size: 0.835rem;
    color: var(--gray-700);
}

.instruction-steps {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    counter-reset: step-counter;
}

.instruction-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 32px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.instruction-steps li:last-child {
    margin-bottom: 0;
}

.instruction-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    font-size: 0.725rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instruction-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 0.835rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.instruction-notice {
    background-color: #eff6ff;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 12px 16px;
    font-size: 0.8125rem;
    color: #1e40af;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Quill Editor Container & Vertical Containment */
.ql-toolbar.ql-snow {
    border-top-left-radius: var(--radius-md, 6px);
    border-top-right-radius: var(--radius-md, 6px);
    background-color: var(--gray-50, #f8fafc);
    border-color: var(--gray-300, #cbd5e1);
}

.ql-container.ql-snow,
#quill-editor {
    height: 140px;
    max-height: 180px;
    border-bottom-left-radius: var(--radius-md, 6px);
    border-bottom-right-radius: var(--radius-md, 6px);
    border-color: var(--gray-300, #cbd5e1);
    margin-bottom: 1rem;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.ql-container .ql-editor {
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
}

/* Toast animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Order Form Actions & Buttons Visibility (TASK-99-12) */
.order-form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-300, #e2e8f0);
    position: relative;
    z-index: 10;
}

.order-form-actions .btn {
    min-width: 110px;
    font-weight: 500;
}

/* ==========================================================================
   19. PDF & INSTRUCTION STYLES (TASKING-98-24, 98-25, 98-26, TASK-99-26)
   ========================================================================== */
.pdf-container {
    max-width: 800px;
    margin: 0 auto;
}

.logo-center {
    display: block;
    margin: 0 auto 30px auto;
    text-align: center;
}

.logo-center img {
    height: 55px;
    object-fit: contain;
}

.card-header-pdf {
    background-color: var(--primary-color, #ee8033) !important;
    color: var(--white-color, #ffffff) !important;
    padding: 15px 20px;
    border-bottom: none;
}

.card-header-pdf h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    color: var(--white-color, #ffffff) !important;
}

.card-header-pdf h5 i,
.card-header-pdf h5 svg {
    margin-right: 10px;
}

.order-notes-container {
    padding: 14px 24px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #f0f0f0;
}

.order-notes-container .order-detail-label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #495057;
    font-size: 13.5px;
}

.order-notes-value {
    font-size: 13.5px;
    color: #333333;
    line-height: 1.6;
    word-break: break-word;
}

.order-notes-value p {
    margin-bottom: 6px;
}

.order-notes-value p:last-child {
    margin-bottom: 0;
}

.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background-color: #fff8f5;
    border-top: 2px solid #ee8033;
}

.total-label {
    font-size: 15px;
    font-weight: 700;
    color: #212529;
}

.total-amount {
    font-size: 20px;
    font-weight: 800;
    color: #ee8033;
}

.footer-info {
    text-align: center;
    margin-top: 30px;
    font-size: 12.5px;
    color: #6c757d;
    border-top: 1px solid #eeeeee;
    padding-top: 18px;
    line-height: 1.6;
}

.footer-info p {
    margin: 0 0 4px 0;
}

.card-header-pdf .title-line-1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--white-color, #ffffff) !important;
}

.card-header-pdf .title-line-2 {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95) !important;
}

.badge-settled {
    background-color: var(--white-color, #ffffff);
    color: var(--primary-color, #ee8033);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.channel-logo-img {
    height: 22px;
    max-width: 70px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
}

.text-paid-status {
    color: var(--primary-color, #ee8033) !important;
}

/* PDF Instruction Layout */
.header-box {
    text-align: center;
    border-bottom: 2px solid #002d72;
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.pdf-logo {
    height: 48px;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 10px;
    display: inline-block;
}

.header-title {
    color: #002d72;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    margin: 0;
}

.header-subtitle {
    color: #64748b;
    font-size: 13px;
    margin-top: 2px;
    margin-bottom: 0;
}

.summary-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13px;
    border-bottom: 1px dashed #e2e8f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: #64748b;
    font-weight: 500;
}

.summary-val {
    font-weight: 600;
    color: #0f172a;
    text-align: right;
}

.va-highlight {
    font-size: 16px;
    font-weight: 700;
    color: #002d72;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.amount-highlight {
    font-size: 16px;
    font-weight: 700;
    color: #f37021;
}

.instruction-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #002d72;
    margin-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
}

.method-title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-top: 10px;
    margin-bottom: 6px;
}

ol.step-list {
    padding-left: 20px;
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 10px;
}

ol.step-list li {
    margin-bottom: 3px;
}

.footer-note {
    margin-top: 20px;
    padding: 10px 14px;
    background-color: #eff6ff;
    border-left: 4px solid #002d72;
    font-size: 11px;
    color: #1e40af;
    border-radius: 0 6px 6px 0;
}