/* Reset Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Container Utama */
.main-container {
    background: #ffffff;
    width: 100%;
    max-width: 800px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2d3436;
}

.highlight {
    color: #6c5ce7; /* Aksen warna ungu modern */
}

header p {
    color: #b2bec3;
    margin-top: 5px;
}

/* Statistik Dashboard */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 kolom */
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.1);
    border-color: #6c5ce7;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: #2d3436;
}

.stat-label {
    font-size: 0.9rem;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Input Area */
.input-area textarea {
    width: 100%;
    height: 300px;
    padding: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    resize: none; /* Mencegah user merusak layout */
    outline: none;
    transition: border-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.input-area textarea:focus {
    border-color: #6c5ce7;
}

/* Footer Controls */
.footer-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f1f1;
}

.reading-time {
    font-size: 0.95rem;
    color: #636e72;
}

.btn-reset {
    background-color: #ff7675;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-reset:hover {
    background-color: #d63031;
}

/* Responsif untuk Mobile */
@media (max-width: 600px) {
    .stats-container {
        grid-template-columns: 1fr 1fr; /* Jadi 2 kolom di HP */
    }
    
    .main-container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
}