body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    background-color: #f4f7f6;
    color: #333;
}

main {
    padding: 20px;
}

.page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px); 
}

#dashboard-page {
    justify-content: flex-start;
    align-items: flex-start;
}

.form-container {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group input:read-only {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.editable-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.editable-field input {
    flex-grow: 1;
}

.field-btn {
    padding: 5px 10px;
    width: auto;
    font-size: 14px;
}
button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.form-footer {
    text-align: center;
    margin-top: 16px;
}

.form-footer a {
    color: #007bff;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 60px;
}

.nav-brand {
    font-size: 1.5em;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-item {
    padding: 20px 15px;
    text-decoration: none;
    color: #333;
    display: block;
}

.nav-item:hover {
    background-color: #f4f7f6;
}

#dashboard-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    align-items: start;
}

#dashboard-page h2 {
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
    font-size: 2em;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.card h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: #555;
}

.kpi-card {
    display: flex;
    align-items: center;
}

.kpi-card .icon {
    width: 50px;
    height: 50px;
    margin-right: 20px;
    flex-shrink: 0;
}

.kpi-card .icon svg {
    width: 100%;
    height: 100%;
    fill: #007bff;
}

.kpi-card .details h4 {
    margin: 0 0 5px 0;
    font-size: 1em;
    color: #666;
    font-weight: normal;
}

.kpi-card .details .value {
    margin: 0;
    font-size: 2em;
    font-weight: bold;
    color: #333;
}

#top-customers-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#top-customers-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

#top-customers-list li:last-child {
    border-bottom: none;
}

#top-customers-list .customer-info {
    font-weight: 500;
}

#top-customers-list .customer-spend {
    font-weight: bold;
    color: #007bff;
}

.chart-card {
    grid-column: span 2;
    max-height: 400px;
}

.top-customers-card {
    grid-column: span 1;
}
