/*
====================================
OLP_Style.css - Consolidated Stylesheet
Online Learning Platform Styling
====================================
*/

/* ========================================
   BASE STYLES & TYPOGRAPHY
======================================== */

/* Global body and font settings */
body {
    background: #f8fafc !important;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #374151 !important;
}

/* Remove default HR styling across all pages */
hr {
    display: none !important;
}

/* ========================================
   MAIN CONTAINER SYSTEM
======================================== */

/* Primary container for all page content */
.container {
    background: #ffffff !important;
    min-height: 100vh !important;
    padding: clamp(1rem, 3vw, 2rem) 0 !important;
}

/* Wrapper for content width constraints */
.wrapper {
    max-width: 1400px !important;
    margin: 0 auto !important;
    /*padding: 0 clamp(1rem, 3vw, 2rem) !important;*/
}

/* ========================================
   MODERN CARD DESIGN SYSTEM
======================================== */

/* Primary card container with modern design */
.card {
    background: white !important;
    border-radius: 1rem !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    animation: slideInUp 0.8s ease-out !important;
}
.card-title {
    color: #1e293b;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.card-item {
    display: flex;
    flex-direction: column;
}
.main-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    min-height: 140px;
}

.sidebar {
    background-color: #f8fafc;
    border-left: 1px solid #e2e8f0;
    padding: 1rem;
}
.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: #6b7280;
    margin-bottom: 2px;
    font-weight: 500;
}

.detail-value {
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}
@media (max-width: 968px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }
    .card-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}
@media (max-width: 576px) {
    .card-title {
        font-size: 1rem;
    }

    .number {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .detail-label {
        font-size: 0.7rem;
    }

    .detail-value {
        font-size: 0.875rem;
    }
}
.number {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 1rem;
}

.paraGraphtext {
    white-space: pre-wrap;
    word-wrap: break-word;
}
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

.status-submitted {
    background-color: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-open {
    background-color: #dcfce7;
    color: #166534;
}

.status-closed {
    background-color: #fef2f2;
    color: #dc2626;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}


.status-not-submitted {
    background-color: #fef2f2;
    color: #dc2626;
}
.status-expired {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.grade-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
}

.grade-excellent {
    background-color: #dbeafe;
    color: #1e40af;
}

.grade-verygood {
    background-color: #ccfbf1;
    color: #115e59;
}

.grade-good {
    background-color: #dcfce7;
    color: #166534;
}

.grade-satisfactory {
    background-color: #fef3c7;
    color: #92400e;
}

.grade-poor {
    background-color: #fef2f2;
    color: #dc2626;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

    .empty-state i {
        font-size: 3rem;
        margin-bottom: 1rem;
        color: #d1d5db;
    }
.result-section {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.txtGreen {
    color: #28a745;
    font-weight: 600;
}

.txtsmall {
    font-size: 11px;
}

.txtNavy {
    color: #000080;
}
/* Slide-in animation for cards */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   PAGE HEADER SYSTEM
======================================== */

/* Main page headers with gradient background */
.header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white !important;
    padding: 1rem !important;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3) !important;
    position: relative !important;
}

/* Header title styling */
.header h1 {
    font-size: clamp(1.8rem, 4vw, 2rem) !important;
    font-weight: 700 !important;
    margin: 0 !important;
    display: inline-flex !important;
    gap: 0.75rem !important;
    flex-wrap: wrap !important;
}

/* Header subtitle styling */
.header .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.1rem) !important;
    opacity: 0.9 !important;
    margin-top: 0.5rem !important;
}

/* Back link in headers */
.back-link {
    position: absolute !important;
    top: 1.5rem !important;
    right: 2rem !important;
    color: white !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.back-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    transform: translateX(-2px) !important;
}

/* ========================================
   BREADCRUMB SYSTEM
======================================== */

/* Breadcrumb container */
.breadcrumb-section {
    background: white !important;
    padding: 16px 32px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* Breadcrumb styling */
.breadcrumb-custom {
    color: #3b82f6 !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

.breadcrumb-custom a {
    color: #3b82f6 !important;
    text-decoration: none !important;
}

.breadcrumb-custom a:hover {
    color: #1d4ed8 !important;
}

/* ========================================
   CONTENT AREA SYSTEM
======================================== */

/* Main content areas */
.content {
    padding: clamp(1.5rem, 4vw, 2rem) !important;
    padding-top: 0.5rem !important;
    background: white !important;
    animation: fadeInUp 0.6s ease-out !important;
}

/* Fade-in animation for content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SECTION HEADERS
======================================== */

/* Section headers with purple gradient */
.section-header,
.learning-outcomes-header,
.team-section-header,
.composer-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); !important;
    color: white !important;
    padding: 1rem 1.5rem !important;
    border-radius: 0.75rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 600 !important;
    font-size: 1.125rem !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}


/* Learning outcomes specific header */
.learning-outcomes-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
}

