/* Oracle SVR Report Generator - Professional UI */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Oracle Background */
.oracle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/oracle_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.oracle-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.65) 0%, rgba(30, 30, 30, 0.7) 100%);
    z-index: 1;
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Oracle Logo */
.oracle-logo {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.6s ease-out;
    display: none;
    /* Hidden as requested */
}

/* Main Card */
.main-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.card-header {
    background: linear-gradient(135deg, #C74634 0%, #E85A47 100%);
    padding: 1rem 1.5rem;
    text-align: center;
    color: white;
}

.card-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 0.85rem;
    opacity: 0.95;
    font-weight: 400;
}

.card-body {
    padding: 1rem 1.5rem;
}

/* Upload Container */
.upload-container {
    margin-bottom: 1rem;
}

.upload-area {
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FAFAFA;
    position: relative;
}

.upload-area:hover {
    border-color: #C74634;
    background: #FFF5F4;
    transform: translateY(-2px);
}

.upload-area.drag-over {
    border-color: #C74634;
    background: #FFF5F4;
    border-width: 2px;
}

.upload-icon {
    width: 40px;
    height: 40px;
    color: #C74634;
    margin-bottom: 0.5rem;
}

.upload-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.upload-main {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.upload-sub {
    font-size: 0.9rem;
    color: #666;
}

.file-info {
    font-size: 0.8rem;
    color: #999;
}

#fileInput {
    display: none;
}

/* File Selected */
.file-selected {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #F0F9FF;
    border: 2px solid #3B82F6;
    border-radius: 12px;
    animation: slideIn 0.3s ease-out;
}

.file-icon {
    width: 40px;
    height: 40px;
    color: #3B82F6;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #1E40AF;
    margin-bottom: 0.15rem;
    word-break: break-word;
    font-size: 0.95rem;
}

.file-size {
    font-size: 0.8rem;
    color: #64748B;
}

.remove-file {
    background: #EF4444;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.remove-file:hover {
    background: #DC2626;
    transform: scale(1.1);
}

.remove-file svg {
    width: 16px;
    height: 16px;
    color: white;
}

/* Generate Button */
.generate-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #C74634 0%, #E85A47 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(199, 70, 52, 0.3);
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 70, 52, 0.4);
}

.generate-btn:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Processing */
.processing {
    text-align: center;
    padding: 2rem 1.5rem;
    animation: fadeIn 0.3s ease-out;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #F3F3F3;
    border-top: 3px solid #C74634;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.processing p {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.processing-sub {
    font-size: 0.85rem !important;
    color: #666 !important;
    font-weight: 400 !important;
}

/* Error Message */
.error-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #FEE2E2;
    border: 2px solid #EF4444;
    border-radius: 12px;
    margin-top: 1rem;
    animation: shake 0.5s ease-out;
}

.error-message svg {
    width: 20px;
    height: 20px;
    color: #DC2626;
    flex-shrink: 0;
    margin-top: 2px;
}

.error-title {
    font-weight: 700;
    color: #991B1B;
    margin-bottom: 0.15rem;
    font-size: 0.95rem;
}

.error-text {
    color: #7F1D1D;
    font-size: 0.875rem;
}

/* Help & Resources */
.help-section {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    border-top: 1px solid #E5E7EB;
    padding-top: 1rem;
}

.help-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

.help-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.help-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #4B5563;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.help-btn:hover {
    background: #E5E7EB;
    color: #1F2937;
    transform: translateY(-1px);
}

.help-btn svg {
    width: 18px;
    height: 18px;
    color: #C74634;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1rem;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.feature svg {
    width: 20px;
    height: 20px;
    color: #C74634;
}

.feature span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}

/* Stats Counter */
.stats-container {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.stat-badge {
    background: rgba(199, 70, 52, 0.1);
    color: #C74634;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    border: 1px solid rgba(199, 70, 52, 0.2);
}

.stat-badge svg {
    width: 16px;
    height: 16px;
}

.stat-badge strong {
    font-weight: 700;
}

/* Footer */
.footer {
    margin-top: 0.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.footer p {
    margin-bottom: 0.5rem;
}

.developer-credit {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .oracle-logo {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .card-header h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.875rem;
    }

    .card-body {
        padding: 2rem 1.5rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .upload-icon {
        width: 48px;
        height: 48px;
    }
}