/* ==========================================================================
   Global Custom Variables & Theme Configurations
   ========================================================================== */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --dark-heading: #1e293b;
    --muted-text: #64748b;
    --light-bg: #f4f6f9;
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --transition-speed: 0.3s ease;
}

/* Base Body Styling */
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-heading);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Setup Wizard & Container Styles
   ========================================================================== */

/* Main Setup Container Card */
.setup-card {
    max-width: 650px;
    width: 90%;
    margin: 30px auto;
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    background: #ffffff;
    overflow: hidden;
}

/* Card Header Title */
.card-header-title {
    font-weight: 700;
    color: var(--dark-heading);
    letter-spacing: -0.5px;
}

/* Universal Card Custom Layout */
.card-custom { 
    border: none; 
    border-radius: var(--border-radius-md); 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); 
    background-color: #ffffff;
    overflow: hidden;
}

/* Gradient Header Styling */
.header-bg { 
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); 
    color: #ffffff; 
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0; 
    padding: 24px; 
}

/* Header Logo Styling */
.header-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

/* ==========================================================================
   Form Components & Buttons
   ========================================================================== */

/* Form Input Field Labels */
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted-text);
    margin-bottom: 0.5rem;
}

/* Custom Primary Action Button */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-speed);
    display: inline-block;
    width: 100%;
    text-align: center;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Input Group Icon Wrappers */
.input-group-text {
    background-color: #f8fafc;
    border-color: #dee2e6;
    color: var(--muted-text);
}

/* ==========================================================================
   Badges, Progress Bars & Metrics
   ========================================================================== */

/* Custom Status Badge */
.badge-custom { 
    padding: 6px 14px; 
    border-radius: 20px; 
    font-size: 12px;
    font-weight: 600; 
    letter-spacing: 0.3px;
    display: inline-block;
}

/* Slim Progress Bar Container */
.progress-slim { 
    height: 12px; 
    border-radius: 10px; 
    background-color: #e2e8f0;
    overflow: hidden;
    width: 120px;
    display: inline-block;
    vertical-align: middle;
}

/* Progress Fill Line */
.progress-bar-custom {
    height: 100%;
    border-radius: 10px;
    transition: width 0.4s ease-in-out;
}

/* Percentage / Progress Text Below Bar */
.progress-text {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-top: 3px;
    display: block;
}

/* Container Track */
.progress-container {
  width: 100%;
  background-color: #e5e7eb;
  border-radius: 9999px;
  height: 10px;
  overflow: hidden;
}

/* Water Color Dynamic Bar */
.progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  /* Soft Water Color Effect Gradient */
  background: linear-gradient(90deg, #60a5fa 0%, #38bdf8 100%);
  transition: width 0.4s ease-in-out;
}

/* 100% or Expired Status */
.progress-bar-fill.expired {
  background: #ef4444 !important; /* Fully Red Color */
}

/* Date Display Badge */
.date-badge {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted-text);
}

/* ==========================================================================
   Table & Responsive Data Presentation
   ========================================================================== */

/* Table Header Formatting */
.table thead th {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    padding: 12px;
}

/* Smooth Table Row Transitions */
.table tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

/* ==========================================================================
   Media Queries for Mobile & Device Responsiveness
   ========================================================================== */

@media (max-width: 768px) {
    .setup-card {
        margin: 15px auto;
        padding: 10px;
    }

    .header-bg {
        padding: 16px;
        text-align: center;
    }

    .progress-slim {
        width: 100%;
        max-width: 100px;
    }
}