/* Base styling */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
}

/* Sidebar styling with modern color */
.sidebar {
    width: 200px;
    background: linear-gradient(180deg, #003366, #005b9a); /* Deep Navy to Modern Blue */
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}
.sidebar ul {
    list-style: none;
    padding: 0;
}
.sidebar ul li {
    padding: 15px;
    text-align: center;
}
.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    display: block;
    transition: 0.3s;
}
.sidebar ul li a:hover {
    background: #0077cc;
    border-radius: 5px;
    padding: 10px;
}

/* Main content area */
.main-content {
    margin-left: 220px;
    padding: 20px;
}
.main-content h2 {
    color: #333;
}
.stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.stat-box {
    background: #fff;
    padding: 20px;
    flex: 1;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}
.btn {
    display: inline-block;
    background: #003366;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    margin-top: 10px;
    border-radius: 3px;
    transition: 0.3s;
}
.btn:hover {
    background: #0077cc;
}
.back-btn {
    margin-top: 20px;
}

/* Forms */
input[type="text"], input[type="password"], input[type="date"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 3px;
}
button {
    padding: 10px 15px;
    background: #003366;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    transition: 0.3s;
}
button:hover {
    background: #0077cc;
}

/* Table styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}
.data-table th {
    background: #003366;
    color: #fff;
}

/* Login container */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: #fff;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Error and success messages */
.error {
    color: red;
}
.success {
    color: green;
}
/* Dashboard stat boxes */
.stat-box {
    background: #ffffff; /* White background */
    padding: 20px;
    flex: 1;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-weight: bold;
}

/* Individual colors for different stats */
.total-tenants {
    background: #0077cc; /* Blue */
    color: #fff;
}

.total-paid {
    background: #28a745; /* Green */
    color: #fff;
}

.total-unpaid {
    background: #dc3545; /* Red */
    color: #fff;
}

.total-collected {
    background: #ff9800; /* Orange */
    color: #fff;
}

.total-unpaid-amount {
    background: #6c757d; /* Gray */
    color: #fff;
}

/* Icon styling */
.stat-box .icon {
    font-size: 30px;
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats {
        flex-direction: column;
    }
}

.sidebar-logo {
    text-align: center;
    padding: 10px 15px;
}

.sidebar-logo img {
    width: 180px; /* Adjust width */
    height: auto; /* Maintain aspect ratio */
    max-height: 80px; /* Prevent too tall logos */
    display: block;
    margin: 0 auto;
}

/* Fix logo size */
.logo {
    width: 180px;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* Back buttons */
.button-container {
    margin-top: 20px;
    text-align: center;
}

.back-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: #2C3E50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.back-btn:hover {
    background-color: #1A252F;
}

.active-tenants {
    background-color: #4CAF50; /* Green */
    color: white;
}

.suspended-tenants {
    background-color: #2C3E50; /* Red-Orange */
    color: white;
}


/* Add this to your existing CSS file */

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.seat-box {
    width: 100%;
    max-width: 600px;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-box {
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 2in; /* This moves the form 2 inches down */
}

.form-box h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.error {
    color: red;
    text-align: center;
    font-size: 16px;
}

.btn {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn:hover {
    background-color: #218838;
}

a.btn {
    display: inline-block;
    text-align: center;
    width: auto;
    margin-top: 10px;
    background-color: #007bff;
    text-decoration: none;
}

a.btn:hover {
    background-color: #0056b3;
}