/* Email composer header */
.composer-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    padding: 20px 24px !important;
    font-size: 18px !important;
    border-radius: 1rem 1rem 0 0 !important;
}

/* Team section header */
.team-section-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* ========================================
   FORM SYSTEM
======================================== */

/* Form field groups */
.field-group {
    margin-bottom: 1.25rem !important;
    position: relative !important;
}

/* Form field labels */
.field-label {
    display: flex !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.875rem !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

/* Required field indicator */
.field-required {
    color: #dc2626 !important;
    margin-left: 0.25rem !important;
}

/* Form controls - inputs, selects, textareas */
.form-control-custom,
input[type="text"],
select,
textarea {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: #374151 !important;
    transition: all 0.3s ease !important;
    background: white !important;
    box-sizing: border-box !important;
    min-height: 44px !important;
}

/* Form control focus states */
.form-control-custom:focus,
input[type="text"]:focus,
select:focus,
textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
    background: white !important;
}

/* Textarea specific styling */
textarea {
    resize: vertical !important;
}

/* Select dropdown styling with custom arrow */
select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%233b82f6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2.5rem !important;
}

/* Form grid layouts */
.form-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.form-grid.two-col {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
}

/* Help text for forms */
.help-text {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    margin-top: 0.25rem !important;
    font-style: italic !important;
    padding: 0.5rem 0.75rem !important;
    background: rgba(107, 114, 128, 0.1) !important;
    border-radius: 0.375rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

/* ========================================
   BUTTON SYSTEM
======================================== */

/* Primary buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border: none !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 44px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4) !important;
    color: white !important;
}

/* Secondary buttons */
.btn-secondary-custom {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    border: none !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(107, 114, 128, 0.3) !important;
    min-height: 44px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.btn-secondary-custom:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 24px rgba(107, 114, 128, 0.4) !important;
    color: white !important;
}

/* Action button containers */
.action-buttons {
    background: #f8fafc !important;
    padding: 1.5rem 2rem !important;
    border-top: 1px solid #e2e8f0 !important;
    display: flex !important;
    gap: 1rem !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

/* Action footer for specific layouts */
.action-footer {
    background: #f8fafc !important;
    padding: 24px 32px !important;
    border-top: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}

/* Button group layouts */
.button-group {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

/* Navigation buttons */
.navigation-section {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
}

.navigation-controls {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.navigation-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    padding: 0 1rem !important;
}

.action-buttons-container {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
}

/* Navigation info text */
.navigation-info {
    color: #6b7280 !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
}

/* ========================================
   TOGGLE SWITCHES & CHECKBOXES
======================================== */

/* Toggle group container */
.toggle-group {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    margin-top: 0.5rem !important;
}

/* Toggle wrapper */
.toggle-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.5rem 1rem !important;
    background: white !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
    min-height: 44px !important;
}

.toggle-wrapper:hover {
    border-color: #3b82f6 !important;
    background: #f8fafc !important;
}

.toggle-wrapper.active {
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
}

/* Custom toggle switch */
.switch {
    position: relative !important;
    display: inline-block !important;
    min-width: 50px !important;
    height: 28px !important;
}

.switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #ccc !important;
    transition: .4s !important;
    border-radius: 4px !important;
}

.slider:before {
    position: absolute !important;
    content: "" !important;
    height: 20px !important;
    width: 20px !important;
    left: 4px !important;
    bottom: 4px !important;
    background-color: white !important;
    transition: .4s !important;
    border-radius: 2px !important;
}

input:checked + .slider {
    background-color: #3b82f6 !important;
}

input:focus + .slider {
    box-shadow: 0 0 1px #3b82f6 !important;
}

input:checked + .slider:before {
    transform: translateX(22px) !important;
}

/* Toggle labels */
.toggle-label {
    font-weight: 500 !important;
    color: #374151 !important;
    font-size: 0.875rem !important;
    cursor: pointer !important;
    user-select: none !important;
}

/* Checkbox styling */
.checkbox-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

input[type="checkbox"] {
    width: 1.25rem !important;
    height: 1.25rem !important;
    accent-color: #3b82f6 !important;
    margin-right: 0.5rem !important;
}

/* ========================================
   FEE TYPE SYSTEM
======================================== */

/* Fee type group container */
.fee-type-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-top: 0.5rem !important;
}

