/* GBA Calculator Step 1 Styles */

/* File Upload Section */
.gba-file-upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .gba-file-upload-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.gba-upload-container {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.gba-upload-container:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.gba-upload-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d2327;
}

.gba-upload-title i {
    color: #007cba;
    font-size: 1.2rem;
}

.gba-upload-title .required {
    color: #d63384;
    font-weight: bold;
}

/* Dropzone Styling */
.gba-dropzone {
    border: 2px dashed #c3c4c7;
    border-radius: 6px;
    background: #f6f7f7;
    text-align: center;
    padding: 2rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gba-dropzone:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.gba-dropzone.dz-drag-hover {
    border-color: #00a32a;
    background: #f0fff4;
}

.dz-message {
    pointer-events: none;
}

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

.upload-icon i {
    font-size: 2.5rem;
    color: #8c8f94;
    transition: color 0.3s ease;
}

.gba-dropzone:hover .upload-icon i {
    color: #007cba;
}

.dz-message h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: #1d2327;
}

.dz-message .note {
    font-size: 0.875rem;
    color: #646970;
    margin: 0.25rem 0;
}

.dz-message .size-limit {
    font-size: 0.75rem;
    color: #8c8f94;
    margin: 0;
}

/* Upload Progress */
.upload-progress {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e1e5e9;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba, #00a32a);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: #646970;
    text-align: center;
}

/* Upload Status */
.upload-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    display: none;
}

.upload-status.success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
    display: block;
}

.upload-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c2c7;
    display: block;
}

.upload-status.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffecb5;
    display: block;
}

/* Template Download */
.template-download-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e5e9;
}

.gba-download-template {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #007cba;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.gba-download-template:hover {
    color: #005a87;
    text-decoration: underline;
}

.template-note {
    font-size: 0.75rem;
    color: #646970;
    margin: 0.5rem 0 0 0;
}

/* Options Section */
.gba-options-section {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.gba-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d2327;
}

.gba-section-title i {
    color: #007cba;
    font-size: 1.2rem;
}

.gba-section-title .required {
    color: #d63384;
    font-weight: bold;
}

.section-description {
    font-size: 0.875rem;
    color: #646970;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

/* Radio Group */
.gba-radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gba-radio-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.gba-radio-option:hover {
    border-color: #007cba;
    background: #f8f9fa;
}

.gba-radio-option input[type="radio"] {
    margin: 0;
    opacity: 0;
    position: absolute;
}

.radio-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #c3c4c7;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.gba-radio-option input[type="radio"]:checked + .radio-content + .radio-indicator {
    border-color: #007cba;
    background: #007cba;
}

.gba-radio-option input[type="radio"]:checked + .radio-content + .radio-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.radio-content {
    flex: 1;
}

.radio-title {
    display: block;
    font-weight: 500;
    color: #1d2327;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.radio-description {
    display: block;
    font-size: 0.875rem;
    color: #646970;
    line-height: 1.4;
}

/* Input Group */
.input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.gba-input-field {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.gba-input-field:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.input-suffix {
    font-size: 0.875rem;
    color: #646970;
    font-weight: 500;
}

/* Conditional Section */
.gba-conditional-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e5e9;
}

.subsection-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1d2327;
    margin: 0 0 1rem 0;
}

/* Validation */
.validation-summary {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.validation-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #721c24;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.validation-message i {
    color: #dc3545;
}

.validation-list {
    margin: 0;
    padding-left: 1.5rem;
    color: #721c24;
}

.validation-list li {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

/* Modal Styles */
.gba-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.gba-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.gba-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
}

.gba-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d2327;
}

.modal-title i {
    color: #007cba;
}

.gba-modal-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #646970;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.gba-modal-close:hover {
    color: #1d2327;
}

.gba-modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.mapping-description {
    font-size: 0.875rem;
    color: #646970;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Column Mapping */
.mapping-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .mapping-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mapping-arrows {
        display: none;
    }
}

.mapping-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: #1d2327;
}

.column-list {
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    max-height: 400px;
    overflow-y: auto;
}

.column-item {
    padding: 0.75rem;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
    font-size: 0.875rem;
    color: #1d2327;
}

.column-item:last-child {
    border-bottom: none;
}

.column-name {
    font-weight: 500;
}

.mapping-arrows {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007cba;
    font-size: 1.5rem;
}

.column-mapping-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mapping-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mapping-label {
    min-width: 150px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1d2327;
}

.mapping-label .required {
    color: #d63384;
    font-weight: bold;
}

.mapping-select {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.mapping-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

/* Preview Table */
.mapping-preview {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e5e9;
}

.mapping-preview h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: #1d2327;
}

.preview-table-container {
    overflow-x: auto;
}

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

.preview-table th,
.preview-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border: 1px solid #e1e5e9;
}

.preview-table th {
    background: #f8f9fa;
    font-weight: 500;
    color: #1d2327;
}

.preview-table td {
    color: #646970;
}

/* Modal Footer */
.gba-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e1e5e9;
    background: #f8f9fa;
}

/* Button Styles */
.gba-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.gba-button-primary {
    background: #007cba;
    color: #fff;
}

.gba-button-primary:hover:not(:disabled) {
    background: #005a87;
    color: #fff;
    text-decoration: none;
}

.gba-button-secondary {
    background: #6c757d;
    color: #fff;
}

.gba-button-secondary:hover:not(:disabled) {
    background: #5a6268;
    color: #fff;
    text-decoration: none;
}

.gba-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gba-button i {
    font-size: 1rem;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Body Modal Open */
body.modal-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 480px) {
    .gba-modal {
        padding: 1rem;
    }
    
    .gba-modal-header,
    .gba-modal-body,
    .gba-modal-footer {
        padding: 1rem;
    }
    
    .mapping-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .mapping-label {
        min-width: auto;
    }
} 

/* Column Mapping Notification Styles */
.gba-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gba-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mapping-notification {
    max-width: 500px;
    width: 90%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.gba-modal-overlay.active .mapping-notification {
    transform: scale(1);
}

.mapping-notification .modal-header {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
}

.mapping-notification .modal-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mapping-notification .modal-title i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.mapping-notification .modal-body {
    padding: 2rem;
}

.notification-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.notification-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon i {
    font-size: 1.5rem;
    color: #007cba;
}

.notification-text {
    flex: 1;
}

.notification-text p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
    color: #1d2327;
}

.notification-text p:last-child {
    margin-bottom: 0;
}

.notification-text strong {
    color: #007cba;
    font-weight: 600;
}

.notification-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: #646970;
}

.notification-text li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.notification-text li:last-child {
    margin-bottom: 0;
}

.mapping-notification .modal-footer {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0 0 8px 8px;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.mapping-notification .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.mapping-notification .btn-primary {
    background: #007cba;
    color: white;
}

.mapping-notification .btn-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.mapping-notification .btn-secondary {
    background: #6c757d;
    color: white;
}

.mapping-notification .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.mapping-notification .btn i {
    font-size: 0.875rem;
}

/* Responsive notification */
@media (max-width: 768px) {
    .mapping-notification {
        max-width: 95%;
        width: 95%;
    }
    
    .notification-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .notification-icon {
        align-self: center;
    }
    
    .mapping-notification .modal-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .mapping-notification .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mapping-notification .modal-body {
        padding: 1.5rem;
    }
    
    .mapping-notification .modal-footer {
        padding: 1.5rem;
    }
} 