
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

.app-container {
    display: flex;
    height: 100vh;
}


.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #E9EBF0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #E9EBF0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
}

.user-role {
    font-size: 12px;
    color: #64748b;
}

.user-dropdown {
    color: #94a3b8;
    font-size: 12px;
    cursor: pointer;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 32px;
}

.nav-section h3 {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding: 0 20px;
}

.nav-section ul {
    list-style: none;
}

.nav-section li {
    display: flex;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.nav-section li:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.nav-section li.active {
    background: #eff6ff;
    color: #3B82F6; 
    border-right: 3px solid #3B82F6;
}

.nav-section li i {
    width: 16px;
    margin-right: 12px;
    font-size: 14px;
    color: #3B82F6;
}

.count {
    margin-left: auto;
    background: #e2e8f0;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.nav-section li.active .count {
    background: #3B82F61A;
    color: #2563EB; 
}

.add-project {
    color: #3B82F6 !important;
    font-weight: 500;
}


.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #F7F8FA;
}

.main-header {
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
}

.top-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #3B82F6;
    border-bottom-color: #3B82F6;
}

.content-toolbar {
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-options {
    display: flex;
    gap: 16px;
}

.view-btn {
    background: white;
    border: none;
    padding: 15px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-btn:hover {
    opacity: 0.5;
}

.view-btn:hover,
.view-btn.active {
    background: #CFF9C3;
    color: #1F8306;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    color: #98A2B2;
;}

.search-box i {
    position: absolute;
    left: 12px;
    color: #C7CED9; 
    font-size: 14px;
}

.search-box input {
    padding: 12px 8px 12px 36px;
    border: 1px solid #EBEEF2; 
    border-radius: 8px;
    font-size: 14px;
    width: 240px;
    transition: border-color 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #3B82F6;
}

.create-task-btn {
    background: #546FFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.create-task-btn:hover {
    background: #1d4ed8;
}


.task-board {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
}

.task-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0px 1px 3px 0px #606C800D;
}


.task-card.completed {
    opacity: 0.7;
    background: #f8fafc;
}

.task-card.completed h3 {
    text-decoration: line-through;
    color: #64748b;
}

.task-card.hidden {
    display: none;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 16px;
}

.task-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1F2633;
    line-height: 20px;
    flex: 1;
}

.task-card p {
    font-size: 14px;
    font-weight: 400;
    color: #1F2633;
    line-height: 20px;
    flex: 1;
}

.task-date {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.task-date.overdue {
    background: #fef2f2;
    color: #dc2626;
}

.task-date.upcoming {
    background: #f0f9ff;
    color: #0284c7;
}




.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 24px;
    border-radius: 12px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1F2633; 
}

.edit-task-btn,
.delete-task-btn {
    background: none;
    border: none;
    color: #3B82F6;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.delete-task-btn {
    color: #dc2626;
}

.edit-task-btn:hover {
    background: #eff6ff;
}

.delete-task-btn:hover {
    background: #fef2f2;
}

.field-group {
    margin-bottom: 20px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #141522; 
}

.field-value {
    font-size: 14px;
    color: #141522; 
    line-height: 1.5;
    min-height: 20px;
}

.date-input-wrapper {
    position: relative;
}

.date-input-wrapper .date-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #141522; 
    pointer-events: none;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

.close {
    color: #94a3b8;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    padding: 4px;
}

.close:hover {
    color: #64748b;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-cancel,
.btn-primary,
.btn-success,
.btn-danger {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-cancel {
    background: #f8fafc;
    border: 1px solid #C2C6E8; 
    color: #54577A; 
}

.btn-cancel:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-primary {
    background: #546FFF; 
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-success {
    background: #16a34a;
    color: white;
}

.btn-success:hover {
    background: #15803d;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Confirmation Modal Styles */
.confirm-modal {
    text-align: center;
    max-width: 400px;
    padding: 32px 24px 24px;
}

.confirm-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.confirm-icon i {
    font-size: 48px;
    color: #dc2626;
    background: #fef2f2;
    padding: 20px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.complete-icon i {
    color: #16a34a;
    background: #f0fdf4;
}

.confirm-modal h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1F2633;
    margin-bottom: 12px;
    line-height: 1.4;
}

.confirm-modal p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.5;
}


@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
        height: auto;
    }
    
    .main-content {
        order: 1;
    }
    
    .main-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .content-toolbar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .toolbar-right {
        justify-content: space-between;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .task-board {
        padding: 16px;
    }
}

/* Welcome Modal Styles */
#welcomeModal .modal-body {
    padding: 20px 0;
}

#welcomeModal .modal-body p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

#welcomeModal .modal-header h2 {
    color: #1F2633;
    font-size: 20px;
    font-weight: 600;
}

/* Welcome Modal Links */
.welcome-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.welcome-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #3B82F6;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.welcome-link:hover {
    background: #eff6ff;
    border-color: #3B82F6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.welcome-link i {
    font-size: 12px;
    color: #3B82F6;
}
