/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
    /* Light Theme (Default) */
    --primary-color: #667eea;
    --primary-dark: #5a6fd8;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #4ade80;
    --warning-color: #fbbf24;
    --danger-color: #f87171;
    --dark-color: #1f2937;
    --light-gray: #f8fafc;
    --medium-gray: #e2e8f0;
    --text-dark: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary-color: #818cf8;
    --primary-dark: #6366f1;
    --secondary-color: #a78bfa;
    --accent-color: #f0abfc;
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --danger-color: #f87171;
    --dark-color: #f8fafc;
    --light-gray: #1f2937;
    --medium-gray: #374151;
    --text-dark: #f8fafc;
    --text-light: #d1d5db;
    --white: #111827;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    --background-gradient: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background-gradient);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    transition: var(--transition);
}

/* Enhanced Auth Modal Styles */
.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: backdropFadeIn 0.5s ease-out;
}

@keyframes backdropFadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(20px);
    }
}

.auth-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: authModalSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes authModalSlideIn {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    overflow: hidden;
}

.background-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: -50px;
    left: -30px;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 20px;
    right: -60px;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.auth-content {
    position: relative;
    padding: 2rem;
    padding-top: 3rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

.auth-header h1 {
    color: var(--primary-color); /* Fallback color */
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), #111827);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Fallback for browsers that don't support background-clip */
    @supports not (-webkit-background-clip: text) {
        color: var(--primary-color);
        background: none;
    }
}


.subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0;
}

.auth-tabs {
    display: flex;
    background: var(--light-gray);
    border-radius: 16px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    color: var(--text-light);
}

.tab-btn.active {
    color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.tab-btn:hover:not(.active) {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.auth-forms {
    position: relative;
    overflow: hidden;
}

.auth-form {
    display: none;
    gap: 1.5rem;
    flex-direction: column;
    animation: formSlideIn 0.4s ease-out;
}

.auth-form.active {
    display: flex;
}

@keyframes formSlideIn {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    z-index: 1;
    transition: color 0.3s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--medium-gray);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper input:focus ~ .input-icon {
    color: var(--primary-color);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-strength {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--medium-gray);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--danger-color), var(--warning-color), var(--success-color));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid var(--medium-gray);
    border-radius: 6px;
    background: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    display: block;
}

.checkbox-text {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.terms-text {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
}

.terms-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid var(--medium-gray);
}

[data-theme="dark"] .dashboard-header {
    background: rgba(17, 24, 39, 0.95);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-header h1 {
    color: var(--dark-color);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

#userWelcome {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem;
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 50px;
    height: 24px;
    background: var(--medium-gray);
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.theme-toggle:hover {
    background: var(--primary-color);
}

.theme-toggle .sun-icon {
    color: var(--warning-color);
    transition: var(--transition);
}

.theme-toggle .moon-icon {
    color: var(--primary-color);
    transition: var(--transition);
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

/* Theme Selector */
.theme-selector {
    position: relative;
}

.theme-selector select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.theme-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* View Toggle */
.view-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-buttons {
    display: flex;
    background: var(--light-gray);
    border-radius: 8px;
    padding: 0.25rem;
    border: 1px solid var(--medium-gray);
}

.view-btn {
    padding: 0.5rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.view-btn:hover:not(.active) {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

/* Edit Controls */
.edit-controls {
    background: var(--white);
    border-bottom: 2px solid var(--primary-color);
    padding: 1rem;
    box-shadow: var(--shadow);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-bottom: 1rem;
}

.edit-toolbar {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.edit-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-section label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.edit-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--text-dark);
}

.edit-btn:hover {
    background: var(--light-gray);
}

.edit-btn.primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.edit-btn.secondary {
    background: var(--text-light);
    color: var(--white);
    border-color: var(--text-light);
}

#columnCount {
    padding: 0.5rem;
    background: var(--light-gray);
    border-radius: 4px;
    font-weight: 600;
    min-width: 2rem;
    text-align: center;
    color: var(--text-dark);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--text-light), var(--text-dark));
    color: var(--white);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.4);
}

/* Kanban Board Styles */
.kanban-board {
    flex: 1;
    padding: 2rem;
    margin: 0 auto;
    max-width: 1400px;
    transition: var(--transition);
}

/* Grid View (Default) */
.kanban-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* List View */
.kanban-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.kanban-list .kanban-column {
    min-height: auto;
}

.kanban-list .task-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
}

