/* E-Invoice Converter - Minimalist Design */
/* Color Scheme: Dark Green & Yellow | No Rounded Corners */

:root {
    --dark-green: #1B4332;
    --green: #2D6A4F;
    --yellow: #FFD60A;
    --yellow-dark: #FFC300;
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --text: #212529;
    --text-muted: #6C757D;
}

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

/* NO ROUNDED CORNERS - User Preference */
*,
*::before,
*::after {
    border-radius: 0 !important;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: var(--light-bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    background: var(--dark-green);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
    transition: color 0.3s;
}

.navbar-brand:hover {
    color: var(--yellow) !important;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.5rem 1.5rem !important;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--yellow) !important;
}

.navbar-toggler {
    border: 2px solid var(--yellow);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFD60A' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 4rem 0;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-section h1 {
    color: var(--dark-green);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Upload Card */
.upload-card {
    background: var(--white);
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 6px solid var(--yellow);
}

.upload-zone {
    border: 3px dashed var(--green);
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--light-bg);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--yellow);
    background: #FFFEF0;
}

.upload-zone i {
    font-size: 5rem;
    color: var(--green);
    display: block;
    margin-bottom: 1.5rem;
}

.upload-zone h3 {
    color: var(--dark-green);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.file-input {
    display: none;
}

/* Buttons */
.btn-process {
    background: var(--green);
    border: none;
    color: var(--white);
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    border-left: 4px solid var(--yellow);
}

.btn-process:hover:not(:disabled) {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: var(--white);
}

.btn-process:disabled {
    background: var(--text-muted);
    border-left-color: #999;
    cursor: not-allowed;
}

.btn-success {
    background: var(--green);
    border: none;
    color: var(--white);
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.btn-success:hover {
    background: var(--dark-green);
    color: var(--white);
}

.btn-warning {
    background: var(--yellow);
    border: none;
    color: var(--dark-green);
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.btn-warning:hover {
    background: var(--yellow-dark);
    color: var(--dark-green);
}

/* File Info */
.file-info {
    display: none;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-left: 4px solid var(--yellow);
}

.file-info h4 {
    color: var(--dark-green);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.file-info p {
    margin-bottom: 0.5rem;
}

.file-info strong {
    color: var(--green);
}

/* Progress Section */
.progress-section {
    display: none;
    margin-top: 2rem;
}

.progress {
    height: 35px;
    background: var(--light-bg);
    border: 2px solid var(--green);
    overflow: visible;
}

.progress-bar {
    background: var(--green);
    color: var(--white);
    font-weight: 600;
    line-height: 35px;
    transition: width 0.6s ease;
}

/* Results Section */
.results-section {
    display: none;
    margin-top: 2rem;
}

.alert {
    border: none;
    padding: 1.25rem;
    font-weight: 500;
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border-left: 5px solid #28A745;
}

.alert-danger {
    background: #F8D7DA;
    color: #721C24;
    border-left: 5px solid #DC3545;
}

/* Features Section */
.features-section {
    margin-top: 5rem;
    text-align: center;
}

.features-section h2 {
    color: var(--dark-green);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    height: 100%;
    text-align: center;
    transition: all 0.3s;
    border-top: 5px solid var(--yellow);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-top-color: var(--green);
}

.feature-card i {
    font-size: 3.5rem;
    color: var(--green);
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    color: var(--dark-green);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Footer */
.footer {
    background: var(--dark-green);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer h5 {
    color: var(--yellow);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer p,
.footer a {
    color: var(--white);
    text-decoration: none;
    line-height: 1.8;
}

.footer a:hover {
    color: var(--yellow);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.contact-item {
    margin-bottom: 0.8rem;
}

.contact-item i {
    color: var(--yellow);
    margin-right: 0.5rem;
    width: 20px;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50% !important; /* Exception for spinner */
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

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

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .upload-card {
        padding: 2rem;
    }
    
    .upload-zone {
        padding: 3rem 1.5rem;
    }
    
    .upload-zone i {
        font-size: 3.5rem;
    }
    
    .btn-process {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .navbar-collapse {
        background: var(--dark-green);
        padding: 1rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .features-section h2 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
}

