/* Style tablette GetaC LSPD */
:root {
    --bg-primary: #0a0f1a;
    --bg-card: rgba(15, 25, 40, 0.9);
    --border-glow: rgba(59, 130, 246, 0.5);
    --btn-blue: #3b82f6;
    --orange: #f59e0b;
    --green: #10b981;
    --blue: #3b82f6;
    --pink: #ec4899;
    --yellow: #f59e0b;
    --purple: #8b5cf6;
}

body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a202c 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e2e8f0;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Bordure tablette GetaC */
.tablette-container {
    max-width: 1400px;
    margin: 2rem auto;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.8),
        inset 0 1px 0 rgba(255,255,255,0.1);
    border: 4px solid #333;
    position: relative;
    overflow: hidden;
}

.tablette-container::before {
    content: '';
    position: absolute;
    top: 20px; right: 20px; left: 20px; bottom: 20px;
    background: #0a0f1a;
    border-radius: 12px;
    z-index: 1;
}

/* Header tablette */
.tablette-header {
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
    padding: 1rem 2rem;
    position: relative;
    z-index: 2;
    border-bottom: 3px solid rgba(255,255,255,0.2);
}

.tablette-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin: 0;
}

.user-info {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

/* Sidebar gauche (menu modules) */
.sidebar {
    width: 220px;
    background: rgba(15, 25, 40, 0.95);
    backdrop-filter: blur(10px);
    border-right: 2px solid var(--border-glow);
    padding: 1.5rem 0;
    position: relative;
    z-index: 2;
}

.menu-item {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #94a3b8;
    text-decoration: none;
    border-left: 4px solid transparent;
    margin: 0.2rem 0;
    transition: all 0.3s ease;
    border-radius: 0 8px 8px 0;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(59, 130, 246, 0.2);
    color: white;
    border-left-color: var(--btn-blue);
    transform: translateX(4px);
}

/* Grille modules dashboard (6 cases) */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.module-card {
    aspect-ratio: 1;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.module-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.module-card.orange { background: linear-gradient(135deg, var(--orange), #ea580c); }
.module-card.green { background: linear-gradient(135deg, var(--green), #059669); }
.module-card.blue { background: linear-gradient(135deg, var(--blue), #1d4ed8); }
.module-card.pink { background: linear-gradient(135deg, var(--pink), #be185d); }
.module-card.yellow { background: linear-gradient(135deg, var(--yellow), #d97706); }
.module-card.purple { background: linear-gradient(135deg, var(--purple), #7c3aed); }

.module-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.module-label {
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

/* Popup connexion */
.login-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-modal {
    background: rgba(15, 25, 40, 0.98);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-glow);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.8);
    position: relative;
}

.flag-fr {
    position: absolute;
    top: -15px; left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 28px;
    background-image: url('data:image/svg+xml;base64,...');
    background-size: cover;
}

.login-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    background: rgba(31, 41, 55, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 1rem 1rem 0.5rem;
    color: white;
    font-size: 1rem;
}

.form-control:focus {
    background: rgba(31, 41, 55, 0.95);
    border-color: var(--btn-blue);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.form-control::placeholder {
    color: #64748b;
}

.login-btn {
    background: linear-gradient(135deg, var(--btn-blue), #1d4ed8);
    border: none;
    border-radius: 12px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.6);
}

/* Avatar policier */
.officer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

/* Animations */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--border-glow); }
    50% { box-shadow: 0 0 40px var(--border-glow); }
}

.tablette-container:hover {
    animation: glow 2s infinite;
}