/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

nav {
    background-color: #2c3e50;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

nav ul li a.active {
    color: #3498db;
    font-weight: bold;
}

.container {
    padding: 6rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: #3498db;
    margin-bottom: 0.5rem;
}

.quick-notes {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quick-notes textarea {
    width: 100%;
    height: 100px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

/* Task Manager Styles */
.task-input, .goal-input, .notes-upload, .attendance-input, .journal-input {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.task-input input[type="text"], 
.goal-input input[type="text"], 
.notes-upload input[type="text"],
#journal-entry {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.task-input input[type="date"],
.goal-input input[type="date"],
.attendance-input input[type="date"],
#journal-date {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.task-input select,
.goal-input select,
.notes-upload select,
.attendance-input select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.task-filters, .goal-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

#task-list, #goals-list {
    list-style: none;
}

.task-item, .goal-item {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-item.completed {
    opacity: 0.7;
    text-decoration: line-through;
}

.task-priority {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.priority-low {
    background-color: #d4edda;
    color: #155724;
}

.priority-medium {
    background-color: #fff3cd;
    color: #856404;
}

.priority-high {
    background-color: #f8d7da;
    color: #721c24;
}

.task-actions, .goal-actions {
    display: flex;
    gap: 0.5rem;
}

/* Timetable Styles */
#timetable {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

#timetable th, #timetable td {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #ddd;
}

#timetable th {
    background-color: #3498db;
    color: white;
}

#timetable tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Notes Styles */
.notes-list {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.note-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.note-item:last-child {
    border-bottom: none;
}

.note-info {
    flex: 1;
}

.note-subject {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.subject-math {
    background-color: #d4edda;
    color: #155724;
}

.subject-science {
    background-color: #cce5ff;
    color: #004085;
}

.subject-history {
    background-color: #e2e3e5;
    color: #383d41;
}

.subject-english {
    background-color: #fff3cd;
    color: #856404;
}

.subject-other {
    background-color: #f8d7da;
    color: #721c24;
}

/* Attendance Styles */
.attendance-summary, .attendance-records {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.attendance-chart {
    height: 200px;
    margin: 1rem 0;
}

#attendance-table {
    width: 100%;
    border-collapse: collapse;
}

#attendance-table th, #attendance-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#attendance-table th {
    background-color: #f8f9fa;
}

.present {
    color: green;
    font-weight: bold;
}

.absent {
    color: red;
    font-weight: bold;
}

/* Goals Styles */
.goal-item {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.goal-item.completed {
    opacity: 0.7;
    background-color: #d4edda;
}

.goal-deadline {
    font-size: 0.8rem;
    color: #666;
}

/* Journal Styles */
.journal-entries {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#journal-entry {
    width: 100%;
    height: 150px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.entry-item {
    padding: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.entry-date {
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.entry-content {
    white-space: pre-line;
}

/* Progress Styles */
.progress-chart {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 300px;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Login Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.login-box, .register-box {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h1, .register-box h1 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-link, .register-link {
    margin-top: 1rem;
    color: #555;
}

.login-link a, .register-link a {
    color: #3498db;
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0.5rem;
    }

    .container {
        padding: 8rem 1rem 1rem;
    }

    .task-input, .goal-input, .notes-upload, .attendance-input, .journal-input {
        flex-direction: column;
        align-items: stretch;
    }
}