/* Custom styles for Survey Classification App */
/* All colors use hex values to avoid theme system conflicts */

/* ============================================
   QUICK REFERENCE - Available Utility Classes
   ============================================

   Text Colors (Neutral):
   - .text-heading     → #111827 (Almost black - main headings)
   - .text-body        → #374151 (Dark gray - body text)
   - .text-secondary   → #6b7280 (Medium gray - secondary text)
   - .text-tertiary    → #9ca3af (Light gray - placeholder text)
   - .text-muted       → #4b5563 (Muted gray - labels)

   Text Colors (Semantic):
   - .text-success     → #047857 (Dark green - success)
   - .text-error       → #b91c1c (Dark red - errors)
   - .text-warning     → #d97706 (Dark amber - warnings)
   - .text-info        → #1e40af (Dark blue - info)
   - .text-processing  → #2563eb (Medium blue - processing)

   LLM Classifications:
   - .llm1-category         → Dark blue (#1e3a8a) + monospace
   - .llm2-category         → Dark orange (#ea580c) + monospace
   - .reconciled-category   → Dark green (#047857) + green bg + bold

   Status Badges (background + text color):
   - .status-pending
   - .status-processing
   - .status-completed
   - .status-failed

   Agreement Scores:
   - .agreement-high    → Green (> 90%)
   - .agreement-medium  → Amber (60-90%)
   - .agreement-low     → Red (< 60%)

   Reconciliation:
   - .needs-reconciliation        → Yellow background
   - .needs-reconciliation:hover  → Darker yellow

   Typography:
   - .mono          → Monospace font
   - .font-semibold → Font weight 600
   - .font-bold     → Font weight 700

   ============================================ */

/* ============================================
   TEXT COLORS - Reusable utility classes
   ============================================ */

/* Neutral text colors */
.text-heading {
    color: #111827; /* Almost black - for main headings */
}

.text-body {
    color: #374151; /* Dark gray - for body text */
}

.text-secondary {
    color: #6b7280; /* Medium gray - for secondary text */
}

.text-tertiary {
    color: #9ca3af; /* Light gray - for tertiary/placeholder text */
}

.text-muted {
    color: #4b5563; /* Muted gray - for labels and metadata */
}

/* Semantic colors */
.text-success {
    color: #047857; /* Dark green - for success states */
}

.text-error {
    color: #b91c1c; /* Dark red - for errors */
}

.text-warning {
    color: #d97706; /* Dark amber - for warnings */
}

.text-info {
    color: #1e40af; /* Dark blue - for info */
}

.text-processing {
    color: #2563eb; /* Medium blue - for processing */
}

/* Gray text colors */
.text-gray-300 {
    color: #d1d5db; /* Light gray */
}

.text-gray-400 {
    color: #9ca3af; /* Light gray */
}

.text-gray-500 {
    color: #6b7280; /* Medium gray */
}

.text-gray-600 {
    color: #4b5563; /* Dark gray */
}

.text-gray-700 {
    color: #374151; /* Darker gray */
}

.text-gray-800 {
    color: #1f2937; /* Very dark gray */
}

.text-gray-900 {
    color: #111827; /* Almost black */
}

/* Blue text colors */
.text-blue-500 {
    color: #3b82f6; /* Medium blue */
}

.text-blue-600 {
    color: #2563eb; /* Blue */
}

.text-blue-700 {
    color: #1d4ed8; /* Dark blue */
}

.text-blue-800 {
    color: #1e40af; /* Darker blue */
}

.text-blue-900 {
    color: #1e3a8a; /* Very dark blue */
}

/* Rose/Red text colors */
.text-rose-600 {
    color: #e11d48; /* Rose */
}

.text-rose-700 {
    color: #be123c; /* Dark rose */
}

.text-rose-800 {
    color: #9f1239; /* Darker rose */
}

.text-rose-900 {
    color: #881337; /* Very dark rose */
}

.text-red-700 {
    color: #b91c1c; /* Dark red */
}

/* Green text colors */
.text-green-500 {
    color: #22c55e; /* Bright green */
}

.text-green-600 {
    color: #16a34a; /* Green */
}

.text-green-700 {
    color: #15803d; /* Dark green */
}

.text-green-800 {
    color: #166534; /* Darker green */
}

/* Orange text colors */
.text-orange-600 {
    color: #ea580c; /* Orange */
}

.text-orange-800 {
    color: #9a3412; /* Dark orange */
}

/* Amber text color */
.text-amber-600 {
    color: #d97706; /* Amber */
}

