* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root {
    --primary-color: #3F75B9;
    --primary-gradient: linear-gradient(135deg, #3F75B9, #2980b9);
    --secondary-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --remove-color: #8e44ad;
    --bg-gradient: linear-gradient(135deg, #1a2a6c, #2a4858);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-gradient);
    padding: 20px;
}

.container {
    background: var(--card-bg);
    padding: 30px;
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-top: 6px solid var(--primary-color);
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.input-section {
    margin-bottom: 25px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.input-group label {
    width: 130px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.input-group input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1.5px solid #dee2e6;
    transition: all 0.2s ease;
    background: white;
    font-size: 0.95rem;
}

.input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(63, 117, 185, 0.15);
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.btn {
    padding: 14px 10px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ecf0f1;
    color: var(--text-main);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    filter: grayscale(0.5);
}

.primary {
    background: var(--primary-gradient);
    color: white;
}

.secondary {
    background: var(--secondary-color);
    color: white;
}

.warning {
    background: var(--warning-color);
    color: white;
}

.danger {
    background: var(--danger-color);
    color: white;
}

.remove {
    background: var(--remove-color);
    color: white;
}

/* ================= LOG CONTAINER ================= */

.log-container {
    margin-top: 25px;
}

.log-container h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-main);
}

.log-box {
    background-color: #1e1e1e;
    color: #d4d4d4;
    height: 160px;
    border-radius: 12px;
    padding: 15px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.5;
    overflow-y: auto;
    border: 1px solid #333;
}

/* ================= PROGRESS BAR ================= */

.progress-container {
    margin-top: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-main);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background-color: #e9ecef;
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-gradient);
    transition: width 0.4s cubic-bezier(0.1, 0.7, 1.0, 0.1);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 600px) {
    .container {
        padding: 20px;
        border-radius: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .button-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .input-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .input-group label {
        width: 100%;
        margin-bottom: 5px;
    }
}