/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: 260px; /* Width of the sidebar */
    transition: margin-left 0.3s;
}

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #f5f7fa;
    border-radius: 50px;
    padding: 8px 15px;
    width: 300px;
}

.search-container i {
    color: #888;
    margin-right: 10px;
}

.search-container input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4f6df5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.user-name {
    font-weight: 500;
}

/* Dashboard Content */
.dashboard-content {
    padding: 30px;
}

/* Stats Cards */
.stats-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 250px;
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 16px;
    color: #555;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.total-icon {
    background-color: #4f6df5;
}

.completed-icon {
    background-color: #4fcaf5;
}

.pending-icon {
    background-color: #f54f9d;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-footer {
    font-size: 14px;
    color: #888;
}

/* Tasks Section */
.tasks-section {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tasks-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.add-task-btn {
    background-color: #4f6df5;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s;
}

.add-task-btn:hover {
    background-color: #3a56d7;
}

/* Tasks Table */
.tasks-table {
    width: 100%;
    border-collapse: collapse;
}

.table-header {
    display: flex;
    background-color: #f9fafb;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    font-weight: 600;
    color: #555;
}

.table-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.table-row:hover {
    background-color: #f9fafb;
}

.table-cell {
    padding: 0 10px;
    display: flex;
    align-items: center;
}

.checkbox-cell {
    flex: 0 0 40px;
}

.task-cell {
    flex: 3;
}

.date-cell {
    flex: 1;
}

.priority-cell, .status-cell {
    flex: 1;
}

.actions-cell {
    flex: 0 0 100px;
    justify-content: flex-end;
}

/* Task Status & Priority */
.priority, .status {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.priority.high {
    background-color: #ffe5e5;
    color: #ff6b6b;
}

.priority.medium {
    background-color: #fff5e5;
    color: #ffab49;
}

.priority.low {
    background-color: #e5f8ff;
    color: #49c4ff;
}

.status.pending {
    background-color: #fff9e5;
    color: #ffcb49;
}

.status.completed {
    background-color: #e5ffed;
    color: #49ff7e;
}

/* Action Buttons */
.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
    color: #888;
    transition: color 0.2s;
}

.action-btn.edit:hover {
    color: #4f6df5;
}

.action-btn.delete:hover {
    color: #ff6b6b;
}

/* Completed Task */
.completed-row .task-cell {
    text-decoration: line-through;
    color: #888;
}

/* Responsive */
@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
    }
    
    .date-cell, .priority-cell {
        display: none;
    }
    
    .task-cell {
        flex: 2;
    }
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
    }
    
    .status-cell {
        display: none;
    }
}

@media (max-width: 480px) {
    .search-container {
        width: 100%;
    }
    
    .user-name {
        display: none;
    }
}