.text-amber-700 {
    color: #b45309; /* Dark amber */
}

/* Pink text color */
.text-pink-700 {
    color: #be185d; /* Dark pink */
}

/* White text */
.text-white {
    color: #ffffff; /* White */
}

/* Legacy/DaisyUI compatibility */
.text-primary-content {
    color: #ffffff; /* White text for primary backgrounds */
}

/* Hover states for text colors */
.hover\:text-rose-600:hover {
    color: #e11d48; /* Rose */
}

.hover\:text-rose-700:hover {
    color: #be123c; /* Dark rose */
}

.hover\:text-rose-900:hover {
    color: #881337; /* Very dark rose */
}

.hover\:text-blue-800:hover {
    color: #1e40af; /* Dark blue */
}

.hover\:text-blue-900:hover {
    color: #1e3a8a; /* Very dark blue */
}

.hover\:text-heading:hover {
    color: #111827; /* Almost black */
}

.hover\:text-rose-800:hover {
    color: #9f1239; /* Darker rose */
}

/* ============================================
   LLM CLASSIFICATION COLORS
   ============================================ */

.llm1-category {
    color: #1e3a8a; /* Dark blue for LLM 1 */
    font-family: ui-monospace, monospace;
}

.llm2-category {
    color: #ea580c; /* Dark orange for LLM 2 */
    font-family: ui-monospace, monospace;
}

.reconciled-category {
    color: #047857; /* Dark green for reconciled - final/approved */
    font-family: ui-monospace, monospace;
    font-weight: 700;
    background-color: #d1fae5; /* Light green background */
    padding: 2px 6px;
    border-radius: 4px;
}

/* ============================================
   STATUS BADGES
   ============================================ */

.status-pending {
    background-color: #f3f4f6;
    color: #374151;
}

.status-queued {
    background-color: #fef3c7;
    color: #92400e;
}

