/* Premium Bonds Checker - Specific Styles */

/* Upload Area */
.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 150ms ease;
    background: var(--gray-50);
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.upload-area.dragover {
    border-color: var(--primary);
    background: var(--primary-subtle);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 30px;
    background: var(--gray-200);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    width: 0%;
    transition: width 300ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Results Styling */
.month-result {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.month-result h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-step {
    padding: 0.75rem;
    background: var(--gray-50);
    border-left: 3px solid var(--gray-300);
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

.filter-step.active {
    background: var(--primary-subtle);
    border-left-color: var(--primary);
}

.filter-step.match {
    background: #f0fdf4;
    border-left-color: var(--success);
    font-weight: 600;
}

/* Winning Bond Highlight */
.winning-bond-row {
    background: #fffbeb !important;
    font-weight: 600;
}

.winning-bond-row td:first-child {
    color: var(--success);
}

/* Step Numbering */
.container h2::before {
    content: attr(data-step);
    display: inline-block;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    margin-right: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.success {
    background: var(--success);
    color: white;
}

.status-badge.info {
    background: var(--info);
    color: white;
}

.status-badge.warning {
    background: var(--warning);
    color: white;
}

/* Collapsible Sections */
.collapsible-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.collapsible-header::after {
    content: '▼';
    font-size: 0.75rem;
    transition: transform 150ms ease;
}

.collapsible-header.collapsed::after {
    transform: rotate(-90deg);
}

.collapsible-content {
    overflow: hidden;
    transition: max-height 300ms ease;
}

.collapsible-content.collapsed {
    max-height: 0;
}

/* Error Messages */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left-width: 4px;
    border-left-color: var(--error);
    padding: 1rem;
    border-radius: var(--border-radius);
    color: #991b1b;
    margin: 1rem 0;
}

/* Loading Spinner */
.spinner-inline {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 600ms linear infinite;
    margin-right: 0.5rem;
}

/* Form Improvements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.form-group .input {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .month-result {
        padding: 1rem;
    }
    
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .upload-area,
    .btn,
    #checkingProgress,
    nav,
    footer,
    .support-btn {
        display: none;
    }
    
    .container {
        page-break-inside: avoid;
    }
}
