:root {
    --primary-color: #E65C19;
    --primary-light: rgba(230, 92, 25, 0.1);
    --bg-color: #FAFAFA;
    --card-bg: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #737373;
    --border-color: #E5E5E5;
    
    --tag-high-bg: #FEE2E2;
    --tag-high-text: #DC2626;
    --tag-med-bg: #FEF3C7;
    --tag-med-text: #D97706;
    --tag-work-bg: #F5F5F5;
    --tag-work-text: #404040;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.app-container {
    width: 100%;
    max-width: 800px;
    background-color: transparent;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.logo-icon {
    background-color: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

h1 {
    font-size: 20px;
    font-weight: 700;
}

.tasks-progress-text {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Progress Section */
.progress-section {
    margin-bottom: 30px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.progress-header h2 {
    font-size: 15px;
    font-weight: 600;
}

.progress-percentage {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
}

.progress-track {
    height: 8px;
    background-color: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

/* Add Task Section */
.add-task-section {
    margin-bottom: 30px;
}

.add-task-form {
    display: flex;
    gap: 12px;
    padding: 20px;
    border: 2px dashed #D4D4D4;
    border-radius: var(--radius-lg);
    background-color: var(--card-bg);
}

#task-input, .task-assignee {
    flex: 1;
    border: none;
    background-color: var(--bg-color);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: box-shadow 0.2s;
}

.task-assignee {
    flex: 0 0 auto;
    border: 1px solid var(--border-color);
    cursor: pointer;
    background-color: white;
}

#task-input:focus, .task-assignee:focus {
    box-shadow: 0 0 0 2px var(--primary-light);
}

#task-input::placeholder {
    color: #A3A3A3;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background-color: #D35417;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Filters */
.filters-section {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-btn {
    background-color: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: var(--border-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Task List */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.task-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.task-item:hover {
    box-shadow: var(--shadow-md);
    border-color: #D4D4D4;
}

.task-item.completed .task-title {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.task-content-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.checkbox-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox {
    appearance: none;
    width: 100%;
    height: 100%;
    border: 2px solid #D4D4D4;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    background-color: white;
}

.checkbox:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 14px;
}

.checkbox:checked + .checkbox-icon {
    opacity: 1;
}

.task-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-title {
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    flex-wrap: wrap;
}

.task-date {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
}

.tag {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: capitalize;
}

.tag.high {
    background-color: var(--tag-high-bg);
    color: var(--tag-high-text);
}

.tag.medium {
    background-color: var(--tag-med-bg);
    color: var(--tag-med-text);
}

.tag.Ousmane {
    background-color: #E0E7FF;
    color: #4338CA;
}
.tag.PM {
    background-color: #DCFCE7;
    color: #15803D;
}
.tag.Micha {
    background-color: #FAE8FF;
    color: #A21CAF;
}
.tag.CATK {
    background-color: #FFEDD5;
    color: #C2410C;
}
.tag.Hamza {
    background-color: #E0F2FE;
    color: #0369A1;
}

.btn-delete {
    background: none;
    border: none;
    color: #A3A3A3;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover {
    color: #DC2626;
    background-color: #FEF2F2;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.task-item {
    animation: slideIn 0.3s ease forwards;
}

/* Authentication UI */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

.auth-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

.justify-center {
    justify-content: center;
}

.mb-6 {
    margin-bottom: 24px;
}

.auth-title {
    text-align: center;
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 600;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form input {
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.auth-form input:focus {
    box-shadow: 0 0 0 2px var(--primary-light);
    border-color: var(--primary-color);
}

.auth-submit {
    padding: 12px;
    justify-content: center;
    font-size: 16px;
    margin-top: 8px;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-secondary);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 10px;
}

.btn-google {
    background-color: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    transition: background-color 0.2s;
}

.btn-google:hover {
    background-color: var(--bg-color);
}

.btn-google i {
    font-size: 20px;
    color: #DB4437; /* Google red */
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.btn-text:hover {
    text-decoration: underline;
}

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

.btn-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}
.btn-logout:hover {
    color: #DC2626;
}
