/* ==========================================================================
   Layout general GTIC / Twilight
   ========================================================================== */

.gtic-header {
    background: radial-gradient(circle at top left, #0f172a, #020617);
    color: #facc15;
    padding: 10px 16px;
    border-bottom: 1px solid #111827;
}

.gtic-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.gtic-logo-link {
    text-decoration: none;
}

.gtic-logo {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(250, 204, 21, 0.6);
    background: linear-gradient(120deg, #020617, #0f172a);
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.25);
}

.gtic-main {
    max-width: 1100px;
    margin: 18px auto 40px;
    padding: 0 10px;
}

/* ==========================================================================
   Alerte de localisation
   ========================================================================== */

.location-warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    color: #92400e;
    padding: 8px 10px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

/* ==========================================================================
   Carte Wallet - Style Twilight
   ========================================================================== */

.wallet-card {
    background: radial-gradient(circle at top right, #0f172a, #020617);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 14px 30px rgba(15,23,42,0.7);
    margin-bottom: 22px;
    color: #e5e7eb;
    position: relative;
    overflow: hidden;
}

.wallet-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top left,
        rgba(250, 204, 21, 0.18),
        transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.wallet-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #e5e7eb;
}

.wallet-header span {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 500;
}

.wallet-actions {
    display: flex;
    gap: 8px;
}

.wallet-balance {
    position: relative;
    margin-top: 12px;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-align: left;
}

.wallet-balance span {
    font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.icon-button {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(250, 204, 21, 0.5);
    background: #020617;
    color: #facc15;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.icon-button:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.4);
    background: #030712;
}

.icon-button:active {
    transform: translateY(0) scale(0.97);
}

/* ==========================================================================
   Grille d'icônes du dashboard client
   ========================================================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 4px;
}

.dashboard-item {
    text-align: center;
    cursor: pointer;
    padding: 10px 4px;
    border-radius: 14px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    background: radial-gradient(circle at top, #ffffff, #f9fafb);
    box-shadow: 0 3px 10px rgba(15,23,42,0.08);
}

.dashboard-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(15,23,42,0.18);
    background: radial-gradient(circle at top, #fefce8, #f9fafb);
}

.dashboard-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: radial-gradient(circle, #111827, #020617);
    color: #facc15;
    box-shadow: 0 0 0 2px rgba(15,23,42,1), 0 0 16px rgba(15,23,42,0.6);
}

.dashboard-label {
    font-size: 0.86rem;
    font-weight: 500;
    color: #111827;
}

/* Responsive */
@media (max-width: 800px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .wallet-card {
        padding: 14px 14px;
    }
}

/* ==========================================================================
   Overlay de localisation obligatoire
   ========================================================================== */

.location-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(2,6,23,0.98));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 16px;
}

.location-overlay-content {
    max-width: 380px;
    background: #020617;
    border-radius: 18px;
    padding: 18px 18px 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.7);
    border: 1px solid rgba(250, 204, 21, 0.5);
    color: #e5e7eb;
    text-align: center;
}

.location-overlay-content h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #facc15;
}

.location-overlay-content p {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.location-overlay-note {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 8px;
}

/* location-warning existe déjà, on s'en sert en complément */
/* ==========================================================================
   Table commandes + status badges
   ========================================================================== */

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-gtic {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.table-gtic th,
.table-gtic td {
    padding: 8px 6px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.table-gtic th {
    text-align: left;
    font-weight: 600;
    color: #4b5563;
    background-color: #f9fafb;
}

.table-gtic tr:nth-child(even) td {
    background-color: #f9fafb;
}

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

/* Badges de statut */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

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

.status-badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge-info {
    background-color: #eef2ff;
    color: #3730a3;
}

.status-badge-danger {
    background-color: #fee2e2;
    color: #b91c1c;
}

.status-badge-default {
    background-color: #e5e7eb;
    color: #374151;
}

/* Petit bouton */
.btn.btn-sm {
    padding: 4px 8px;
    font-size: 0.78rem;
}
/* Modal notation technicien */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-box {
    background: #111827;
    color: #f9fafb;
    border-radius: 12px;
    padding: 16px 18px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.modal-header h3 {
    margin: 0 0 10px;
}

.modal-body {
    font-size: 0.9rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.hidden {
    display: none;
}

/* Stars */
.stars-container {
    direction: rtl;
    unicode-bidi: bidi-override;
}

.stars-container input[type="radio"] {
    display: none;
}

.stars-container label {
    font-size: 1.5rem;
    cursor: pointer;
    color: #4b5563;
    padding: 0 2px;
}

.stars-container input[type="radio"]:checked ~ label,
.stars-container label:hover,
.stars-container label:hover ~ label {
    color: #fbbf24;
}