/* Fee type options */
.fee-type-option {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.75rem 1rem !important;
    background: white !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    min-height: 44px !important;
}

.fee-type-option:hover {
    border-color: #3b82f6 !important;
    background: #f8fafc !important;
}

.fee-type-option.selected {
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
}

.fee-type-text {
    font-weight: 500 !important;
    color: #374151 !important;
    font-size: 0.875rem !important;
    flex: 1 !important;
}

/* ========================================
   MESSAGE SYSTEM
======================================== */

/* Message container */
.message-container {
    padding: 1rem 1.5rem !important;
    margin: 1.25rem 0 !important;
    border-radius: 0.75rem !important;
    text-align: center !important;
    font-weight: 600 !important;
    border: none !important;
    /*box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;*/
    /*display: flex !important;*/
    display:none !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

/* Error messages */
.message-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    color: #dc2626 !important;
    border-left: 4px solid #ef4444 !important;
}

/* Success messages */
.message-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    color: #047857 !important;
    border-left: 4px solid #10b981 !important;
}

/* Alert banners */
.alert-banner {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: white !important;
    padding: 16px 24px !important;
    border-radius: 12px !important;
    margin-bottom: 32px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
}

.alert-icon {
    font-size: 24px !important;
}

/* Status labels */
.status-label {
    font-weight: 600 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem !important;
    margin-bottom: 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

/* ========================================
   VALIDATION STYLING
======================================== */

/* Validation error messages */
/*span[style*="color:Red"],
span[id*="Validator"],*/
.validator,
.error {
    color: #dc2626 !important;
    font-size: 0.75rem !important;
    margin-top: 0.5rem !important;
    padding: 0.5rem 0.75rem !important;
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 0.375rem !important;
    font-weight: 500 !important;
}

/* Validation summary */
.validation-summary {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    color: #dc2626 !important;
    margin-bottom: 16px !important;
}

/* ========================================
   TEAM MANAGEMENT COMPONENTS
======================================== */

/* Statistics cards */
.stats-row {
    margin-bottom: 2rem !important;
}

.stat-card {
    border: none !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    text-align: center !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.3s ease !important;
    color: white !important;
    position: relative !important;
    overflow: hidden !important;
}

.stat-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%) !important;
    z-index: 1 !important;
}

.stat-card > * {
    position: relative !important;
    z-index: 2 !important;
}

.stat-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2) !important;
}

/* Stat card variants */
.stat-card.stat-total {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
}

