/* Custom styles for DSR Processor */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border-radius: 10px;
    border: none;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* File upload styling */
.form-control[type="file"] {
    cursor: pointer;
}

.form-control[type="file"]::-webkit-file-upload-button {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
}

.form-control[type="file"]::-webkit-file-upload-button:hover {
    background: #0b5ed7;
}

/* JSON textarea styling */
#json_data {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

#json_data:focus {
    background-color: white;
    border-style: solid;
}

/* Loading animation */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Print styles */
@media print {
    .container-fluid {
        max-width: none !important;
        margin: 0;
        padding: 0;
    }
    
    header,
    .btn,
    .alert {
        display: none !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    
    .excel-table {
        font-size: 9px;
    }
    
    .excel-table th,
    .excel-table td {
        padding: 2px 4px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .excel-table {
        font-size: 10px;
    }
    
    .excel-table th,
    .excel-table td {
        padding: 3px 5px;
    }
}

/* Excel-like table enhancements */
.excel-table tbody tr:hover {
    background-color: #f5f5f5;
}

.excel-table .number {
    font-feature-settings: 'tnum';
}

/* Success/Error states */
.is-valid {
    border-color: #28a745;
}

.is-invalid {
    border-color: #dc3545;
}

/* Custom scrollbar for JSON textarea */
#json_data::-webkit-scrollbar {
    width: 8px;
}

#json_data::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#json_data::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#json_data::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 