/* year-month-converter styles */

.analyzer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-title {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title h1 {
    color: #1e40af;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-title p {
    color: #6b7280;
    font-size: 1.1rem;
}

/* Upload */
.upload-section {
    margin-bottom: 2rem;
}

.upload-section h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.upload-area.drag-over {
    border-color: #3b82f6;
    background: #dbeafe;
    transform: scale(1.02);
}

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

.upload-text {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 1.5rem;
}

.upload-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.file-input {
    display: none;
}

/* Data Preview */
.data-preview-section {
    margin-bottom: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    background: #f8fafc;
    transition: background 0.2s;
}

.preview-header:hover {
    background: #f1f5f9;
}

.preview-header h3 {
    color: #1e40af;
    margin: 0;
    font-size: 1.2rem;
}

.toggle-icon {
    font-size: 1rem;
    color: #6b7280;
    transition: transform 0.3s;
}

.toggle-icon.open {
    transform: rotate(90deg);
}

.preview-content {
    padding: 1rem 1.5rem;
    max-height: 400px;
    overflow: auto;
}

.excel-preview-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.excel-preview-table th,
.excel-preview-table td {
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    text-align: left;
    white-space: nowrap;
}

.excel-preview-table th {
    background: #1e40af;
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.excel-preview-table tr:nth-child(even) {
    background: #f8fafc;
}

.excel-preview-table tr:hover {
    background: #eff6ff;
}

/* Settings */
.settings-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.settings-section h3 {
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.section-desc {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Format Guide */
.format-guide {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.format-guide h4 {
    color: #92400e;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.format-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.format-tag {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #fcd34d;
}

/* Column Checkboxes */
.column-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.column-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.column-checkbox-item:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.column-checkbox-item.selected {
    border-color: #3b82f6;
    background: #dbeafe;
}

.column-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.column-checkbox-item label {
    cursor: pointer;
    font-weight: 500;
    color: #334155;
    font-size: 0.95rem;
    user-select: none;
}

/* Analyze Button */
.analyze-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.analyze-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

/* Results */
.results-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.results-section h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.result-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-card {
    flex: 1;
    min-width: 150px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.summary-card .label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.summary-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
}

.result-table-wrapper {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.result-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.result-table-wrapper th,
.result-table-wrapper td {
    border: 1px solid #e2e8f0;
    padding: 0.6rem 0.75rem;
    text-align: center;
}

.result-table-wrapper th {
    background: #1e40af;
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.result-table-wrapper tr:nth-child(even) {
    background: #f8fafc;
}

.result-table-wrapper tr:hover {
    background: #eff6ff;
}

.cell-original {
    color: #6b7280;
    font-size: 0.85rem;
}

.cell-converted {
    color: #1e40af;
    font-weight: 600;
}

.cell-error {
    color: #dc2626;
    font-weight: 500;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.download-button {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 1rem 2rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 9900;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

.notification.success {
    background: #10b981;
}

.notification.error {
    background: #ef4444;
}

.notification.info {
    background: #3b82f6;
}

/* Responsive */
@media (max-width: 768px) {
    .analyzer-container {
        padding: 1rem;
    }

    .page-title h1 {
        font-size: 1.75rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .column-checkboxes {
        grid-template-columns: 1fr;
    }

    .result-summary {
        flex-direction: column;
    }

    .format-examples {
        gap: 0.35rem;
    }

    .format-tag {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
}