.kanban-list .task-card {
    flex: 1 1 300px;
    max-width: 400px;
    margin: 0;
}

/* Timeline View */
.kanban-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kanban-timeline .kanban-column {
    flex-direction: row;
    min-height: 250px;
}

.kanban-timeline .column-header {
    min-width: 200px;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border-bottom: none;
    border-right: 2px solid var(--medium-gray);
    writing-mode: horizontal-tb;
}

.kanban-timeline .task-list {
    flex-direction: row;
    overflow-x: auto;
    padding: 1rem;
    gap: 1rem;
}

.kanban-timeline .task-card {
    min-width: 250px;
    max-width: 300px;
    flex-shrink: 0;
}

.kanban-column {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 600px;
    border: 1px solid var(--medium-gray);
    transition: var(--transition);
}

[data-theme="dark"] .kanban-column {
    background: rgba(17, 24, 39, 0.95);
}

.kanban-column:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.column-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--medium-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--light-gray), var(--white));
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

[data-theme="dark"] .column-header {
    background: linear-gradient(135deg, var(--light-gray), var(--white));
}

.column-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
}

.task-count {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 2rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.task-list {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

/* Task Card Styles */
.task-card {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.task-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.task-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.task-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.task-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.task-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    flex: 1;
}

.btn-progress {
    background: linear-gradient(135deg, var(--warning-color), #f59e0b);
    color: var(--white);
}

.btn-progress:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.btn-complete {
    background: linear-gradient(135deg, var(--success-color), #22c55e);
    color: var(--white);
}

.btn-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
}

/* Enhanced Task Form Styles */
.modal-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease-out;
    border: 1px solid var(--medium-gray);
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--medium-gray);
}

.modal-header h2 {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.close:hover {
    color: var(--danger-color);
    background: rgba(248, 113, 113, 0.1);
    transform: scale(1.1);
}

#taskForm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#taskTitle {
    padding: 1rem 1.25rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#taskTitle:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    background: rgba(102, 126, 234, 0.02);
}

#taskDescription {
    padding: 1rem 1.25rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.6;
}

#taskDescription:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    background: rgba(102, 126, 234, 0.02);
}

/* Fix for select dropdown options visibility */
.select-wrapper select option {
    background: var(--white);
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    border: none;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

/* Ensure dropdown options are visible in dark theme */
[data-theme="dark"] .select-wrapper select option {
    background: var(--white);
    color: var(--text-dark);
}

/* Fix for the select element itself */
.select-wrapper select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text-dark) !important; /* Force dark text */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 3rem;
}

/* Specific styling for different browsers */
.select-wrapper select::-ms-expand {
    display: none;
}

.select-wrapper select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 var(--text-dark);
}

/* Enhanced option styling for better visibility */
.select-wrapper select option {
    background-color: #ffffff !important;
    color: #334155 !important;
    font-weight: 500;
    padding: 8px 12px;
    margin: 2px 0;
    border: none;
    outline: none;
}

.select-wrapper select option:hover {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
}

.select-wrapper select option:checked {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* For webkit browsers */
.select-wrapper select option:focus {
    background-color: var(--primary-color) !important;
    color: white !important;
}


.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--medium-gray);
}

.form-actions button {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.form-actions button[type="button"] {
    background: linear-gradient(135deg, var(--medium-gray), #d1d5db);
    color: var(--text-dark);
    border: 1px solid var(--medium-gray);
}

.form-actions button[type="button"]:hover {
    background: linear-gradient(135deg, var(--text-light), var(--text-dark));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.3);
}

.form-actions button[type="submit"] {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: 1px solid var(--primary-color);
}

.form-actions button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Dark theme adjustments */
[data-theme="dark"] .auth-container {
    background: var(--white);
    border: 1px solid var(--medium-gray);
}

[data-theme="dark"] .auth-background {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

[data-theme="dark"] .logo {
    background: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        max-width: 400px;
        margin: 1rem;
    }
    
    .auth-content {
        padding: 1.5rem;
        padding-top: 2rem;
    }
    
    .auth-header h1 {
        font-size: 1.75rem;
    }
    
    .tab-btn {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .input-wrapper input {
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
    }
    
    .submit-btn {
        padding: 0.875rem;
    }
    
    .kanban-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dashboard-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .dashboard-header h1 {
        font-size: 1.5rem;
    }
    
    .header-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-actions button {
        width: 100%;
        padding: 1rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}

/* Focus states for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus, input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}
