/* style.css - Design moderne & vibrant pour FileService Reprog */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg-dark: #070b14;
    --bg-card: rgba(16, 24, 41, 0.78);
    --bg-card-hover: rgba(24, 35, 58, 0.9);
    --border-color: rgba(255, 255, 255, 0.09);
    --accent-blue: #00d2ff;
    --accent-purple: #9254de;
    --accent-green: #00e676;
    --accent-amber: #ffab00;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --card-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.45);
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 12% 15%, rgba(0, 210, 255, 0.07) 0%, transparent 35%),
        radial-gradient(circle at 88% 80%, rgba(146, 84, 222, 0.07) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
}

.cursor-pointer {
    cursor: pointer;
}

/* Glassmorphism elements */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-panel:hover {
    border-color: rgba(0, 210, 255, 0.25);
}

/* Navbar */
.navbar-custom {
    background: rgba(7, 11, 20, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.45rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-dark .navbar-nav .nav-link {
    color: #cbd5e1;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff;
    background: rgba(0, 210, 255, 0.1);
}

/* Wallet Badge */
.wallet-badge {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(146, 84, 222, 0.15));
    border: 1px solid rgba(0, 210, 255, 0.35);
    color: var(--accent-blue);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.wallet-badge:hover {
    border-color: var(--accent-blue);
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.25), rgba(146, 84, 222, 0.25));
    color: #ffffff;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, #0052D4, #4364F7, #00d2ff);
    background-size: 200% auto;
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(67, 100, 247, 0.35);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 210, 255, 0.45);
    color: #fff;
}

.btn-success-custom {
    background: linear-gradient(135deg, #0d9488, #10b981, #34d399);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.btn-success-custom:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Forms */
.form-control, .form-select {
    background-color: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 11px 15px;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(15, 23, 42, 0.92);
    border-color: var(--accent-blue);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.2);
}

/* Fix option & datalist visibility in dark mode */
select option,
datalist option {
    background-color: #121929 !important;
    color: #ffffff !important;
    padding: 10px;
}

input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.form-label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control::placeholder {
    color: #64748b !important;
    opacity: 0.8;
}

/* Vehicle Type Visual Cards (Step 1) */
.vehicle-type-card {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    text-align: center;
}

.vehicle-type-card:hover {
    background: rgba(24, 36, 62, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.vehicle-type-card.active-vl {
    background: rgba(0, 210, 255, 0.12);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

.vehicle-type-card.active-cu {
    background: rgba(255, 193, 7, 0.12);
    border-color: #ffc107;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.2);
}

.vehicle-type-card.active-pl {
    background: rgba(220, 53, 69, 0.14);
    border-color: #dc3545;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.2);
}

/* Interactive Service Cards (Step 3) */
.service-select-card {
    background: rgba(15, 23, 42, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-select-card:hover {
    background: rgba(26, 38, 66, 0.75);
    border-color: rgba(0, 210, 255, 0.35);
    transform: translateY(-2px);
}

.service-select-card.selected {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.14), rgba(146, 84, 222, 0.14));
    border-color: var(--accent-blue);
    box-shadow: 0 0 22px rgba(0, 210, 255, 0.22);
}

.service-select-card .service-check-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.service-select-card.selected .service-check-indicator {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #070b14;
}

/* Sticky Floating Summary Bar (Step 3) */
.floating-cart-bar {
    position: sticky;
    bottom: 16px;
    z-index: 20;
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 210, 255, 0.4);
    border-radius: 14px;
    padding: 14px 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Visual Status Timeline (ticket_view.php) */
.status-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 10px 0 20px;
    padding: 0 10px;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.timeline-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0f172a;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.timeline-step.completed .timeline-icon {
    background: rgba(0, 230, 118, 0.15);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.timeline-step.active .timeline-icon {
    background: rgba(0, 210, 255, 0.2);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: 0 0 16px rgba(0, 210, 255, 0.4);
}

.timeline-step.blocked .timeline-icon {
    background: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
    color: #dc3545;
    box-shadow: 0 0 16px rgba(220, 53, 69, 0.4);
}

.timeline-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
}

.timeline-step.completed .timeline-label {
    color: #cbd5e1;
}

.timeline-step.active .timeline-label {
    color: var(--accent-blue);
    font-weight: 700;
}

/* Featured Credit Pack */
.pack-card-featured {
    border: 2px solid rgba(0, 210, 255, 0.5) !important;
    background: linear-gradient(180deg, rgba(0, 210, 255, 0.09) 0%, rgba(18, 25, 41, 0.85) 100%) !important;
    transform: translateY(-4px);
}

.how-step-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 20px;
    height: 100%;
    position: relative;
    transition: all 0.25s ease;
}

.how-step-card:hover {
    border-color: rgba(0, 210, 255, 0.35);
    transform: translateY(-3px);
}

.how-step-number {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #070b14;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

/* Chat & Messages */
.message-bubble {
    padding: 12px 18px;
    border-radius: 16px;
    max-width: 82%;
    margin-bottom: 12px;
}

.message-client {
    background: rgba(0, 210, 255, 0.14);
    border: 1px solid rgba(0, 210, 255, 0.3);
    align-self: flex-start;
}

.message-tech {
    background: rgba(146, 84, 222, 0.16);
    border: 1px solid rgba(146, 84, 222, 0.35);
    margin-left: auto;
    align-self: flex-end;
}

.message-internal {
    background: rgba(255, 171, 0, 0.14);
    border: 1px dashed rgba(255, 171, 0, 0.45);
    width: 100%;
    max-width: 100%;
}

/* Status Spinners & Animations */
.spin {
    animation: spin 2s linear infinite;
    display: inline-block;
}

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

/* Custom Dropzone */
.file-dropzone {
    border: 2px dashed rgba(0, 210, 255, 0.4);
    border-radius: 16px;
    padding: 36px 20px;
    text-align: center;
    background: rgba(0, 210, 255, 0.03);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-dropzone:hover, .file-dropzone.dragover {
    background: rgba(0, 210, 255, 0.08);
    border-color: var(--accent-blue);
}

.file-dropzone.has-file {
    background: rgba(0, 230, 118, 0.07);
    border-color: var(--accent-green);
    border-style: solid;
}

/* Stat Cards */
.stat-card {
    padding: 20px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 210, 255, 0.25);
}

.stat-icon {
    font-size: 2.2rem;
    opacity: 0.85;
}

/* Table styling */
.table-custom {
    --bs-table-bg: transparent !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-striped-bg: transparent !important;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.05) !important;
    --bs-table-color: var(--text-primary) !important;
    color: var(--text-primary) !important;
}

.table-custom th {
    background: rgba(15, 23, 42, 0.9) !important;
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.table-custom tr,
.table-custom td {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    vertical-align: middle;
}
