body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23f3e5f5" fill-opacity="0.3" d="M0,192L48,176C96,160,192,128,288,138.7C384,149,480,203,576,213.3C672,224,768,192,864,181.3C960,171,1056,181,1152,197.3C1248,213,1344,235,1392,245.3L1440,256L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E') no-repeat bottom, linear-gradient(135deg, #38b2ac, #9f7aea);
    background-size: cover, auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}
.container {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    text-align: center;
    animation: fadeIn 1s ease-out;
    transition: transform 0.3s ease;
}
.container:hover {
    transform: translateY(-5px);
}
.container.dashboard, .container.stats, .container.generate {
    max-width: 900px;
    padding: 30px;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
h1 {
    font-size: 28px;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 600;
}
h2 {
    font-size: 22px;
    color: #2d3748;
    margin: 20px 0 15px;
    font-weight: 500;
}
.intro {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 30px;
    line-height: 1.6;
}
form {
    display: flex;
    flex-direction: column;
}
.input-group {
    position: relative;
    margin: 15px 0;
}
.input-group::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: cover;
}
.input-group.username::before {
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="%237b8794" viewBox="0 0 24 24"%3E%3Cpath d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/%3E%3C/svg%3E');
}
.input-group.password::before {
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="%237b8794" viewBox="0 0 24 24"%3E%3Cpath d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9V6z"/%3E%3C/svg%3E');
}
.input-group.url::before {
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="%237b8794" viewBox="0 0 24 24"%3E%3Cpath d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 14v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1h-5v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/%3E%3C/svg%3E');
}
input, select {
    padding: 12px 12px 12px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}
input:focus, select:focus {
    border-color: #38b2ac;
    box-shadow: 0 0 8px rgba(56, 178, 172, 0.3);
    outline: none;
}
button {
    padding: 14px;
    background: #ed64a6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
button:hover {
    background: #d53f8c;
    transform: scale(1.05);
}
.error, .success {
    font-size: 14px;
    margin-bottom: 20px;
}
.error { color: #e53e3e; }
.success { color: #38a169; }
p {
    font-size: 14px;
    color: #4a5568;
    margin-top: 20px;
}
p a {
    color: #38b2ac;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}
p a:hover {
    color: #2c7a7b;
    text-decoration: underline;
}
.footer {
    margin-top: 30px;
    font-size: 12px;
    color: #718096;
    opacity: 0.8;
}
.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}
.nav a {
    color: #2d3748;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    background: #edf2f7;
    transition: background 0.3s, color 0.3s;
}
.nav a:hover {
    background: #38b2ac;
    color: #fff;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #f7fafc;
    border-radius: 8px;
    overflow: hidden;
}
th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
th {
    background: #38b2ac;
    color: #fff;
    font-weight: 600;
}
td textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    resize: none;
    font-family: inherit;
}
.chart-container {
    width: 100%;
    height: 400px;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
ul li {
    padding: 10px;
    background: #edf2f7;
    margin-bottom: 5px;
    border-radius: 5px;
    color: #2d3748;
}
.stats-overview {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.stats-overview p {
    flex: 1;
    background: #edf2f7;
    padding: 15px;
    border-radius: 8px;
    margin: 0;
    text-align: center;
    font-weight: 500;
    color: #2d3748;
}
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}
@media (max-width: 768px) {
    body {
        align-items: flex-start;
    }
    .container {
        padding: 20px;
        max-width: 100%;
        margin: 10px;
        border-radius: 10px;
    }
    .container.dashboard, .container.stats, .container.generate {
        max-width: 100%;
    }
    h1 {
        font-size: 22px;
    }
    h2 {
        font-size: 18px;
    }
    .intro {
        font-size: 14px;
    }
    input, select, button {
        font-size: 14px;
        padding: 10px 10px 10px 40px;
    }
    .input-group::before {
        left: 10px;
        width: 18px;
        height: 18px;
    }
    .nav {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .nav a {
        width: 100%;
        text-align: center;
        padding: 8px;
    }
    .stats-overview {
        flex-direction: column;
        gap: 10px;
    }
    .stats-overview p {
        text-align: left;
        padding: 10px;
    }
    .chart-container {
        height: 250px;
    }
    .footer {
        font-size: 11px;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 15px;
        margin: 5px;
    }
    h1 {
        font-size: 20px;
    }
    h2 {
        font-size: 16px;
    }
    .intro {
        font-size: 13px;
    }
    input, select, button {
        font-size: 13px;
        padding: 8px 8px 8px 35px;
    }
    .input-group::before {
        left: 8px;
        width: 16px;
        height: 16px;
    }
    th, td {
        font-size: 12px;
        padding: 8px;
    }
    td textarea {
        font-size: 12px;
        padding: 8px;
    }
    .chart-container {
        height: 200px;
    }
}
