/* General Body and Layout */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    min-height: 100vh;
}

.wrapper {
    display: flex;
    width: 100%;
}

/* Sidebar Styling */
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.sidebar .logo {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #e74c3c; /* Vibrant highlight */
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav ul li {
    margin-bottom: 10px;
}

.sidebar nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a.active {
    background-color: #34495e;
}

.sidebar nav ul li a i {
    margin-right: 10px;
} /* Placeholder for icons */

/* Main Content Area */
.content {
    flex-grow: 1;
    padding: 20px;
    background-color: #ffffff;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.header h1 {
    margin: 0;
    color: #34495e;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info .profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 15px;
    border: 2px solid #e74c3c;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 5px solid #3498db; /* Example color */
}

.card h3 {
    margin-top: 0;
    color: #2c3e50;
}

.weather-card {
    text-align: center;
    border-left-color: #f39c12;
}

.weather-emoji {
    font-size: 3em;
    margin-bottom: 5px;
}

.weather-temp {
    font-size: 1.8em;
    font-weight: bold;
    color: #e74c3c;
}

.weather-suggestion {
    font-style: italic;
    color: #7f8c8d;
}

/* Dashboard Charts */
.dashboard-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chart-card {
    background-color: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Login and Register Forms */
.login-container,
.register-container {
    width: 100%;
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.login-container h2,
.register-container h2 {
    margin-top: 0;
    color: #34495e;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

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

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.form-group input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #2ecc71; /* Green submit button */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-group input[type="submit"]:hover {
    background-color: #27ae60;
}

.login-container p,
.register-container p {
    margin-top: 20px;
    color: #777;
}

.login-container p a,
.register-container p a {
    color: #3498db;
    text-decoration: none;
}

.login-container p a:hover,
.register-container p a:hover {
    text-decoration: underline;
}

/* Calendar Styling */
.calendar-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.calendar-navigation a {
    text-decoration: none;
    color: #3498db;
    font-weight: bold;
}

.calendar-navigation a:hover {
    color: #2980b9;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.calendar-table caption {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #34495e;
    font-weight: bold;
}

.calendar-table th,
.calendar-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    vertical-align: top;
    height: 100px; /* Adjust as needed */
}

.calendar-table th {
    background-color: #f2f2f2;
    color: #555;
}

.calendar-table td.empty {
    background-color: #f9f9f9;
}

.calendar-table td .date {
    display: block;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #2c3e50;
}

.calendar-table td.completed {
    background-color: #e6ffe6; /* Light green */
}

.calendar-table td.pending {
    background-color: #fffacd; /* Light yellow */
}

.calendar-table td.missed {
    background-color: #ffe6e6; /* Light red */
}

.activity-item {
    font-size: 0.9em;
    margin-top: 5px;
    padding: 3px;
    border-radius: 3px;
    background-color: rgba(0,0,0,0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        padding: 10px;
    }

    .sidebar nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sidebar nav ul li {
        margin: 5px;
    }

    .dashboard-cards,
    .dashboard-charts {
        grid-template-columns: 1fr;
    }

    .login-container,
    .register-container {
        margin: 50px 20px;
        padding: 20px;
    }
}

