body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.main-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 250px;
    background-color: #333;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #4CAF50; /* Highlighted color */
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    margin-bottom: 5px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.sidebar li a:hover, .sidebar li a.active {
    background-color: #4CAF50;
}

/* Content Area Styling */
.content-area {
    flex-grow: 1;
    padding: 20px;
}

.content-area header {
    background-color: white;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card h3 {
    margin-top: 0;
    color: #777;
    font-size: 1em;
}

.card p {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    margin: 5px 0 0;
}
.card.profit p { color: #4CAF50; }
.card.due p { color: #FF9800; }
/* Form Styling */
.form-container {
    width: 80%;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 500px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    clear: both;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't increase total width */
}

/* For two items side-by-side */
.form-group.half-width {
    width: 100%;
}

/* Button Styling */
.btn-primary {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #45a049;
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert.success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert.error {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}
/* Table Styling */
.data-table {
    width: 80%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
   
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f8f8f8;
    color: #333;
    font-weight: bold;
}

.data-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Status Indicators */
.status-cell {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    text-align: center;
}

.status-cell.active {
    background-color: #d4edda;
    color: #155724;
}

.status-cell.banned, .status-cell.overdue {
    background-color: #f8d7da;
    color: #721c24;
}

.status-cell.warning { /* 10 days or less remaining */
    background-color: #fff3cd;
    color: #856404;
}

/* Delete Button */
.btn-delete {
    background-color: #dc3545;
    color: white;
    padding: 6px 10px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.btn-delete:hover {
    background-color: #c82333;
}