@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0056b3;
    --primary-gradient: linear-gradient(135deg, #0056b3 0%, #00a8cc 100%);
    --accent: #20c997;
    --success: #28a745;
    --danger: #dc3545;
    --light-bg: #f5f7fa;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-dark: #1a1e26;
    --text-muted: #6c757d;
    --nav-height: 80px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background: url('banner.png') center/cover no-repeat fixed;
    min-height: 100vh;
    padding-top: var(--nav-height);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: -1;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 
        1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Container */
.main-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Upload Style */
.upload-container {
    text-align: center;
}

.upload-header {
    margin-bottom: 40px;
}

.upload-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--primary);
}

.upload-header p {
    color: var(--text-muted);
}

.drop-box {
    border: 2px dashed #00b4d8;
    border-radius: 15px;
    padding: 60px 40px;
    background: rgba(0, 180, 216, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
}

.drop-box:hover {
    border-color: var(--primary);
    background: rgba(0, 180, 216, 0.06);
}

.drop-box.dragging {
    border-color: var(--accent);
    background: rgba(32, 201, 151, 0.06);
}

.drop-icon {
    font-size: 50px;
    margin-bottom: 20px;
    display: block;
}

.file-list-wrap {
    margin-top: 30px;
    text-align: left;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: white;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.file-item span.f-name {
    flex: 1;
    font-weight: 500;
}

.file-item .remove-btn {
    color: var(--danger);
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 86, 179, 0.3);
}

.btn-primary:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Status View */
.status-content {
    text-align: center;
}

.loader-container {
    margin-bottom: 40px;
}

.progress-circle-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
}

.spinner-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid #eee;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: rotate 1.5s linear infinite;
}

.progress-value-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

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

.status-texts h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.status-texts p {
    color: var(--text-muted);
}

.progress-bar-linear {
    width: 100%;
    height: 8px;
    background: #eee;
    margin-top: 30px;
    border-radius: 4px;
    overflow: hidden;
}

#progressBar {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 0.1s linear;
}

/* Results View */
.results-grid {
    display: grid;
    gap: 30px;
}

.summary-block {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #eee;
}

.summary-block h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-block p {
    line-height: 1.8;
}

.results-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.hidden {
    display: none !important;
}

footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