.status-processing {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-failed {
    background-color: #fee2e2;
    color: #991b1b;
}

/* ============================================
   AGREEMENT SCORE COLORS
   ============================================ */

.agreement-high {
    color: #065f46; /* Dark green for > 90% */
}

.agreement-medium {
    color: #92400e; /* Dark amber for 60-90% */
}

.agreement-low {
    color: #991b1b; /* Dark red for < 60% */
}

/* ============================================
   RECONCILIATION HIGHLIGHTS
   ============================================ */

.needs-reconciliation {
    background-color: #fef3c7; /* Light yellow */
}

.needs-reconciliation:hover {
    background-color: #fde68a; /* Darker yellow on hover */
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */

.mono {
    font-family: ui-monospace, monospace;
}

.font-mono {
    font-family: ui-monospace, monospace;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Text transformation */
.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

/* List styles */
.list-disc {
    list-style-type: disc;
}

/* ============================================
   CATEGORY TOOLTIPS
   ============================================ */

.category-tooltip {
    cursor: help;
    border-bottom: 1px dotted currentColor;
    position: relative;
}

.category-tooltip:hover {
    opacity: 0.8;
}

/* ============================================
   FORM INPUTS - Fix white text on white background
   ============================================ */

/* All text inputs, textareas, and selects */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select {
    color: #111827 !important; /* Dark text for inputs */
    background-color: #ffffff !important; /* White background */
}

/* Placeholder text should be visible but muted */
input::placeholder,
textarea::placeholder {
    color: #9ca3af !important; /* Light gray placeholder */
    opacity: 1;
}

/* Disabled inputs should look different */
input:disabled,
textarea:disabled,
select:disabled {
    background-color: #f3f4f6 !important; /* Light gray background */
    color: #6b7280 !important; /* Medium gray text */
    cursor: not-allowed;
}

/* Focus state should be clear */
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #be123c; /* Rose-700 outline on focus */
    outline-offset: 2px;
}

/* Additional focus ring utilities for forms */
.focus\:ring-2:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-rose-500:focus {
    --tw-ring-color: #f43f5e;
}

.focus\:ring-offset-2:focus {
    --tw-ring-offset-width: 2px;
}

/* Checkboxes and radio buttons */
input[type="checkbox"],
input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    background-color: #ffffff;
    cursor: pointer;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

input[type="checkbox"]:hover {
    border-color: #9ca3af;
}

input[type="checkbox"]:checked {
    background-color: #be123c;
    border-color: #be123c;
}

input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: 0.05rem;
    width: 0.375rem;
    height: 0.625rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:focus {
    outline: 2px solid #be123c;
    outline-offset: 2px;
}

input[type="radio"]:checked {
    background-color: #be123c;
    border-color: #be123c;
}

/* ============================================
   FLEXBOX LAYOUTS
   ============================================ */

.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

/* ============================================
   GRID LAYOUTS - Statistics Cards
   ============================================ */

/* Grid container with responsive columns */
.grid {
    display: grid;
}

/* Default: 1 column for mobile */
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* Medium screens and up: 2-5 columns */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .md\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Gap utilities */
.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

/* ============================================
   SPACING UTILITIES
   ============================================ */

/* Margins */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-6 {
    margin-left: 1.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

/* Paddings */
.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 1.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

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

.pt-4 {
    padding-top: 1rem;
}

/* ============================================
   CARD STYLES
   ============================================ */

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-blue-200 {
    border-color: #bfdbfe;
}

.border-green-200 {
    border-color: #bbf7d0;
}

.border-amber-200 {
    border-color: #fde68a;
}

.border-amber-300 {
    border-color: #fcd34d;
}

.border-orange-200 {
    border-color: #fed7aa;
}

.border-yellow-400 {
    border-color: #facc15;
}

.border-rose-300 {
    border-color: #fda4af;
}

.border-rose-500 {
    border-color: #f43f5e;
}

/* Hover states for borders */
.hover\:border-rose-400:hover {
    border-color: #fb7185;
}

.focus\:border-rose-500:focus {
    border-color: #f43f5e;
}

/* ============================================
   TEXT SIZE UTILITIES
   ============================================ */

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

/* ============================================
   TEXT ALIGNMENT
   ============================================ */

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* ============================================
   WIDTH & HEIGHT UTILITIES
   ============================================ */

.max-w-7xl {
    max-width: 80rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.h-2 {
    height: 0.5rem;
}

.h-5 {
    height: 1.25rem;
}

.w-5 {
    width: 1.25rem;
}

.w-full {
    width: 100%;
}

.w-96 {
    width: 24rem;
}

.h-full {
    height: 100%;
}

/* ============================================
   DISPLAY & VISIBILITY
   ============================================ */

.inline-block {
    display: inline-block;
}

.inline-flex {
    display: inline-flex;
}

.block {
    display: block;
}

.hidden {
    display: none;
}

/* Overflow utilities */
.overflow-hidden {
    overflow: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

.overflow-y-auto {
    overflow-y: auto;
}

/* ============================================
   OPACITY UTILITIES
   ============================================ */

.opacity-25 {
    opacity: 0.25;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

/* Background opacity (for modal overlays) */
.bg-opacity-50 {
    --tw-bg-opacity: 0.5;
    background-color: rgb(75 85 99 / var(--tw-bg-opacity));
}

/* ============================================
   POSITIONING UTILITIES
   ============================================ */

.fixed {
    position: fixed;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-20 {
    top: 5rem;
}

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

/* ============================================
   FLEXBOX UTILITIES
   ============================================ */

.flex-shrink-0 {
    flex-shrink: 0;
}

.whitespace-nowrap {
    white-space: nowrap;
}

/* ============================================
   CURSOR UTILITIES
   ============================================ */

.cursor-pointer {
    cursor: pointer;
}

/* ============================================
   BACKGROUND COLORS
   ============================================ */

/* White & Gray Backgrounds */
.bg-white {
    background-color: #ffffff;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.bg-gray-300 {
    background-color: #d1d5db;
}

.bg-gray-600 {
    background-color: #4b5563;
}

.bg-gray-700 {
    background-color: #374151;
}

/* Table header background - cool blue-gray for contrast */
.bg-table-header {
    background-color: #e8edf5; /* Cool blue-gray - modern, stands out from page bg */
}

/* Rose/Red Backgrounds (Primary Actions) */
.bg-rose-50 {
    background-color: #fff1f2; /* Actual light rose color */
}

.bg-rose-100 {
    background-color: #ffe4e6;
}

.bg-rose-600 {
    background-color: #e11d48;
}

.bg-rose-700 {
    background-color: #be123c;
}

.bg-red-50 {
    background-color: #fef2f2;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.bg-red-500 {
    background-color: #ef4444;
}

.bg-red-600 {
    background-color: #dc2626;
}

.bg-red-700 {
    background-color: #b91c1c;
}

/* Blue Backgrounds (Info, Active States) */
.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-blue-500 {
    background-color: #3b82f6;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.bg-blue-700 {
    background-color: #1d4ed8;
}

/* Green Backgrounds (Success) */
.bg-green-50 {
    background-color: #f0fdf4;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-green-200 {
    background-color: #bbf7d0;
}

.bg-green-600 {
    background-color: #16a34a;
}

.bg-green-700 {
    background-color: #15803d;
}

/* Yellow Backgrounds (Warnings) */
.bg-yellow-50 {
    background-color: #fefce8;
}

/* Amber Backgrounds (Warnings) */
.bg-amber-50 {
    background-color: #fffbeb;
}

.bg-amber-500 {
    background-color: #f59e0b;
}

.bg-amber-600 {
    background-color: #d97706;
}

.bg-amber-700 {
    background-color: #b45309;
}

/* Orange Backgrounds */
.bg-orange-50 {
    background-color: #fff7ed;
}

.bg-orange-100 {
    background-color: #ffedd5;
}

.bg-orange-200 {
    background-color: #fed7aa;
}

.bg-orange-600 {
    background-color: #ea580c;
}

/* Pink Backgrounds */
.bg-pink-100 {
    background-color: #fce7f3;
}

/* Semantic Color Backgrounds */
.bg-body {
    background-color: #374151;
}

.bg-heading {
    background-color: #111827;
}

/* Legacy/DaisyUI compatibility */
.bg-base-100 {
    background-color: #ffffff;
}

.bg-primary {
    background-color: #e11d48; /* Rose-600 */
}

/* ============================================
   HOVER STATES FOR BACKGROUNDS
   ============================================ */

.hover\:bg-rose-600:hover {
    background-color: #e11d48;
}

.hover\:bg-rose-700:hover {
    background-color: #be123c;
}

.hover\:bg-blue-700:hover {
    background-color: #1d4ed8;
}

.hover\:bg-gray-50:hover {
    background-color: #f9fafb;
}

.hover\:bg-gray-200:hover {
    background-color: #e5e7eb;
}

.hover\:bg-gray-300:hover {
    background-color: #d1d5db;
}

.hover\:bg-gray-400:hover {
    background-color: #9ca3af;
}

.hover\:bg-amber-700:hover {
    background-color: #b45309;
}

.hover\:bg-heading:hover {
    background-color: #111827;
}

.hover\:bg-red-700:hover {
    background-color: #b91c1c;
}

.hover\:bg-gray-700:hover {
    background-color: #374151;
}

.hover\:bg-amber-600:hover {
    background-color: #d97706;
}

.hover\:bg-green-700:hover {
    background-color: #15803d;
}

.hover\:bg-blue-600:hover {
    background-color: #2563eb;
}

.hover\:bg-red-600:hover {
    background-color: #dc2626;
}

/* ============================================
   TRANSITIONS
   ============================================ */

.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* ============================================
   FORM WIDTH UTILITIES
   ============================================ */

.w-full {
    width: 100%;
}

/* ============================================
   GRID UTILITIES
   ============================================ */

@media (min-width: 768px) {
    .md\:col-span-4 {
        grid-column: span 4 / span 4;
    }
}

/* ============================================
   AUTO-REFRESH ANIMATIONS
   ============================================ */

/* Fade-in animation for auto-refresh indicator */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#auto-refresh-indicator[style*="display: block"] {
    animation: fadeIn 0.3s ease-in-out;
}

/* Spinning animation for the auto-refresh spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* ========================================
   TASK CONTROL BUTTONS
   ======================================== */

/* Pause Button */
.btn-pause {
    background-color: #f59e0b; /* Amber 500 */
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-pause:hover {
    background-color: #d97706; /* Amber 600 */
}

.btn-pause:disabled {
    background-color: #fde68a; /* Amber 200 */
    cursor: not-allowed;
    opacity: 0.6;
}

/* Resume Button */
.btn-resume {
    background-color: #10b981; /* Emerald 500 */
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-resume:hover {
    background-color: #059669; /* Emerald 600 */
}

.btn-resume:disabled {
    background-color: #a7f3d0; /* Emerald 200 */
    cursor: not-allowed;
    opacity: 0.6;
}

/* Cancel Button */
.btn-cancel {
    background-color: #ef4444; /* Red 500 */
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-cancel:hover {
    background-color: #dc2626; /* Red 600 */
}

.btn-cancel:disabled {
    background-color: #fecaca; /* Red 200 */
    cursor: not-allowed;
    opacity: 0.6;
}

/* Retry Button */
.btn-retry {
    background-color: #3b82f6; /* Blue 500 */
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-retry:hover {
    background-color: #2563eb; /* Blue 600 */
}

.btn-retry:disabled {
    background-color: #bfdbfe; /* Blue 200 */
    cursor: not-allowed;
    opacity: 0.6;
}

/* ========================================
   STATUS BADGES - NEW STATES
   ======================================== */

/* Status Badge - Paused */
.status-paused {
    background-color: #fed7aa; /* Orange 200 */
    color: #9a3412; /* Orange 800 */
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Status Badge - Cancelled */
.status-cancelled {
    background-color: #e5e7eb; /* Gray 200 */
    color: #374151; /* Gray 700 */
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: line-through;
}

/* ========================================
   ICON STYLES FOR BUTTONS
   ======================================== */

.icon-pause,
.icon-resume,
.icon-cancel,
.icon-retry {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ========================================
   LOADING SPINNER FOR STATUS POLLING
   ======================================== */

.spinner-status {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
/* ========================================
   USER MANAGEMENT - Role & Status Badges
   ======================================== */

/* User Role Badges */
.user-role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-role-superuser {
    background-color: #7c3aed;
    color: #ffffff;
}

.user-role-staff {
    background-color: #2563eb;
    color: #ffffff;
}

.user-role-student {
    background-color: #059669;
    color: #ffffff;
}

.user-role-regular {
    background-color: #6b7280;
    color: #ffffff;
}

/* User Status Badges */
.user-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-status-active {
    background-color: #d1fae5;
    color: #047857;
}

.user-status-inactive {
    background-color: #f3f4f6;
    color: #6b7280;
}


/* ========================================
   ADDITIONAL UTILITY CLASSES FOR USER MGMT
   ======================================== */

/* Flexbox alignment */
.items-end {
    align-items: flex-end;
}

/* Border colors */
.border-gray-300 {
    border-color: #d1d5db;
}

/* Hover states for backgrounds */
.hover\:bg-gray-50:hover {
    background-color: #f9fafb;
}

.hover\:bg-gray-700:hover {
    background-color: #374151;
}

/* Additional text colors for hover states */
.hover\:text-blue-900:hover {
    color: #1e3a8a;
}

.hover\:text-orange-900:hover {
    color: #7c2d12;
}

.hover\:text-green-900:hover {
    color: #14532d;
}

.hover\:text-purple-900:hover {
    color: #581c87;
}

.hover\:text-red-900:hover {
    color: #7f1d1d;
}

.hover\:text-rose-700:hover {
    color: #be123c;
}

/* Additional background colors */
.bg-yellow-100 {
    background-color: #fef3c7;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.bg-green-600 {
    background-color: #16a34a;
}

.bg-orange-600 {
    background-color: #ea580c;
}

.bg-purple-600 {
    background-color: #9333ea;
}

/* Additional text colors */
.text-yellow-800 {
    color: #854d0e;
}

.text-blue-600 {
    color: #2563eb;
}

.text-green-600 {
    color: #16a34a;
}

.text-orange-600 {
    color: #ea580c;
}

.text-purple-600 {
    color: #9333ea;
}

.text-red-700 {
    color: #b91c1c;
}

/* Grid cols */
.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Input fields */
input[type="text"],
input[type="email"],
input[type="password"],
select {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: #be123c;
    box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.1);
}

/* Radio buttons */
input[type="radio"] {
    width: 1rem;
    height: 1rem;
    color: #be123c;
    border: 1px solid #d1d5db;
}

input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.1);
}


/* Additional spacing utilities */
.ml-3 {
    margin-left: 0.75rem;
}

/* Divide utilities for table rows */
.divide-gray-200 > * + * {
    border-top: 1px solid #e5e7eb;
}

/* Responsive grid for medium screens and up */
@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* Additional spacing utility */
.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}


/* ========================================
   INLINE ACTION BUTTONS/LINKS
   Make links look like action buttons
   ======================================== */

/* Remove underline from action links in tables */
td a {
    text-decoration: none;
}

/* Ensure buttons and links display consistently inline */
form.inline {
    display: inline-block;
}

/* Strip styling ONLY from submit buttons that should look like text links
   This specifically targets buttons without explicit background classes */
td button[type="submit"]:not([class*="bg-"]) {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

/* Add slight underline on hover for both links and buttons to show they're clickable */
td a:hover,
td button[type="submit"]:hover {
    text-decoration: underline;
}


/* ========================================
   MISSING LAYOUT UTILITIES
   ======================================== */

/* Max width for form containers */
.max-w-2xl {
    max-width: 42rem; /* 672px */
}

/* Flexbox justify */
.justify-end {
    justify-content: flex-end;
}

