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

:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #f5f3f7 0%, #e8e4ed 50%, #f0edf5 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

header h1 .header-icon {
    width: 5rem;
    height: 5rem;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Drop Zone */
.drop-zone {
    background: var(--card-bg);
    border: 3px dashed var(--border-color);
    border-radius: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.drop-zone:hover,
.drop-zone.drag-over,
.drop-zone.paste-ready {
    border-color: var(--primary-color);
    background: linear-gradient(to bottom, var(--card-bg), #f0f4ff);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.drop-zone:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.drop-zone.paste-detected {
    border-color: var(--success-color);
    background: linear-gradient(to bottom, var(--card-bg), #f0fdf4);
    animation: pastePulse 0.3s ease;
}

@keyframes pastePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.drop-zone-content {
    pointer-events: none;
}

.upload-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.drop-zone h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.drop-zone p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.file-types {
    display: inline-block;
    background: var(--bg-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Status Container */
.status-container {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    animation: fadeIn 0.3s ease;
}

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

.status-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#statusTitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

#statusMessage {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Results Container */
.results-container {
    animation: fadeIn 0.5s ease;
}

.results-success {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.success-icon {
    color: var(--success-color);
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.results-success h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.results-success > p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Buttons */
.download-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* Error Container */
.error-container {
    animation: fadeIn 0.3s ease;
}

.error-content {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid var(--error-color);
}

.error-icon {
    color: var(--error-color);
    margin-bottom: 1.5rem;
}

.error-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--error-color);
}

.error-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Information Section */
.info-section {
    margin-top: 4rem;
    padding: 3rem 0;
}

.info-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.info-rows {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    color: #8b5cf6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 100%;
    height: 100%;
}

.info-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.info-content {
    flex: 1;
}

.info-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.info-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-logo a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-logo a:hover {
    opacity: 0.7;
}

.teknoledg-logo {
    width: 50%;
    height: auto;
    max-width: 600px;
    min-width: 300px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: opacity 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    header h1 .header-icon {
        width: 4rem;
        height: 4rem;
    }

    .drop-zone {
        padding: 3rem 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-actions {
        flex-direction: column;
    }

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

    .info-title {
        font-size: 2rem;
    }

    .teknoledg-logo {
        width: 80%;
        min-width: 240px;
    }

    .info-row {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .info-icon {
        width: 56px;
        height: 56px;
    }

    .info-content h3 {
        font-size: 1.5rem;
    }

    .info-content p {
        font-size: 1.125rem;
    }
}

