/* styles.css */

/* Сброс стилей для предотвращения конфликтов с Tailwind */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxwYXR0ZXJuIGlkPSJkb3QtcGF0dGVybiIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiBwYXR0ZXJuVHJhbnNmb3JtPSJyb3RhdGUoNDUpIj48Y2lyY2xlIGN4PSIyMCIgY3k9IjIwIiByPSIyIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMSkiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZG90LXBhdHRlcm4pIi8+PC9zdmc+');
    background-repeat: repeat;
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: -1;
    animation: moveParticles 20s linear infinite;
}

@keyframes moveParticles {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

.hero {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.section-transition {
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}

.animate-fade-in {
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-slide-in {
    animation: slideIn 0.8s ease-in-out;
}

@keyframes slideIn {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.animate-pulse-border {
    animation: pulseBorder 3s infinite;
}

@keyframes pulseBorder {
    0% { border-color: #3b82f6; }
    50% { border-color: #8b5cf6; }
    100% { border-color: #3b82f6; }
}

#notification.success {
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
}

#notification.error {
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
}

#notification.warning {
    background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
}

#chart {
    width: 100%;
    height: 400px;
    max-width: 800px;
    margin: 0 auto;
}

.cta-button {
    background: #0071e3;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:disabled {
    background: #4a5568;
    cursor: not-allowed;
    transform: none;
}

.cta-button:hover:not(:disabled) {
    transform: scale(1.03);
}

.cta-button.bg-red-600 {
    background: #dc2626;
}

.cta-button.bg-red-600:hover:not(:disabled) {
    background: #b91c1c;
}

.cta-button.bg-green-600 {
    background: #16a34a;
}

.cta-button.bg-green-600:hover:not(:disabled) {
    background: #15803d;
}

/* Стили для личного кабинета */
.dashboard-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0d1b2a 0%, #1e293b 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.dashboard-container {
    width: 100%;
    max-width: 600px;
    background: #1e293b;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    padding: 2rem;
    position: relative;
    animation: dashboardEntry 0.8s ease-out;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

@keyframes dashboardEntry {
    0% { transform: scale(0.98); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.dashboard-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.dashboard-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #e5e7eb;
}

.dashboard-header p {
    font-size: 0.875rem;
    color: #9ca3af;
}

.dashboard-content {
    background: #111827;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.dashboard-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    background: #1f2937;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(59, 130, 246, 0.05);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

.stat-card p {
    font-size: 0.75rem;
    color: #9ca3af;
}

.stat-card p:last-child {
    font-size: 1rem;
    font-weight: 600;
    color: #34d399;
}

.dashboard-status {
    background: #1f2937;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.05);
}

.dashboard-status h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #e5e7eb;
}

.dashboard-status p {
    font-size: 0.75rem;
    color: #9ca3af;
}

.dashboard-log {
    grid-column: span 2;
    background: #1f2937;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.05);
}

#activity-log {
    max-height: 150px;
    border-left: 3px solid #3b82f6;
}

#activity-messages li {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #d1d5db;
}

#activity-messages li svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

.dashboard-controls {
    background: #1f2937;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.05);
}

.dashboard-controls h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 0.75rem;
}

.dashboard-controls select,
.dashboard-controls input {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.dashboard-controls select:focus,
.dashboard-controls input:focus {
    border-color: #3b82f6;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.25rem;
    }
    .process-step {
        margin-bottom: 2rem;
    }
    #chart {
        height: 300px;
    }
    .dashboard-panel {
        grid-template-columns: 1fr;
    }
    .dashboard-log {
        grid-column: span 1;
    }
    .dashboard-container {
        max-width: 90%;
        padding: 1rem;
    }
}