/* ===== CONSOLE GLADOS ===== */
.glados-console {
    background: #000;
    border: 2px solid var(--aperture-orange);
    border-radius: 10px;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

.console-header {
    background: var(--aperture-grey);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--aperture-orange);
}

.console-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #666;
}

.status-dot.active {
    background: #0f0;
    box-shadow: 0 0 10px #0f0;
    animation: pulse 2s infinite;
}

.console-output {
    height: 300px;
    padding: 15px;
    overflow-y: auto;
    background: #000;
    color: #0f0;
    line-height: 1.4;
}

.console-input-container {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #111;
    border-top: 1px solid var(--aperture-light-grey);
}

.prompt {
    color: var(--aperture-orange);
    margin-right: 10px;
}

.console-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #0f0;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.glados-text {
    color: var(--aperture-orange);
    font-weight: bold;
}

/* ===== CHAMBRES DE TEST ===== */
.chambers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.chamber-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--aperture-light-grey);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.chamber-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.2);
    border-color: var(--aperture-blue);
}

.chamber-header {
    padding: 15px;
    background: var(--aperture-grey);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chamber-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.chamber-status.active {
    background: rgba(0, 255, 0, 0.2);
    color: #0f0;
    border: 1px solid #0f0;
}

.chamber-preview {
    height: 150px;
    background: #000;
    position: relative;
    overflow: hidden;
}

.chamber-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chamber-info {
    padding: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.difficulty-stars {
    color: var(--aperture-orange);
}

.success-rate {
    color: var(--aperture-blue);
    font-weight: bold;
}

.chamber-btn {
    width: 100%;
    padding: 12px;
    background: var(--aperture-orange);
    color: #000;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chamber-btn:hover {
    background: var(--aperture-blue);
    color: #fff;
}

/* ===== SURVEILLANCE ===== */
.surveillance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.camera-feed {
    background: #000;
    border: 2px solid var(--aperture-blue);
    border-radius: 8px;
    overflow: hidden;
}

.feed-header {
    background: var(--aperture-grey);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.recording-indicator {
    color: #f00;
    font-weight: bold;
    animation: blink 1s infinite;
}

.feed-content {
    height: 200px;
    position: relative;
    background: #111;
}

.static-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    animation: static 0.1s infinite;
}

.feed-data {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
}

.timestamp {
    color: var(--aperture-orange);
    margin-bottom: 5px;
}

/* ===== PLANIFICATEUR ===== */
.mission-planner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.calendar-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--aperture-light-grey);
    border-radius: 10px;
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.nav-btn {
    background: var(--aperture-orange);
    color: #000;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--aperture-blue);
    color: #fff;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.calendar-day:hover {
    background: rgba(255, 107, 53, 0.2);
}

.calendar-day.has-mission::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background: var(--aperture-orange);
    border-radius: 50%;
}

.mission-details {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--aperture-light-grey);
    border-radius: 10px;
    padding: 20px;
}

.mission-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-left: 4px solid var(--aperture-blue);
    border-radius: 5px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.mission-item:hover {
    transform: translateX(5px);
    background: rgba(0, 0, 0, 0.6);
}

.mission-item.priority-high {
    border-left-color: #f00;
}

.mission-time {
    font-family: 'Courier New', monospace;
    color: var(--aperture-orange);
    font-weight: bold;
    min-width: 60px;
}

.mission-content {
    flex: 1;
}

.mission-content h5 {
    margin: 0 0 5px 0;
    color: var(--aperture-white);
}

.mission-content p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.7;
}

.mission-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.mission-status.pending {
    background: rgba(255, 107, 53, 0.2);
    color: var(--aperture-orange);
    border: 1px solid var(--aperture-orange);
}

.add-mission-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--aperture-blue);
    border: 2px dashed var(--aperture-blue);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.add-mission-btn:hover {
    background: rgba(78, 205, 196, 0.1);
}

/* ===== ANIMATIONS SUPPLÉMENTAIRES ===== */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes static {
    0% { transform: translateY(0); }
    100% { transform: translateY(2px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .mission-planner {
        grid-template-columns: 1fr;
    }
    
    .chambers-grid {
        grid-template-columns: 1fr;
    }
    
    .surveillance-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== STYLES POUR LA MODAL ===== */
.mission-modal input:focus,
.mission-modal textarea:focus,
.mission-modal select:focus {
    outline: none;
    border-color: var(--aperture-orange);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.mission-modal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ===== STYLES POUR LES MESSAGES VIDES ===== */
.no-missions {
    text-align: center;
    padding: 40px 20px;
    color: var(--aperture-light-grey);
    font-style: italic;
    border: 2px dashed var(--aperture-light-grey);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
}

/* ===== EN-TÊTE DU CALENDRIER ===== */
.calendar-day-header {
    padding: 10px 5px;
    text-align: center;
    font-size: 0.9em;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 4px;
}

/* ===== STYLES POUR LES LIGNES DE CONSOLE ===== */
.console-line {
    margin-bottom: 5px;
    line-height: 1.4;
}

.console-line.command {
    color: #fff;
}

.console-line.error {
    color: #f00;
}

.console-line.glados {
    color: #0f0;
}

/* ===== ANIMATIONS SUPPLÉMENTAIRES ===== */
@keyframes dataFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.data-stream {
    position: relative;
    overflow: hidden;
}

.data-stream::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.3), transparent);
    animation: dataFlow 2s infinite;
}
