* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #41a6f6;
    --primary-dark: #227fcf;
    --secondary: #41a6f6;
    --success: #00c851;
    --danger: #ff4444;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text: #333;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dark-theme {
    --primary: #8a3ffc;
    --primary-dark: #6a11cb;
    --secondary: #4d8dfc;
    --dark: #f8f9fa;
    --light: #16213e;
    --card-bg: rgba(26, 26, 46, 0.9);
    --text: #e9ecef;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 100vh;
    color: var(--text);
    transition: background 0.5s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.banner .img {
    width: 100%;
    display: block;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.controls {
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.btn {
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn i {
    font-size: 1.2rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(0, 0, 0, 0.05);
}

.theme-toggle {
    margin-left: auto;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.form-section,
.info-section {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.input-control {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
}

.input-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1c68e8 100%);
}

.status-container {
    padding: 30px;
    text-align: center;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(37, 117, 252, 0.2);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.success-message {
    background: rgba(0, 200, 81, 0.1);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--success);
}

.success-message h3 {
    color: var(--success);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.1);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.info-card h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

footer {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.error-text {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    font-size: 1.2rem;
}

.timer-box {
    background: var(--primary);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
}

.timer-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .theme-toggle {
        margin-left: 0;
    }
}