/* ========================================
   OPERATIONS MODULE STYLES
   ======================================== */

/* Operation Items */
.operation-item {
    background: #1a1a2e;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #00ff88;
    cursor: pointer;
    transition: all 0.3s ease;
}

.operation-item:hover {
    background: #252540;
    border-color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

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

.operation-header h3 {
    margin: 0;
    font-size: 16px;
    color: #00ff88;
}

.operation-status {
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-preparing {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

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

.status-completed {
    background: rgba(128, 128, 128, 0.2);
    color: #888;
    border: 1px solid #888;
}

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

.operation-info {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #888;
}

/* My Operations List */
.my-operation-item {
    background: #1a1a2e;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 5px;
    border: 1px solid #444;
    cursor: pointer;
    transition: all 0.2s ease;
}

.my-operation-item:hover {
    background: #252540;
    border-color: #00ff88;
}

/* Squads */
.squad-card {
    margin-bottom: 15px;
}

.squad-members-list {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.squad-member {
    padding: 8px;
    border-bottom: 1px solid #333;
}

.squad-member:last-child {
    border-bottom: none;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

/* Operation Details Grid */
.operation-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 5px;
}

.operation-details-grid strong {
    color: #00ff88;
}

/* Modal Improvements */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #16213e;
    border-radius: 10px;
    border: 2px solid #00ff88;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #00ff88;
}

.modal-header h2 {
    margin: 0;
    color: #00ff88;
    font-size: 20px;
}

.modal-close {
    font-size: 28px;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #00ff88;
}

.modal-body {
    padding: 20px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #00ff88;
    font-size: 14px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: #1a1a2e;
    border: 1px solid #00ff88;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

/* Button Styles */
.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00cc6a, #00ff88);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.btn-secondary {
    background: #1a1a2e;
    color: #00ff88;
    border: 1px solid #00ff88;
}

.btn-secondary:hover {
    background: #252540;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #218838);
    color: #fff;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #28a745);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.5);
}

/* Scrollbar Styling */
.operations-scroll-container::-webkit-scrollbar,
.squad-members-list::-webkit-scrollbar {
    width: 8px;
}

.operations-scroll-container::-webkit-scrollbar-track,
.squad-members-list::-webkit-scrollbar-track {
    background: #1a1a2e;
    border-radius: 4px;
}

.operations-scroll-container::-webkit-scrollbar-thumb,
.squad-members-list::-webkit-scrollbar-thumb {
    background: #00ff88;
    border-radius: 4px;
}

.operations-scroll-container::-webkit-scrollbar-thumb:hover,
.squad-members-list::-webkit-scrollbar-thumb:hover {
    background: #00cc6a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .operation-details-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .operation-actions {
        flex-direction: column !important;
    }

    .operation-actions button {
        width: 100% !important;
    }
}
