﻿/* ProcessFinIntel - AI Document Analysis Interface */

:root {
    --primary-gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --accent-dark: #2a2a2a;
    --success-green: #4caf50;
    --info-blue: #2196f3;
}
.process-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header Section */
.process-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
}

.process-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.process-header p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Main Layout */
.process-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Upload Section */
.upload-section {
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #d4af37;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.section-title {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    font-size:20px;
    gap: 12px;
}

.section-icon {
    font-size: 1.5rem;
}

/* File Upload Area */
.upload-area {
    border: 1px dashed rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 20px 10px;
    text-align: center;
    background: rgba(26, 26, 26, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.05);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary-gold);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upload-area h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-white);
}

.upload-area p {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 20px;
}

.file-types {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.file-type-badge {
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--primary-gold);
    font-size: 14px;
    color: var(--primary-gold);
    font-weight: 600;
}

/* File Input */
#fileInput {
    display: none;
}

/* Selected Files List */
.selected-files {
    margin-top: 25px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--accent-dark);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
}

.file-item:hover {
    border-color: var(--primary-gold);
    transform: translateX(5px);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.file-icon {
    font-size: 1.8rem;
}

.file-details h4 {
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 4px;
}

.file-size {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.remove-file {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.remove-file:hover {
    background: rgba(255, 59, 48, 0.2);
    transform: scale(1.05);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 6px;
    background: linear-gradient(135deg, var(--primary-gold), #f4d03f);
    color: var(--dark-bg);
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results Section */
.results-section {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    min-height: 600px;
}

.results-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 500px;
    text-align: center;
}

.results-placeholder-icon {
    font-size: 5rem;
    margin-bottom: 25px;
    opacity: 0.3;
}

.results-placeholder h3 {
    font-size: 1.6rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.results-placeholder p {
    color: var(--text-gray);
    opacity: 0.7;
}

/* Processing State */
.processing-state {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.processing-state.active {
    display: block;
}

.ai-loader {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top: 4px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-state h3 {
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.processing-state p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Analysis Results */
.analysis-results {
    display: none;
}

.analysis-results.active {
    display: block;
}

.result-card {
    background: var(--accent-dark);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
}

.result-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-3px);
}

.result-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.result-card-icon {
    font-size: 20px;
}

.result-card-title {
    font-size: 20px;
    color: var(--text-white);
}

.result-content {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
}

.result-content strong {
    color: var(--primary-gold);
}

/* Key Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.insight-item {
    background: rgba(26, 26, 26, 0.6);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
}

.insight-value {
    font-size: 2rem;
    color: var(--primary-gold);
    font-weight: 700;
    margin-bottom: 8px;
}

.insight-label {
    font-size: 0.95rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features Info */
.features-info {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
}

.feature-item-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .process-layout {
        grid-template-columns: 1fr;
    }

    .upload-section {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .process-header h1 {
        font-size: 2.5rem;
    }

    .upload-area {
        padding: 40px 20px;
    }

    .file-types {
        gap: 10px;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
