/* Course Batch Manager - Frontend Styles */

/* Batch Grid */
.cbm-batch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

/* Batch Card */
.cbm-batch-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cbm-batch-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Badge */
.cbm-batch-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #dc2626;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Header */
.cbm-batch-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #1e3a8a;
}

.cbm-course-name {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.3;
}

.cbm-batch-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Details */
.cbm-batch-details {
    margin-bottom: 20px;
}

.cbm-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.cbm-detail-item:last-child {
    border-bottom: none;
}

.cbm-detail-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.cbm-detail-value {
    color: #6b7280;
    font-size: 14px;
    text-align: right;
}

/* Status */
.cbm-status-open {
    color: #16a34a !important;
    font-weight: 600 !important;
}

.cbm-status-closed {
    color: #dc2626 !important;
    font-weight: 600 !important;
}

.cbm-status-full {
    color: #ea580c !important;
    font-weight: 600 !important;
}

.cbm-status-upcoming {
    color: #2563eb !important;
    font-weight: 600 !important;
}

/* Actions */
.cbm-batch-actions {
    display: flex;
    gap: 10px;
}

.cbm-view-details {
    flex: 1;
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cbm-view-details:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* No Batches Message */
.cbm-no-batches {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 16px;
}

/* Modal/Popup Styles */
.cbm-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}

.cbm-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cbm-modal-header {
    background: #1e3a8a;
    color: white;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cbm-modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.cbm-close {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}

.cbm-close:hover {
    transform: scale(1.2);
}

.cbm-modal-body {
    padding: 30px;
}

.cbm-modal-section {
    margin-bottom: 25px;
}

.cbm-modal-section h3 {
    color: #1e3a8a;
    margin: 0 0 15px 0;
    font-size: 18px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
}

.cbm-modal-section p {
    margin: 8px 0;
    color: #374151;
    line-height: 1.6;
}

.cbm-modal-section strong {
    color: #1e3a8a;
    display: inline-block;
    min-width: 150px;
}

/* Responsive */
@media (max-width: 768px) {
    .cbm-batch-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cbm-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .cbm-modal-header,
    .cbm-modal-body {
        padding: 20px;
    }
    
    .cbm-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .cbm-detail-value {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .cbm-batch-card {
        padding: 20px;
    }
    
    .cbm-course-name {
        font-size: 18px;
    }
    
    .cbm-modal-header h2 {
        font-size: 20px;
    }
}
