/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utility Classes */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4a6fa5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #3a5a80;
}

.btn-small {
    padding: 5px 10px;
    font-size: 14px;
}

.btn.cancel {
    background-color: #6c757d;
}

.btn.cancel:hover {
    background-color: #5a6268;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #e9ecef;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #4a6fa5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #343a40;
    color: white;
    padding: 20px;
    position: fixed;
    height: 100%;
}

.sidebar h2 {
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
}

.user-info {
    margin-bottom: 30px;
    text-align: center;
}

.user-info h3 {
    margin-bottom: 5px;
}

.user-info p {
    color: #adb5bd;
    font-size: 14px;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav li {
    margin-bottom: 10px;
}

.sidebar nav a {
    display: block;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.sidebar nav a:hover {
    background-color: #495057;
}

.sidebar nav .active a {
    background-color: #4a6fa5;
    color: white;
}

.content {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
    background-color: #f8f9fa;
}

.content h1 {
    margin-bottom: 30px;
    color: #343a40;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stat-card h3 {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    color: #4a6fa5;
}

/* Task Table */
.task-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.task-actions {
    margin-bottom: 20px;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
}

.task-table th,
.task-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.task-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.task-table tr:hover {
    background-color: #f8f9fa;
}

/* Priority and Status Tags */
.priority-low {
    color: #28a745;
    background-color: #d4edda;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.priority-medium {
    color: #ffc107;
    background-color: #fff3cd;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.priority-high {
    color: #dc3545;
    background-color: #f8d7da;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.status-pending {
    color: #6c757d;
    background-color: #e2e3e5;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.status-in-progress {
    color: #17a2b8;
    background-color: #d1ecf1;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.status-completed {
    color: #28a745;
    background-color: #d4edda;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
}

/* Task Form */
.task-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Task Details */
.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.task-details {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.detail-row h2 {
    color: #343a40;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    margin-bottom: 10px;
    color: #495057;
}

.detail-section p {
    color: #6c757d;
    line-height: 1.8;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.detail-item h4 {
    color: #6c757d;
    margin-bottom: 5px;
    font-size: 14px;
}

.detail-item p {
    color: #343a40;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .content {
        margin-left: 0;
    }
    
    .dashboard-container {
        flex-direction: column;
    }
}