


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

    #animation: insane-shake 0.1s infinite,  seizure 0.3s infinite,float-mad 2s infinite ease-in-out;
}

@keyframes seizure {
    0% { background: #ff0000; }
    25% { background: #00ff00; }
    50% { background: #0000ff; }
    75% { background: #ffff00; }
    100% { background: #ff00ff; }
}


@keyframes insane-shake {
    0% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-3px, -2px) rotate(-2deg); }
    20% { transform: translate(4px, 1px) rotate(1deg); }
    30% { transform: translate(-2px, 3px) rotate(0deg); }
    40% { transform: translate(3px, -1px) rotate(2deg); }
    50% { transform: translate(-4px, 2px) rotate(-1deg); }
    60% { transform: translate(2px, -3px) rotate(1deg); }
    70% { transform: translate(-1px, 4px) rotate(-2deg); }
    80% { transform: translate(3px, -2px) rotate(0deg); }
    90% { transform: translate(-2px, 1px) rotate(2deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-mad {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        left: 0;
    }
    25% {
        transform: translate(100px, 50px) rotate(90deg);
        left: 100px;
    }
    50% {
        transform: translate(-80px, 100px) rotate(180deg);
        left: -50px;
    }
    75% {
        transform: translate(120px, -30px) rotate(270deg);
        left: 70px;
    }
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: var(--font-size-base);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.btn {
    padding: var(--button-padding);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    font-size: var(--font-size-sm);
}

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

.btn-primary:hover {
    background: var(--hover-primary);
    transform: translateY(-2px);
}


.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: var(--button-padding-lg);
    font-size: var(--font-size-base);
}


.main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-color) 100%);
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

.hero-title {
    font-size: var(--font-size-3xl);
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: var(--font-size-md);
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading.hidden {
    display: none;
}

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

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--hover-primary);
}




::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hover-primary);
}



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


input[type="file"] {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-light);
    color: var(--text-color);
    font-size: var(--font-size-base);
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

input[type="file"]:hover {
    border-color: var(--primary-color);
    background: white;
}

input[type="file"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

input[type="file"]::file-selector-button {
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    border: none;
    border-radius: var(--border-radius);
    background: var(--primary-color);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

input[type="file"]::file-selector-button:hover {
    background: var(--hover-primary);
}

input[type="file"]::file-selector-button:active {
    transform: scale(0.98);
}


input[type="file"]::-webkit-file-upload-button {
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    border: none;
    border-radius: var(--border-radius);
    background: var(--primary-color);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--hover-primary);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}
