/* EU Reporting - App Styles */

/* Header Actions */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#auth-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.user-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.tier-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.tier-badge.tier-free { background: #6c757d; color: white; }
.tier-badge.tier-pro { background: #007bff; color: white; }
.tier-badge.tier-max { background: #28a745; color: white; }
.tier-badge.tier-ultra { background: #ffc107; color: #000; }
.tier-badge.tier-dev { background: #ff0066; color: white; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-generate {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #ffcc00;
    color: #002d84;
}

.btn-primary:hover {
    background: #ffd700;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-generate {
    background: #28a745;
    color: white;
    width: 100%;
    margin-top: 1rem;
}

.btn-generate:hover {
    background: #218838;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #002d84 0%, #003399 100%);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Auth Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-form h2 {
    margin-bottom: 0.5rem;
    color: white;
    font-size: 1.75rem;
    text-align: center;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: 0.25rem;
}

.auth-form input {
    padding: 0.875rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-form input:focus {
    outline: none;
    border-color: #ffcc00;
    background: rgba(255, 255, 255, 0.15);
}

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

.auth-switch {
    text-align: center;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.auth-switch a {
    color: #ffcc00;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* How It Works */
.how-it-works {
    text-align: center;
    margin: 3rem 0;
}

.how-it-works h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #ffcc00;
    color: #002d84;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* App Section */
.app-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 20px;
    margin: 3rem 0;
}

.app-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Upload Container */
.upload-container {
    max-width: 600px;
    margin: 0 auto;
}

.dropzone {
    border: 3px dashed rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropzone:hover, .dropzone.dragover {
    border-color: #ffcc00;
    background: rgba(255, 204, 0, 0.05);
}

.dropzone svg {
    margin-bottom: 1rem;
    opacity: 0.7;
}

.dropzone-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dropzone-subtext {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* File List */
.file-list {
    margin-top: 1.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    margin: 0 1rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

.file-remove {
    background: rgba(255, 0, 0, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.file-remove:hover {
    background: rgba(255, 0, 0, 0.4);
}

/* Processing Status */
.processing-status {
    text-align: center;
    padding: 3rem 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ffcc00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Preview Area */
.preview-area {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.preview-area h4 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.preview-content {
    background: rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    border-radius: 10px;
    min-height: 300px;
    margin-bottom: 2rem;
}

.preview-watermark {
    text-align: center;
}

.preview-placeholder {
    margin-top: 2rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.preview-success {
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.preview-success p {
    margin: 1rem 0;
}

.preview-actions {
    text-align: center;
    margin-top: 1.5rem;
}

.preview-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background: rgba(0, 45, 132, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pricing-card:hover, .pricing-card.suggested {
    border-color: #ffcc00;
    transform: translateY(-5px);
}

.pricing-card.featured {
    background: rgba(255, 204, 0, 0.1);
}

.pricing-card .badge {
    background: #ffcc00;
    color: #002d84;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.pricing-card .price span {
    font-size: 1rem;
    opacity: 0.7;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.pricing-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    color: #002d84;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.toast-success { border-left: 4px solid #28a745; }
.toast.toast-error { border-left: 4px solid #dc3545; }
.toast.toast-info { border-left: 4px solid #17a2b8; }

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .user-badge {
        flex-direction: row;
        align-items: center;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .toast {
        right: 1rem;
        left: 1rem;
    }
}

/* Progress Bar Styles */
.progress-container {
    margin-top: 2rem;
    width: 100%;
    max-width: 500px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.progress-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

#progress-percent {
    font-weight: 600;
    color: #4CAF50;
}

#progress-step {
    font-style: italic;
}
