/* 
 * Batch Management CSS
 * Styles for batch creation, listing, and workflow
 */

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(145deg, rgba(14, 17, 25, 0.98), rgba(7, 9, 14, 0.98));
    border: 1px solid rgba(245, 203, 120, 0.3);
    border-radius: 12px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(245, 203, 120, 0.2);
}

.modal-header h2 {
    margin: 0;
    color: #f3c86c;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(245, 203, 120, 0.6);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #f3c86c;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(245, 203, 120, 0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(214, 203, 183, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background: rgba(10, 12, 18, 0.8);
    border: 1px solid rgba(245, 203, 120, 0.3);
    border-radius: 6px;
    color: #f7e2b6;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #f3c86c;
    box-shadow: 0 0 0 3px rgba(243, 200, 108, 0.1);
}

.form-control::placeholder {
    color: rgba(245, 203, 120, 0.4);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

.beer-name-display {
    padding: 10px 12px;
    background: rgba(245, 203, 120, 0.1);
    border-radius: 6px;
    color: #f3c86c;
    font-weight: 600;
}

/* Batch Preview */
.batch-preview {
    margin-top: 24px;
    padding: 16px;
    background: rgba(245, 203, 120, 0.05);
    border: 1px solid rgba(245, 203, 120, 0.2);
    border-radius: 8px;
}

.batch-preview h3 {
    margin: 0 0 12px 0;
    color: #f3c86c;
    font-size: 1.1rem;
}

.preview-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-item {
    display: flex;
    justify-content: space-between;
}

.preview-label {
    color: rgba(214, 203, 183, 0.8);
    font-size: 0.9rem;
}

.preview-value {
    color: #f7e2b6;
    font-weight: 600;
}

/* Batch Cards */
.batch-card {
    background: linear-gradient(145deg, rgba(14, 17, 25, 0.98), rgba(7, 9, 14, 0.98));
    border: 1px solid rgba(245, 203, 120, 0.15);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.batch-card:hover {
    border-color: rgba(245, 203, 120, 0.4);
    box-shadow: 0 4px 12px rgba(243, 200, 108, 0.15);
}

.batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(245, 203, 120, 0.1);
}

.batch-code-large {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f3c86c;
    font-family: 'Courier New', monospace;
}

.batch-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    letter-spacing: 0.05em;
}

.batch-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.batch-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.batch-label {
    font-size: 0.75rem;
    color: rgba(214, 203, 183, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.batch-value {
    font-size: 0.95rem;
    color: #f7e2b6;
    font-weight: 500;
}

.batch-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(214, 203, 183, 0.6);
}

.empty-state p {
    margin: 0;
    font-size: 1.1rem;
}

/* Success Toast */
.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(145deg, rgba(40, 167, 69, 0.95), rgba(25, 135, 84, 0.95));
    border: 1px solid rgba(40, 167, 69, 0.5);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease;
    z-index: 10000;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-content strong {
    display: block;
    color: white;
    font-size: 1rem;
    margin-bottom: 4px;
}

.toast-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, #f3c86c, #d4a952);
    color: #0a0c12;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f5d485, #ddb560);
    box-shadow: 0 2px 8px rgba(243, 200, 108, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(245, 203, 120, 0.1);
    border: 1px solid rgba(245, 203, 120, 0.3);
    color: #f7e2b6;
}

.btn-secondary:hover {
    background: rgba(245, 203, 120, 0.2);
    border-color: rgba(245, 203, 120, 0.5);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
    }
    
    .batch-info {
        grid-template-columns: 1fr;
    }
    
    .batch-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
