/* FILE: css/programmer.css - PROGRAMMER CONTROL PAGE STYLES */

.warning-banner {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(231, 76, 60, 0.3);
}

.programmer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.programmer-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

    .programmer-section h2 {
        color: #667eea;
        margin-bottom: 20px;
        font-size: 1.8em;
        border-bottom: 3px solid #667eea;
        padding-bottom: 10px;
    }

.items-list {
    max-height: 70vh;
    overflow-y: auto;
}

/* Player/Game Cards */
.item-card {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

    .item-card:hover {
        background: #e9ecef;
        transform: translateX(5px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .item-card.player-card {
        border-left-color: #3498db;
    }

    .item-card.game-card {
        border-left-color: #e67e22;
    }

.item-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.item-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
}

.item-badge {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 600;
}

.item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.95em;
    color: #555;
}

.item-detail {
    display: flex;
    flex-direction: column;
}

.item-detail-label {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-bottom: 2px;
}

.item-detail-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
}

.modal-small {
    max-width: 450px;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-header h2 {
        margin: 0;
        color: white;
        font-size: 1.8em;
    }

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

    .close-btn:hover {
        background: rgba(255,255,255,0.2);
        transform: rotate(90deg);
    }

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.save-btn {
    background: #27ae60;
}

    .save-btn:hover {
        background: #229954;
    }

.cancel-btn {
    background: #95a5a6;
}

    .cancel-btn:hover {
        background: #7f8c8d;
    }

.warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    color: #856404;
}

    .warning-box strong {
        color: #e67e22;
    }

/* Scrollbar Styling */
.items-list::-webkit-scrollbar {
    width: 8px;
}

.items-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.items-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

    .items-list::-webkit-scrollbar-thumb:hover {
        background: #5568d3;
    }

/* Responsive */
@media (max-width: 1024px) {
    .programmer-grid {
        grid-template-columns: 1fr;
    }

    .items-list {
        max-height: 50vh;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-header h2 {
        font-size: 1.4em;
    }

    .item-details {
        flex-direction: column;
        gap: 10px;
    }
}


/**/
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

body.modal-open {
    overflow: hidden;
}
