/* Keryk UI Standards - Custom CSS */

/* Upload Areas */
.upload-area {
    border: 2px dashed #007bff;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: #0056b3;
    background-color: #e3f2fd;
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #28a745;
    background-color: #d4edda;
    border-style: solid;
}

/* Card Enhancements */
.summary-card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.border-left-primary {
    border-left-color: #007bff !important;
}

.border-left-success {
    border-left-color: #28a745 !important;
}

.border-left-warning {
    border-left-color: #ffc107 !important;
}

.border-left-danger {
    border-left-color: #dc3545 !important;
}

/* Interactive Cards */
.customer-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.customer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Classification Badges */
.badge-pre-due {
    background-color: #17a2b8;
}

.badge-current {
    background-color: #28a745;
}

.badge-30-days {
    background-color: #ffc107;
    color: #212529;
}

.badge-60-days {
    background-color: #fd7e14;
}

.badge-90-days {
    background-color: #dc3545;
}

/* Custom Button Styles */
.btn-outline-orange {
    color: #fd7e14;
    border-color: #fd7e14;
}

.btn-outline-orange:hover {
    color: #fff;
    background-color: #fd7e14;
    border-color: #fd7e14;
}

/* Table Styles */
.table th {
    font-weight: 600;
    color: #495057;
    border-top: none;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.customer-row.selected {
    background-color: rgba(0, 123, 255, 0.1) !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

.pulse {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    margin: 10px;
}

/* Loading States */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Progress Bars */
.progress-bar {
    transition: width 0.3s ease;
}

/* Modal Enhancements */
.modal-header {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1055;
}

.toast {
    min-width: 300px;
}

/* Email Preview Styles */
.email-preview {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
}

.email-preview h6 {
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

/* Status Indicators */
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-processing {
    background-color: #ffc107;
    animation: pulse 1s infinite;
}

.status-complete {
    background-color: #28a745;
}

.status-error {
    background-color: #dc3545;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .summary-card {
        margin-bottom: 1rem;
    }
    
    .upload-area {
        padding: 20px;
        min-height: 100px;
    }
    
    .btn-block {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles would go here */
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .summary-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}