.stat-card.stat-leads {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.stat-card.stat-admins {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.stat-number {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: white !important;
    margin-bottom: 0.5rem !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.stat-label {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Team sections */
.team-section {
    background: white !important;
    border-radius: 1rem !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    overflow: visible !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

.team-section-body {
    padding: 2rem !important;
    overflow: visible !important;
}

/* Team member cards */
.team-member-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 1rem !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
}

.team-member-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
    border-color: #3b82f6 !important;
}

/* Card variants */
.team-member-card.card-even {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border-left: 4px solid #0ea5e9 !important;
}

.team-member-card.card-odd {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%) !important;
    border-left: 4px solid #8b5cf6 !important;
}

/* Member avatars */
.member-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
    flex-shrink: 0 !important;
}

.member-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.member-name {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 0 !important;
    word-wrap: break-word !important;
}

.member-username {
    font-size: 0.875rem !important;
    color: #64748b !important;
    margin: 0 !important;
    word-wrap: break-word !important;
}

/* ========================================
   DROPDOWN SYSTEM
======================================== */
/* Enhanced Bootstrap 5.3 Role Dropdown Styling */
/* Role dropdowns */
.role-dropdown {
    border-radius: 50px !important;
    min-width: 130px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

    .role-dropdown::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .role-dropdown:hover::before {
        left: 100%;
    }

    .role-dropdown:focus {
        box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
        outline: none;
    }

/* Role-specific button colors with enhanced gradients */
.role-admin {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: #dc2626;
    color: white;
}

    .role-admin:hover, .role-admin:focus, .role-admin:active, .role-admin.show {
        background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
        border-color: #b91c1c;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    }

.role-team-lead {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
    color: white;
}

    .role-team-lead:hover, .role-team-lead:focus, .role-team-lead:active, .role-team-lead.show {
        background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
        border-color: #d97706;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    }

.role-member {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
}

    .role-member:hover, .role-member:focus, .role-member:active, .role-member.show {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
        border-color: #059669;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    }

/* Enhanced dropdown menu styling */
.role-dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 8px;
    min-width: 180px;
    animation: dropdownSlideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.role-dropdown-item {
    border-radius: 8px;
    padding: 12px 16px;
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

    .role-dropdown-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s;
    }

    .role-dropdown-item:hover::before {
        left: 100%;
    }

    .role-dropdown-item:hover {
        transform: translateX(8px);
        text-decoration: none;
    }

.role-admin-item:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626 !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.role-team-lead-item:hover {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #f59e0b !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.role-member-item:hover {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    color: #10b981 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* Role icons with subtle animation */
.role-dropdown i {
    transition: transform 0.3s ease;
}

.role-dropdown:hover i {
    transform: scale(1.1);
}

.dropdown-item i {
    transition: transform 0.2s ease;
}

.dropdown-item:hover i {
    transform: scale(1.2);
}

/* Focus and accessibility improvements */
.role-dropdown-item:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Responsive design */
@media (max-width: 768px) {
    .role-dropdown {
        min-width: 120px;
        font-size: 14px;
    }

    .role-dropdown-menu {
        min-width: 160px;
    }

    .role-dropdown-item {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* Loading state for AJAX operations */
.role-dropdown.loading {
    pointer-events: none;
    opacity: 0.7;
}

    .role-dropdown.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 30px;
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255,255,255,0.3);
        border-radius: 50%;
        border-top-color: white;
        animation: spin 1s ease-in-out infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Smooth dropdown arrow animation */
.role-dropdown.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.role-dropdown.show::after {
    transform: rotate(180deg);
}

/* ========================================
   STUDENT MANAGEMENT COMPONENTS
======================================== */

/* Student workspace */
.students-workspace {
    display: grid !important;
    grid-template-columns: 2fr auto 2fr !important;
    gap: 32px !important;
    margin-bottom: 32px !important;
    align-items: start !important;
}

/* Student pools */
.student-pool {
    background: white !important;
    border-radius: 16px !important;
    border: 2px solid #e2e8f0 !important;
    overflow: hidden !important;
}

.pool-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white !important;
    padding: 16px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.pool-title {
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.student-counter {
    background: rgba(255, 255, 255, 0.25) !important;
    padding: 4px 12px !important;
    border-radius: 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.pool-controls {
    padding: 16px 20px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
}

.students-list-container {
    max-height: 400px !important;
    overflow-y: auto !important;
    padding: 20px !important;
}

.allocated-pool .pool-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

/* Transfer controls */
.transfer-panel {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    justify-content: center !important;
    padding: 20px 0 !important;
    margin-top: auto !important;
    margin-bottom: auto !important;
}

/* ========================================
   COURSE TITLE DISPLAY
======================================== */

.course-title-display {
    position: sticky !important;
    top: 60px !important; /* Adjust based on your navbar height */
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important; /* Allows content to wrap on smaller screens */
    gap: 0.75rem !important;
    padding: 1rem 1.5rem !important;
    margin: 1rem 0 !important;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border: 2px solid #0ea5e9 !important;
    border-radius: 0.75rem !important;
    color: #0c4a6e !important;
    font-weight: 600 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
@media (max-width: 768px) {
    .course-title-display {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
        gap: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .course-title-display {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem !important;
    }
}


/* ========================================
   PAGINATION SYSTEM
======================================== */

.pagination-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    margin-top: 2rem !important;
    text-align: center !important;
}

.btn-pagination {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    border: none !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    margin: 0 0.5rem !important;
    transition: all 0.3s ease !important;
    min-height: 44px !important;
}

.btn-pagination:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%) !important;
    transform: translateY(-1px) !important;
    color: white !important;
}

.btn-pagination:disabled,
.btn-pagination.disabled {
    background: #d1d5db !important;
    cursor: not-allowed !important;
    transform: none !important;
    color: #9ca3af !important;
}

.page-info {
    color: #6b7280 !important;
    font-weight: 500 !important;
}

/* ========================================
   EMPTY STATES
======================================== */

.empty-state {
    text-align: center !important;
    padding: 4rem 2rem !important;
    color: #64748b !important;
}

.empty-icon {
    font-size: 4rem !important;
    margin-bottom: 1rem !important;
    opacity: 0.5 !important;
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.empty-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    color: #374151 !important;
}

.empty-description {
    font-size: 1rem !important;
    color: #6b7280 !important;
}

/* ========================================
   DETAILS FORM SYSTEM
======================================== */

.details-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    overflow: hidden !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    background: white !important;
}

.details-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: white !important;
    padding: 1rem 1.5rem !important;
    font-weight: 600 !important;
    font-size: 1.125rem !important;
    border: none !important;
}

.details-field-label {
    background: #f8fafc !important;
    padding: 1rem 1.5rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    border-bottom: 1px solid #e5e7eb !important;
    border-right: 1px solid #e5e7eb !important;
    width: 200px !important;
    vertical-align: middle !important;
    text-align: right !important;
}

.details-field-value {
    background: white !important;
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid #e5e7eb !important;
    vertical-align: middle !important;
}

.details-actions {
    background: #f8fafc !important;
    padding: 2rem 1.5rem !important;
    border: none !important;
}

/* ========================================
   LEARNING OUTCOMES SYSTEM
======================================== */

.learning-outcomes-section {
    background: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.add-outcome-section {
    background: white !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.add-outcome-header {
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.add-outcome-controls {
    display: flex !important;
    gap: 0.75rem !important;
    align-items: flex-start !important;
}

.add-outcome-input {
    flex: 1 !important;
}

.add-outcome-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border: none !important;
    color: white !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3) !important;
    min-height: 44px !important;
    white-space: nowrap !important;
}

.add-outcome-btn:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4) !important;
}

/* ========================================
   MOBILE RESPONSIVE CARDS
======================================== */

.mobile-card {
    background: white !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e5e7eb !important;
    margin-bottom: 1rem !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.mobile-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.mobile-card-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white !important;
    padding: 1rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.mobile-card-body {
    padding: 1rem !important;
}

.mobile-field {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.mobile-field:last-child {
    border-bottom: none !important;
}

.mobile-field-label {
    font-weight: 600 !important;
    color: #6b7280 !important;
    font-size: 0.875rem !important;
}

.mobile-field-value {
    font-weight: 500 !important;
    color: #111827 !important;
    text-align: right !important;
    flex: 1 !important;
    margin-left: 1rem !important;
}

.mobile-actions {
    padding: 1rem !important;
    background: #f8fafc !important;
    border-top: 1px solid #e5e7eb !important;
    text-align: center !important;
}

/* ========================================
   UTILITY CLASSES
======================================== */

/* Float utilities */
.float-left {
    float: left !important;
}

.float-right,
.float-end {
    float: right !important;
}

/* Text utilities */
.text-center {
    text-align: center !important;
}

.text-light {
    color: #ffffff !important;
}

.text-decoration-none {
    text-decoration: none !important;
}

/* Margin utilities */
.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

/* Padding utilities */
.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.pt-2 {
    padding-top: 0.5rem !important;
}

/* Width utilities */
.w-100 {
    width: 100% !important;
}

/* Display utilities */
.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Tablet and small desktop */
@media (max-width: 1200px) {
    .students-workspace {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .transfer-panel {
        flex-direction: row !important;
        justify-content: center !important;
        padding: 20px !important;
    }
}

/* Tablet */
@media (max-width: 768px) {
    /* Container adjustments */
    .wrapper {
        padding: 0 1rem !important;
    }

    /* Content padding */
    .content {
        padding: 1.5rem !important;
    }

    /* Header adjustments */
    .header {
        padding: 1.5rem !important;
    }

    .header h1 {
        font-size: 1.5rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    /* Back link adjustments */
    .back-link {
        position: static !important;
        margin-top: 1rem !important;
        justify-content: center !important;
    }

    /* Breadcrumb adjustments */
    .breadcrumb-section {
        padding: 12px 16px !important;
    }

    /* Form adjustments */
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .form-grid.two-col {
        grid-template-columns: 1fr !important;
    }

    /* Toggle adjustments */
    .toggle-group {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .fee-type-group {
        gap: 0.75rem !important;
    }

    /* Action button adjustments */
    .action-buttons {
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 1.25rem 1.5rem !important;
    }

    .action-footer {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .button-group {
        justify-content: center !important;
    }

    /* Details table adjustments */
    .details-field-label,
    .details-field-value {
        display: block !important;
        width: 100% !important;
        border-right: none !important;
    }

    .details-field-label {
        border-bottom: none !important;
        padding-bottom: 0.5rem !important;
        text-align: left !important;
    }

    .details-field-value {
        padding-top: 0.5rem !important;
    }

    /* Navigation adjustments */
    .navigation-section {
        flex-direction: column !important;
        text-align: center !important;
    }

    .navigation-controls,
    .action-buttons-container {
        justify-content: center !important;
    }

    .navigation-buttons {
        padding: 0 !important;
    }

    /* Team member adjustments */
    .team-section-body {
        padding: 1rem !important;
    }

    .member-avatar {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    .member-name {
        font-size: 1rem !important;
    }

    .member-username {
        font-size: 0.8rem !important;
    }

    .role-dropdown {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.8rem !important;
        min-width: 100px !important;
    }

    .dropdown-menu {
        right: auto !important;
        left: 0 !important;
    }

    .stats-row .col-md-4 {
        margin-bottom: 1rem !important;
    }

    .pagination-container {
        padding: 1rem !important;
    }

    .pagination-controls {
        margin-top: 1rem !important;
    }

    /* Learning outcome adjustments */
    .add-outcome-controls {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .add-outcome-btn {
        width: 100% !important;
    }
}

/* Mobile */
@media (max-width: 576px) {
    /* Header adjustments */
    .header h1 {
        font-size: 1.3rem !important;
    }

    .header .subtitle {
        font-size: 0.9rem !important;
        justify-content: center !important;
    }

    /* Content adjustments */
    .content {
        padding: 1.25rem !important;
    }

    /* Section adjustments */
    .learning-outcomes-section {
        padding: 1.25rem !important;
    }

    .section-header {
        padding: 0.875rem 1.25rem !important;
        font-size: 1rem !important;
    }

    /* Form adjustments */
    .form-control-custom,
    input[type="text"],
    select,
    textarea {
        padding: 0.75rem !important;
        font-size: 0.875rem !important;
    }

    /* Button adjustments */
    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.875rem !important;
    }

    /* Details adjustments */
    .details-actions {
        padding: 1.5rem 1rem !important;
    }

    /* Toggle adjustments */
    .toggle-wrapper,
    .fee-type-option {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    /* Team member adjustments */
    .team-member-card {
        margin-bottom: 0.75rem !important;
    }

    .member-info {
        margin-right: 0.5rem !important;
    }

    .dropdown-menu {
        min-width: 140px !important;
    }

    /* Statistics adjustments */
    .stat-number {
        font-size: 2rem !important;
    }
}

/* ========================================
   ACCESSIBILITY FEATURES
======================================== */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-control-custom,
    input[type="text"],
    select,
    textarea {
        border-color: #000 !important;
    }

    .field-label {
        color: #000 !important;
    }

    .header {
        border-bottom: 2px solid #000 !important;
    }

    .breadcrumb-custom {
        color: #000 !important;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .card,
    .content,
    .team-member-card:hover,
    .stat-card:hover,
    .mobile-card:hover,
    .form-control-custom:focus,
    .btn-primary-custom:hover,
    .btn-secondary-custom:hover {
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Bootstrap Button Overrides for ASP.NET Controls */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    min-height: 38px;
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .btn:active {
        transform: translateY(0);
    }

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border-color: #0d6efd;
    color: white;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
        border-color: #0b5ed7;
        color: white;
    }

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5c636a 100%);
    border-color: #6c757d;
    color: white;
}

    .btn-secondary:hover {
        background: linear-gradient(135deg, #5c636a 0%, #565e64 100%);
        border-color: #5c636a;
        color: white;
    }

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    border-color: #198754;
    color: white;
}

    .btn-success:hover {
        background: linear-gradient(135deg, #157347 0%, #146c43 100%);
        border-color: #157347;
        color: white;
    }

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #bb2d3b 100%);
    border-color: #dc3545;
    color: white;
}

    .btn-danger:hover {
        background: linear-gradient(135deg, #bb2d3b 0%, #b02a37 100%);
        border-color: #bb2d3b;
        color: white;
    }

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%);
    border-color: #ffc107;
    color: #000;
}

    .btn-warning:hover {
        background: linear-gradient(135deg, #ffca2c 0%, #ffd43b 100%);
        border-color: #ffca2c;
        color: #000;
    }

.btn-outline-primary {
    background: transparent;
    border-color: #0d6efd;
    color: #0d6efd;
}

    .btn-outline-primary:hover {
        background: #0d6efd;
        border-color: #0d6efd;
        color: white;
    }

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: 0.25rem;
    min-height: 32px;
}
/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #1f2937 !important;
        color: #f9fafb !important;
    }

    .card {
        background: #374151 !important;
        border-color: #4b5563 !important;
    }

    .content {
        background: #374151 !important;
    }

    .breadcrumb-section {
        background: #374151 !important;
        border-bottom-color: #4b5563 !important;
    }

    .form-control-custom,
    input[type="text"],
    select,
    textarea {
        background: #374151 !important;
        border-color: #4b5563 !important;
        color: #f9fafb !important;
    }

    .field-label {
        color: #f9fafb !important;
    }
}
    /* Bootstrap Tab Styling */
    .nav-tabs {
        border-bottom: 2px solid #e5e7eb;
        margin-bottom: 0;
    }

    .nav-tabs .nav-link {
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
        border: 2px solid #e5e7eb;
        border-bottom: none;
        border-radius: 0.5rem 0.5rem 0 0;
        margin-right: 0.5rem;
        padding: 0.75rem 1.5rem;
        font-weight: 600;
        color: #6b7280;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
    }

    .nav-tabs .nav-link:hover {
        background: linear-gradient(135deg, #e2e8f0 0%, #d1d5db 100%);
        border-color: #d1d5db;
        color: #374151;
        transform: translateY(-2px);
    }

    .nav-tabs .nav-link.active {
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        border-color: #3b82f6;
        color: white;
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    }

        .nav-tabs .nav-link.active:hover {
            background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
            border-color: #2563eb;
            color: white;
        }

    .tab-content {
        background: white;
        border: 2px solid #e5e7eb;
        border-top: none;
        border-radius: 0 0 0.75rem 0.75rem;
        min-height: 400px;
    }

    .tab-pane {
        padding: 0;
    }
/* Admin Options */
.admin-options {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.attributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.attribute-section {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}
.attribute-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.attribute-label {
    color: #6b7280;
    font-weight: 500;
}
.checklist-stats{
    margin-left:100px;
}
/* Enhanced Disabled Controls CSS - Comprehensive & Concise */

/* Base disabled styling for class and attributes */
.disabled,
[disabled],
[disabled="disabled"],
[readonly],
[readonly="readonly"] {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    user-select: none !important;
    transition: all 0.2s ease-in-out;
}

    /* Button controls */
    .disabled.btn,
    .disabled button,
    button.disabled,
    button[disabled],
    button[disabled="disabled"],
    input[type="button"][disabled],
    input[type="submit"][disabled],
    input[type="reset"][disabled],
    .btn[disabled],
    .btn[disabled="disabled"] {
        background-color: #e5e7eb !important;
        border-color: #d1d5db !important;
        color: #9ca3af !important;
        box-shadow: none !important;
        opacity: 0.5 !important;
    }

    /* Text inputs, textareas, and selects */
    .disabled.form-control,
    .disabled.form-select,
    .disabled input,
    .disabled textarea,
    .disabled select,
    input.disabled,
    textarea.disabled,
    select.disabled,
    input[disabled],
    textarea[disabled],
    select[disabled],
    input[disabled="disabled"],
    textarea[disabled="disabled"],
    select[disabled="disabled"],
    input[readonly],
    textarea[readonly],
    input[readonly="readonly"],
    textarea[readonly="readonly"] {
        background-color: #f9fafb !important;
        border-color: #e5e7eb !important;
        color: #9ca3af !important;
        opacity: 0.7 !important;
    }

        /* Radio buttons and checkboxes */
        .disabled input[type="radio"],
        .disabled input[type="checkbox"],
        input[type="radio"].disabled,
        input[type="checkbox"].disabled,
        input[type="radio"][disabled],
        input[type="checkbox"][disabled],
        input[type="radio"][disabled="disabled"],
        input[type="checkbox"][disabled="disabled"] {
            opacity: 0.4 !important;
        }

            /* Labels for radio/checkbox */
            .disabled label,
            label.disabled,
            .disabled input[type="radio"] + label,
            .disabled input[type="checkbox"] + label,
            input[type="radio"][disabled] + label,
            input[type="checkbox"][disabled] + label,
            input[type="radio"][disabled="disabled"] + label,
            input[type="checkbox"][disabled="disabled"] + label {
                color: #9ca3af !important;
                opacity: 0.6 !important;
            }

        /* File upload */
        .disabled input[type="file"],
        input[type="file"].disabled,
        input[type="file"][disabled],
        input[type="file"][disabled="disabled"] {
            background-color: #f9fafb !important;
            border-color: #e5e7eb !important;
            color: #9ca3af !important;
        }

    /* Form check containers */
    .disabled .form-check,
    .disabled .form-check-inline,
    .form-check.disabled,
    .form-check-inline.disabled,
    .form-check:has(input[disabled]),
    .form-check:has(input[disabled="disabled"]) {
        opacity: 0.5 !important;
    }

    /* Links and anchors */
    .disabled a,
    .disabled .btn-link,
    a.disabled,
    .btn-link.disabled,
    a[disabled],
    .btn-link[disabled] {
        color: #9ca3af !important;
        text-decoration: none !important;
        opacity: 0.5 !important;
    }

    /* DevExpress controls */
    .disabled .dxeButtonEdit,
    .disabled .dxeTextBox,
    .disabled .dxeComboBox,
    .disabled .dxeDropDownEdit,
    .dxeButtonEdit.disabled,
    .dxeTextBox.disabled,
    .dxeComboBox.disabled,
    .dxeDropDownEdit.disabled {
        opacity: 0.5 !important;
    }

        .disabled .dxeButtonEdit td,
        .disabled .dxeTextBox td,
        .disabled .dxeComboBox td,
        .dxeButtonEdit.disabled td,
        .dxeTextBox.disabled td,
        .dxeComboBox.disabled td {
            background-color: #f9fafb !important;
        }

    /* Toggle switches */
    .disabled .toggle-switch,
    .toggle-switch.disabled,
    .toggle-switch:has(input[disabled]),
    .toggle-switch:has(input[disabled="disabled"]) {
        opacity: 0.4 !important;
    }

        .disabled .toggle-switch .toggle-slider,
        .toggle-switch.disabled .toggle-slider {
            background-color: #e5e7eb !important;
        }

        .disabled .toggle-switch .toggle-knob,
        .toggle-switch.disabled .toggle-knob {
            background-color: #9ca3af !important;
        }

    /* Input groups */
    .disabled .input-group,
    .input-group.disabled,
    .input-group:has(input[disabled]),
    .input-group:has(input[disabled="disabled"]) {
        opacity: 0.6 !important;
    }

    .disabled .input-group-text,
    .input-group-text.disabled {
        background-color: #f3f4f6 !important;
        border-color: #e5e7eb !important;
        color: #9ca3af !important;
    }

    /* Bootstrap icons in disabled controls */
    .disabled .bi,
    .disabled i,
    [disabled] .bi,
    [disabled] i,
    [disabled="disabled"] .bi,
    [disabled="disabled"] i {
        color: #9ca3af !important;
        opacity: 0.6 !important;
    }

    /* Remove all interactions from children */
    .disabled *,
    [disabled] *,
    [disabled="disabled"] *,
    [readonly] *,
    [readonly="readonly"] * {
        pointer-events: none !important;
    }

/* Re-enable pointer events for parent to show cursor */
.disabled,
[disabled],
[disabled="disabled"],
[readonly],
[readonly="readonly"] {
    pointer-events: auto !important;
}

    /* Focus states - remove for disabled/readonly */
    .disabled:focus,
    .disabled *:focus,
    [disabled]:focus,
    [disabled="disabled"]:focus,
    [readonly]:focus,
    [readonly="readonly"]:focus {
        box-shadow: none !important;
        outline: none !important;
        border-color: #e5e7eb !important;
    }

    /* Hover states - disable for all disabled controls */
    .disabled:hover,
    .disabled *:hover,
    [disabled]:hover,
    [disabled="disabled"]:hover,
    [readonly]:hover,
    [readonly="readonly"]:hover {
        background-color: inherit !important;
        border-color: inherit !important;
        color: inherit !important;
        transform: none !important;
        box-shadow: none !important;
    }

/* Special readonly styling (less faded than disabled) */
[readonly],
[readonly="readonly"] {
    opacity: 0.8 !important;
    background-color: #f8fafc !important;
    cursor: default !important;
}

/* ASP.NET specific controls */
.aspNetDisabled,
span[disabled] input,
span[disabled] select,
span[disabled] textarea {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background-color: #f9fafb !important;
    color: #9ca3af !important;
    text-decoration: none;
}
/*Loader CSS*/
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}