/* Reset */
section {
    margin-bottom: 30px;    
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
}

/* Layout */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background-color: #111827;
    color: white;
    padding: 20px;
}

.sidebar h2 {
    margin-bottom: 30px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 15px;
    cursor: pointer;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
}

header h1 {
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 600;
    color: #111827;
}

/* Cards */
.cards {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    flex: 1;
    background: white;
    padding: 22px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-left: 4px solid #2563eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.card h3 {
    margin-bottom: 10px;
    color: #6b7280;
}

.card p {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
}

/* Form Section */
.form-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.form-section input,
.form-section select {
    padding: 8px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.form-section button {
    padding: 10px 18px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-section button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.list-section {
    margin-top: 30px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

#entryList {
    list-style: none;
}

#entryList li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.delete-btn {
    background: #fee2e2;
    color: #b91c1c;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s ease;
}

.delete-btn:hover {
    background: #fecaca;
}

.ai-section {
    margin-top: 30px;
    background: linear-gradient(135deg, #1e3a8a, #111827);
    color: white;
    padding: 25px;
    border-radius: 10px;
}

#aiMessage {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive Design */

@media (max-width: 992px) {
    .cards {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        text-align: center;
    }

    .main-content {
        padding: 15px;
    }

    .cards {
        flex-direction: column;
    }

    .form-section input,
    .form-section select,
    .form-section button {
        width: 100%;
        margin-bottom: 10px;
    }

    .charts {
        display: flex;
        gap: 30px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .chart-box {
        flex: 1;
        min-width: 300px;
        max-width: 450px;
        height: 300px;
}

}

#entryList li {
    transition: background 0.2s ease;
}

#entryList li:hover {
    background: #f9fafb;
}

.chart-section {
    margin-top: 30px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.charts {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

canvas {
    max-width: 400px;
}

