/* ==========================================================================
   TATA TISCON Engineer Booking - Custom Premium Stylesheet
   ========================================================================== */

/* Variables */
:root {
    --primary-navy: #0f1a59;
    --primary-navy-hover: #0a123e;
    --accent-gold: #e5a93b;
    --accent-gold-glow: rgba(229, 169, 59, 0.2);
    --accent-blue: #1e3a8a;
    --bg-light: #f8fafc;
    --card-shadow: 0 10px 30px rgba(15, 26, 89, 0.05);
    --card-shadow-hover: 0 15px 35px rgba(15, 26, 89, 0.1);
    --border-color: #e2e8f0;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    
    /* Admin Dark Theme Accents */
    --admin-bg-dark: #0f172a;
    --admin-card-bg: rgba(30, 41, 59, 0.7);
    --admin-border: rgba(255, 255, 255, 0.08);
}

/* Base resets & fonts */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

/* --- Public Booking Styles --- */
.booking-container {
    max-width: 540px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
}

.booking-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 2.5rem;
}

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

/* Title Design */
.booking-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    margin-bottom: 0.2rem;
    /* Gold Outline Text Effect */
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent-gold);
    text-stroke: 1.5px var(--accent-gold);
    filter: drop-shadow(0 2px 4px rgba(229, 169, 59, 0.1));
}

.booking-subtitle {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-navy);
    text-align: center;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
}

/* Form Styles */
.form-label-custom {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #000000;
    margin-bottom: 0.6rem;
}

.form-control-custom {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.form-control-custom:focus {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(15, 26, 89, 0.15);
    outline: none;
}

.form-select-custom {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
    background-color: #ffffff;
    cursor: pointer;
}

.form-select-custom:focus {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(15, 26, 89, 0.15);
    outline: none;
}

/* Dealer Info Panel */
.dealer-panel {
    background-color: #f1f5f9;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.8rem 0;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.dealer-panel-title {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #000000;
    margin-bottom: 0.75rem;
}

.dealer-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 0.25rem;
}

.dealer-phone {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.4rem;
}

.dealer-address {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Submit Button */
.btn-submit-custom {
    background-color: var(--primary-navy);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.85rem;
    border-radius: 8px;
    border: none;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(15, 26, 89, 0.15);
}

.btn-submit-custom:hover, .btn-submit-custom:focus {
    background-color: var(--primary-navy-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 26, 89, 0.25);
}

.btn-submit-custom:active {
    transform: translateY(1px);
}

/* Form Helper Text */
.invalid-feedback-custom {
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.3rem;
    display: none;
}

/* --- Admin Panel Styles --- */
.admin-navbar {
    background-color: var(--primary-navy) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-sidebar {
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    min-height: calc(100vh - 56px);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--primary-navy);
    background: rgba(15, 26, 89, 0.03);
    border-left-color: var(--primary-navy);
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.dashboard-card-icon {
    font-size: 2rem;
    padding: 0.75rem;
    border-radius: 10px;
}

/* Status Badges */
.badge-status {
    padding: 0.45em 0.8em;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 50px;
}

.badge-pending {
    background-color: #fef3c7;
    color: #d97706;
}

.badge-assigned {
    background-color: #dbeafe;
    color: #2563eb;
}

.badge-completed {
    background-color: #d1fae5;
    color: #059669;
}

.badge-cancelled {
    background-color: #fee2e2;
    color: #dc2626;
}

/* --- General Utilities --- */
.cursor-pointer {
    cursor: pointer;
}

/* Loading overlays */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 26, 89, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1060;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loader-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Success Animation Modal */
.modal-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #10b981;
    color: #10b981;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    margin: 1.5rem auto;
    animation: scaleUp 0.3s ease-out forwards;
}

@keyframes scaleUp {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
