* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #e8f0fe 0%, #d9e4f5 100%);
    min-height: 100vh;
    padding-top: 0;
    color: #1a2a4f;
}

/* Navigation Bar Styles */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(91, 140, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a2a4f;
}

.nav-brand i {
    color: #5b8cff;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #5a6e8a;
    font-weight: 500;
    border-radius: 40px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background: #f0f4ff;
    color: #5b8cff;
}

.nav-link.active {
    background: #5b8cff;
    color: white;
}

.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #1a2a4f;
}

/* Rest of your existing CSS remains the same */
.app-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Delete Button Styles */
.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: all 0.2s;
    color: #e74c3c;
    font-size: 1rem;
}

.delete-btn:hover {
    background: #fee;
    color: #c0392b;
    transform: scale(1.05);
}

.action-buttons {
    text-align: center;
}

/* Database page action buttons */
.db-actions {
    display: flex;
    gap: 1rem;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }
    
    .nav-container {
        padding: 0.8rem 1rem;
    }
}

/* Add these to your existing CSS */
.hero, .calendar-card, .pending-card, .right-panel {
    /* Your existing styles */
}

/* Mobile responsive adjustments */
@media (max-width: 800px) {
    .app-container {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
/* Analytics Page Styles - Add to your existing style.css */
.analytics-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.analytics-header {
    text-align: center;
    margin-bottom: 2rem;
}

.analytics-header h1 {
    color: #1a2a4f;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stats-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-large {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.stat-card-large.success {
    border-top: 4px solid #4caf50;
}

.stat-card-large.warning {
    border-top: 4px solid #ff9800;
}

.stat-icon {
    font-size: 2rem;
    color: #5b8cff;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a2a4f;
}

.stat-label {
    color: #7a8eaa;
    margin-top: 0.5rem;
}

.stat-percent {
    font-size: 0.85rem;
    color: #5b8cff;
    margin-top: 0.5rem;
    font-weight: 600;
}

.chart-card, .insights-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.bar-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 250px;
    padding: 1rem 0;
}

.bar-item {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.bar-container {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.bar {
    background: linear-gradient(180deg, #5b8cff, #8aaeff);
    width: 60%;
    min-height: 5px;
    border-radius: 10px 10px 0 0;
    position: relative;
    transition: height 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.bar-value {
    position: absolute;
    top: -25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5b8cff;
}

.bar-label {
    font-size: 0.75rem;
    color: #7a8eaa;
}

.insights-list {
    list-style: none;
    padding: 0;
}

.insights-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eef2ff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.insights-list li i {
    width: 24px;
    color: #5b8cff;
}

/* Database Page Styles */
.db-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.db-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.db-header h1 {
    color: #1a2a4f;
    font-size: 1.8rem;
}

.db-actions {
    display: flex;
    gap: 1rem;
}

.export-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.export-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #5b8cff;
}

.table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eef2ff;
}

.data-table th {
    background: #f8faff;
    font-weight: 600;
    color: #1a2a4f;
}

.data-table tr:hover {
    background: #fafcff;
}

.status-pending {
    color: #ff9800;
    font-weight: 500;
}

.status-completed {
    color: #4caf50;
    font-weight: 500;
}

.action-buttons {
    text-align: center;
}

.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: all 0.2s;
    color: #e74c3c;
    font-size: 1rem;
}

.delete-btn:hover {
    background: #fee;
    color: #c0392b;
    transform: scale(1.05);
}

.empty-table {
    text-align: center;
    color: #8a9eba;
    padding: 2rem;
}

@media (max-width: 768px) {
    .bar-chart {
        height: 200px;
    }
    
    .bar-container {
        height: 150px;
    }
    
    .db-header {
        flex-direction: column;
        text-align: center;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f7fa;
    color: #1a2a4f;
    line-height: 1.5;
}

/* Navigation Bar */
.navbar {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a2a4f;
}

.nav-brand i {
    color: #5b8cff;
    font-size: 1.25rem;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #5a6e8a;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.nav-link:hover {
    background: #f0f4ff;
    color: #5b8cff;
}

.nav-link.active {
    background: #5b8cff;
    color: white;
}

.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: #1a2a4f;
}

/* Main Container */
.app-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.welcome-text h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a2a4f;
    margin-bottom: 0.25rem;
}

.welcome-text p {
    color: #7a8eaa;
    font-size: 0.9rem;
}

.date-badge {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a2a4f;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-mini-card {
    background: white;
    padding: 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-mini-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-mini-icon.blue {
    background: #e8f0fe;
    color: #5b8cff;
}

.stat-mini-icon.orange {
    background: #fff3e0;
    color: #ff9800;
}

.stat-mini-icon.green {
    background: #e8f5e9;
    color: #4caf50;
}

.stat-mini-icon.purple {
    background: #f3e5f5;
    color: #9c27b0;
}

.stat-mini-info {
    display: flex;
    flex-direction: column;
}

.stat-mini-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2a4f;
}

.stat-mini-label {
    font-size: 0.75rem;
    color: #7a8eaa;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
}

.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a2a4f;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.card-header h2 i {
    color: #5b8cff;
    font-size: 1.1rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 0.75rem 1.5rem;
    background: #fafbfc;
    border-top: 1px solid #e9ecef;
    font-size: 0.75rem;
    color: #7a8eaa;
}

.month-year {
    font-size: 0.85rem;
    font-weight: 500;
    color: #7a8eaa;
}

.badge {
    background: #f0f4ff;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #5b8cff;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 8px;
    color: #7a8eaa;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: #f0f4ff;
    color: #5b8cff;
}

.link-btn {
    color: #5b8cff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Calendar */
.cal-table {
    width: 100%;
    border-collapse: collapse;
}

.cal-table th {
    padding: 0.75rem 0;
    color: #7a8eaa;
    font-weight: 500;
    font-size: 0.8rem;
}

.cal-table td {
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
}

.cal-day {
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.2s;
    font-weight: 500;
}

.cal-day:hover {
    background: #e8f0fe;
    transform: scale(0.95);
}

.selected-date {
    background: #5b8cff !important;
    color: white !important;
}

.has-tasks {
    position: relative;
    font-weight: 700;
}

.has-tasks::after {
    content: "•";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    color: #5b8cff;
    font-size: 1rem;
}

.selected-date.has-tasks::after {
    color: white;
}

/* Task Items */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.task-item:hover {
    background: #f0f4ff;
    transform: translateX(4px);
}

.task-info {
    flex: 1;
}

.task-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a2a4f;
    margin-bottom: 0.25rem;
    display: block;
}

.task-time {
    font-size: 0.7rem;
    color: #7a8eaa;
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(91, 140, 255, 0.1);
    border-radius: 20px;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: white;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 8px;
    transition: all 0.2s;
    color: #7a8eaa;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: white;
    transform: scale(1.05);
}

.complete-btn:hover {
    color: #4caf50;
}

.uncomplete-btn:hover {
    color: #ff9800;
}

.shift-btn:hover {
    color: #2196f3;
}

.delete-task-btn:hover {
    color: #e74c3c;
}

/* Add Task Form */
.add-task-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.add-task-form input {
    flex: 2;
    padding: 0.75rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}

.add-task-form input:focus {
    border-color: #5b8cff;
    box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.1);
}

.add-task-form select {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    outline: none;
}

.btn-primary {
    background: #5b8cff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: #4a7ae8;
    transform: translateY(-1px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #7a8eaa;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.empty-state small {
    font-size: 0.75rem;
}

/* History List */
.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-group {
    margin-bottom: 1rem;
}

.history-date {
    font-weight: 600;
    font-size: 0.8rem;
    color: #7a8eaa;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e9ecef;
}

.history-item {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.history-item i {
    color: #7a8eaa;
    width: 20px;
}

.status-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    background: #f0f4ff;
    margin-left: auto;
}

/* Footer */
footer {
    margin-top: 2rem;
    padding: 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: #7a8eaa;
    border-top: 1px solid #e9ecef;
}

/* Responsive */
@media (max-width: 968px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .app-container {
        padding: 1rem;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .add-task-form {
        flex-direction: column;
    }
    
    .btn-primary {
        justify-content: center;
    }
    
    .welcome-section {
        flex-direction: column;
        text-align: center;
    }
}
/* Mobile Menu Styles */
.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #1a2a4f;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border-radius: 0 0 20px 20px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }
    
    .navbar {
        position: relative;
    }
}
/* Keep all your existing styles below */
/* ... (include all your previous CSS styles here) ... */