/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f6fa;
    min-height: 100vh;
    display: flex;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: #1e2a4a;
    color: white;
    padding: 2rem 1rem;
    height: 100vh;
    position: fixed;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 3rem;
    padding-left: 1rem;
}

.nav-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 2rem;
    margin-left: 250px;
}

.breadcrumb {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.header h1 {
    color: #1e2a4a;
    font-size: 2rem;
}

.new-task-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.new-task-btn:hover {
    background-color: #1557b0;
}

/* Header Actions Styles */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-menu {
    position: relative;
    cursor: pointer;
}

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #1a73e8;
}

.profile-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 280px;
    padding: 1rem;
    display: none;
    z-index: 1000;
}

.profile-menu:hover .profile-dropdown {
    display: block;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
}

.dropdown-profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.profile-details {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-weight: 500;
    color: #1e2a4a;
}

.profile-email {
    font-size: 0.9rem;
    color: #666;
}

.dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    color: #1e2a4a;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.dropdown-item:hover {
    background: #f8f9fd;
}

.item-icon {
    font-size: 1.2rem;
}

/* Search and Filter Styles */
.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-container {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 1rem;
    padding-left: 3rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.date-filter {
    display: flex;
    gap: 1rem;
}

.date-input {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

/* Stats Styles */
.task-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #1a73e8;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 1rem;
}

/* Task Board Styles */
.task-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.task-column {
    background-color: #f8f9fd;
    border-radius: 12px;
    padding: 1.5rem;
}

.column-header {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.column-header h2 {
    font-size: 1.2rem;
    color: #1e2a4a;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.to-start .status-dot { background-color: #00bcd4; }
.in-progress .status-dot { background-color: #ffd700; }
.completed .status-dot { background-color: #4caf50; }

/* Task Card Styles */
.task-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: grab;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.task-card h3 {
    color: #1e2a4a;
    margin-bottom: 0.8rem;
    padding-right: 2.5rem;
}

.task-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.priority-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: white;
    text-transform: capitalize;
}

.priority-high { background-color: #ff4444; }
.priority-medium { background-color: #ffbb33; }
.priority-low { background-color: #00C851; }

.tags-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    background: #f0f0f0;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #666;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 2px;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 2px;
    transition: width 0.3s;
}

.task-date {
    color: #999;
    font-size: 0.8rem;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.task-card:hover .task-actions {
    opacity: 1;
}

.task-actions button {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    color: white;
    transition: background-color 0.2s;
}

.task-actions button:first-child {
    background-color: #ff4444;
}

.task-actions button:last-child {
    background-color: #4CAF50;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 500px;
    max-width: 90%;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: #1e2a4a;
}

.modal-input {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
}

textarea.modal-input {
    min-height: 100px;
    resize: vertical;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.modal-buttons button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.modal-buttons button:first-child {
    background: #1a73e8;
    color: white;
}

.modal-buttons button:last-child {
    background: #f0f0f0;
    color: #666;
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #333;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease-out;
    z-index: 1000;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .task-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 80px;
        padding: 1rem 0.5rem;
    }

    .logo {
        font-size: 1.2rem;
        text-align: center;
        padding: 0;
    }

    .nav-item span:not(.nav-icon) {
        display: none;
    }

    .main-content {
        margin-left: 80px;
        padding: 1rem;
    }

    .task-board {
        grid-template-columns: 1fr;
    }

    .search-bar {
        flex-direction: column;
    }

    .task-stats {
        grid-template-columns: 1fr;
    }
}
