/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-logo {
    height: 2rem;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features */
.features {
    padding: 4rem 0;
    color: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Auth Container */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-card h2 i {
    color: #667eea;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 2rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.25rem;
    color: #555;
    user-select: none;
    min-height: 1.25rem;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: white;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.05);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #667eea;
    border-color: #667eea;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.btn-full {
    width: 100%;
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Dashboard */
.dashboard {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 2rem auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard h2 {
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard h2 i {
    color: #667eea;
}

.user-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
}

.user-info h3 {
    color: #333;
    margin-bottom: 1rem;
}

.user-info p {
    margin-bottom: 0.5rem;
    color: #666;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.toast.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

.toast.info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .auth-card {
        margin: 1rem;
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard {
        margin: 1rem;
        padding: 2rem;
    }
    
    .dashboard-actions {
        flex-direction: column;
    }
    
    .toast {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .features {
        padding: 2rem 0;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
}

/* Projects Styles */
.projects-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.projects-header h2 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.projects-header h2 i {
    color: #667eea;
    font-size: 1.25rem;
}

.projects-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: flex-end;
}

.projects-toolbar {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.25rem;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.toolbar-group {
    display: flex;
    gap: 0.125rem;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
    margin: 0 0.5rem;
}

.toolbar-btn {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.toolbar-btn:hover {
    background: white;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.toolbar-btn.view-toggle.active {
    background: white;
    color: #667eea;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toolbar-btn.toggle-completed.active {
    background: white;
    color: #10b981;
}

.toolbar-btn.btn-primary-toolbar {
    background: #667eea;
    color: white;
}

.toolbar-btn.btn-primary-toolbar:hover {
    background: #5a6fd8;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.toolbar-label {
    font-weight: 500;
}

/* Legacy styles - removed in favor of toolbar buttons */

/* Header h2 styles moved to main projects-header section */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.35s cubic-bezier(.4,2,.6,1), opacity 0.35s cubic-bezier(.4,2,.6,1), box-shadow 0.3s, border-color 0.3s;
    min-height: fit-content;
    height: auto;
    position: relative;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    margin-right: 1rem;
}

/* Ensure proper word wrapping and display for project titles */
.project-title-edit {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.6;
    flex: 1;
    min-width: 200px;
    max-width: 100%;
    border: 1px solid transparent;
    background: transparent;
    font-family: inherit;
    outline: none;
    padding: 0.5rem 0.5rem 0.5rem 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    resize: none;
    min-height: auto;
    height: auto;
    max-height: none;
    overflow: visible;
    vertical-align: top;
    box-sizing: border-box;
    display: block;
    width: 100%;
    word-break: break-word;
}

.project-title-edit:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: #e9ecef;
}

.project-title-edit:focus {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
    min-width: 300px;
    height: auto;
    min-height: auto;
    max-height: none;
}

.project-title-edit::placeholder {
    color: #999;
    font-style: italic;
    font-weight: normal;
}

.project-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
    margin-right: 0.5rem;
}

.project-status-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-priority-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}

/* Select Styles */
select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1rem;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Project Dropdown Overrides */
.project-status-select,
.project-priority-select {
    width: auto !important;
    padding: 0.25rem 0.5rem !important;
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    background-color: #f8f9fa !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.5rem center !important;
    background-size: 1rem !important;
    padding-right: 2rem !important;
    color: #333 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    min-width: 100px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

/* Aggressive option styling reset */
.project-status-select *,
.project-priority-select * {
    box-sizing: border-box !important;
}

.project-status-select option,
.project-priority-select option {
    background-color: #fff !important;
    color: #333 !important;
    padding: 0.5rem !important;
    border: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Remove all pseudo-class styling first */
.project-status-select option:hover,
.project-status-select option:focus,
.project-status-select option:active,
.project-status-select option:checked,
.project-status-select option:selected,
.project-priority-select option:hover,
.project-priority-select option:focus,
.project-priority-select option:active,
.project-priority-select option:checked,
.project-priority-select option:selected {
    background-color: unset !important;
    background: unset !important;
    color: unset !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.project-status-select {
    min-width: 120px !important;
}

.project-status-select:hover,
.project-priority-select:hover {
    background-color: #e9ecef !important;
    border-color: #ddd !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.project-status-select:focus,
.project-priority-select:focus {
    outline: none !important;
    background-color: #fff !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2) !important;
    transform: none !important;
}

/* Simplified option styling - just colors, no hover states */
.project-status-select option[value="New"] {
    background-color: #3b82f6 !important;
    color: white !important;
}

.project-status-select option[value="In Progress"] {
    background-color: #f59e0b !important;
    color: white !important;
}

.project-status-select option[value="Complete"] {
    background-color: #10b981 !important;
    color: white !important;
}

.project-priority-select option[value="Low"] {
    background-color: #10b981 !important;
    color: white !important;
}

.project-priority-select option[value="Medium"] {
    background-color: #f59e0b !important;
    color: white !important;
}

.project-priority-select option[value="High"] {
    background-color: #dc2626 !important;
    color: white !important;
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-status.new {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.project-status.in-progress {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.project-status.completed {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.project-status.on-hold {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
    color: white !important;
    opacity: 0.8;
    border-color: #4b5563 !important;
}

.project-priority {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.priority-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.priority-indicator.low {
    background: #10b981;
}

.priority-indicator.medium {
    background: #f59e0b;
}

.priority-indicator.high {
    background: #dc2626;
}

.project-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-description-edit {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: #666;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.5;
    resize: none;
    outline: none;
    padding: 0.5rem 0.5rem 0.5rem 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    min-height: auto;
    height: auto;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-description-edit:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: #e9ecef;
}

.project-description-edit:focus {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.project-description-edit::placeholder {
    color: #999;
    font-style: italic;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.attachment-count {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 12px;
    background: #f5f7fa;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 4px rgba(30,41,59,0.06);
    color: #64748b;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(.4,2,.6,1);
}
.attachment-count i {
    color: #64748b;
    font-size: 1.08rem;
    margin-right: 0.18rem;
}
.attachment-count span {
    color: #475569;
    font-weight: 600;
    font-size: 1.02rem;
}
.attachment-count:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    box-shadow: 0 2px 8px rgba(30,41,59,0.10);
    color: #334155;
    transform: translateY(-1px) scale(1.02);
}
.attachment-count:hover i {
    color: #334155;
}
.attachment-count:hover span {
    color: #334155;
}

.attachment-count:hover {
    background-color: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Project Detail Styles */
.project-detail-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.project-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-detail-actions {
    display: flex;
    gap: 1rem;
}

.project-detail-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-info {
    margin-bottom: 2rem;
}

.project-info h1 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-badges {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.project-description-full {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Attachments Section */
.attachments-section {
    margin-top: 2rem;
}

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

.attachments-header h3 {
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.attachments-list {
    display: grid;
    gap: 1rem;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.attachment-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.attachment-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
}

.attachment-icon.file {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.attachment-icon.link {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.attachment-details h4 {
    margin: 0;
    color: #333;
    font-size: 1rem;
}

.attachment-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.attachment-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

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

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.modal-body {
    padding: 2rem;
}

/* Reduced padding for todo modal to save space */
#todoModal .modal-body {
    padding: 1rem 2rem;
}

/* Attachment Tabs */
.attachment-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* File Upload Styles */
.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.file-upload-area.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.file-upload-area i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.file-upload-area p {
    color: #666;
    margin: 0;
}

/* Textarea Styles */
textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #999;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #999;
    margin-bottom: 2rem;
}

/* Responsive Design for Projects */
@media (max-width: 1024px) {
    .toolbar-label {
        display: none;
    }
    
    .toolbar-btn {
        padding: 0.5rem;
    }
    
    .projects-header h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .projects-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }
    
    .projects-header h2 {
        text-align: center;
        font-size: 1.25rem;
    }
    
    .projects-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .qxl-search-component {
        max-width: 100%;
        min-width: 100%;
    }
    
    .projects-toolbar {
        width: 100%;
        justify-content: space-around;
        padding: 0.375rem;
    }
    
    .toolbar-btn {
        padding: 0.5rem 0.625rem;
        font-size: 0.875rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .project-delete-btn-corner {
        top: 0.75rem;
        right: 0.75rem;
        width: 32px;
        height: 32px;
        opacity: 0.7;
    }
    
    .project-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .project-title-edit {
        min-width: 100%;
        max-width: 100%;
        font-size: 1rem;
    }
    
    .project-title-edit:focus {
        min-width: 100%;
    }
    
    .project-controls {
        justify-content: space-between;
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .project-status-container,
    .project-priority-container {
        flex: 1;
        min-width: 120px;
    }
    
    .project-description-edit {
        font-size: 0.9rem;
    }
    
    .project-detail-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-todo-kpis {
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
        font-size: 0.7rem;
    }
    
    .todo-kpi-item {
        font-size: 0.65rem;
    }
    
    .project-todo-kpis i {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 0;
    }
    
    .project-card {
        padding: 1rem;
        margin: 0;
    }
    
    .project-delete-btn-corner {
        top: 0.5rem;
        right: 0.5rem;
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        opacity: 0.8;
    }
    
    .project-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .project-status-container,
    .project-priority-container {
        width: 100%;
        justify-content: space-between;
    }
    
    .custom-dropdown {
        min-width: 100px;
        flex: 1;
    }
    
    .project-todo-kpis {
        font-size: 0.6rem;
        gap: 0.25rem;
    }
    
    .todo-kpi-item {
        font-size: 0.6rem;
    }
    
    .project-todo-kpis i {
        font-size: 0.7rem;
    }
}

/* Cache bust: 20250531152310 */

/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    display: inline-block;
    min-width: 120px;
    width: 120px;
    flex: none;
}

.custom-dropdown.status,
.custom-dropdown.priority {
    min-width: 120px;
    width: 120px;
    flex: none;
}

.dropdown-trigger {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    padding-right: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.dropdown-trigger:hover {
    background-color: #e9ecef;
    border-color: #ddd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dropdown-trigger:focus {
    outline: none;
    background-color: #fff;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
    transform: none;
}

.dropdown-trigger::after {
    content: '';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #666;
    transition: transform 0.2s ease;
}

.dropdown-trigger.open::after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: #333;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    transition: background-color 0.2s ease;
}

.dropdown-option:hover {
    background-color: #f8f9fa;
}

.dropdown-option:focus {
    outline: none;
    background-color: #e9ecef;
}

.dropdown-option.selected {
    background-color: #667eea;
    color: white;
}

/* Status option colors */
.dropdown-option.status-new {
    background-color: #3b82f6;
    color: white;
}

.dropdown-option.status-new:hover {
    background-color: #2563eb;
}

.dropdown-option.status-in-progress {
    background-color: #f59e0b;
    color: white;
}

.dropdown-option.status-in-progress:hover {
    background-color: #d97706;
}

.dropdown-option.status-complete {
    background-color: #10b981;
    color: white;
}

.dropdown-option.status-complete:hover {
    background-color: #059669;
}

.dropdown-option.status-on-hold {
    background-color: #6b7280;
    color: white;
    opacity: 0.8;
}

.dropdown-option.status-on-hold:hover {
    background-color: #4b5563;
}

.dropdown-option.status-on-hold.highlighted,
.dropdown-option.status-on-hold.selected {
    background-color: #4b5563 !important;
    color: white !important;
}

/* Priority option colors */
.dropdown-option.priority-low {
    background-color: #10b981;
    color: white;
}

.dropdown-option.priority-low:hover {
    background-color: #059669;
}

.dropdown-option.priority-medium {
    background-color: #f59e0b;
    color: white;
}

.dropdown-option.priority-medium:hover {
    background-color: #d97706;
}

.dropdown-option.priority-high {
    background-color: #dc2626 !important;
    color: white !important;
}

.dropdown-option.priority-high:hover {
    background-color: #b91c1c !important;
}

.dropdown-option.highlighted:not(.priority-high):not(.priority-medium):not(.priority-low):not(.status-new):not(.status-in-progress):not(.status-complete):not(.status-on-hold) {
    background-color: #667eea !important;
    color: white !important;
}

.project-priority-select option[value="High"] {
    background-color: #dc2626 !important;
    color: white !important;
}

/* Update dropdown arrow color for colored triggers */
.custom-dropdown[data-current-value="New"] .dropdown-trigger::after,
.custom-dropdown[data-current-value="In Progress"] .dropdown-trigger::after,
.custom-dropdown[data-current-value="Complete"] .dropdown-trigger::after,
.custom-dropdown[data-current-value="High"] .dropdown-trigger::after,
.custom-dropdown[data-current-value="Medium"] .dropdown-trigger::after,
.custom-dropdown[data-current-value="Low"] .dropdown-trigger::after {
    border-top-color: white !important;
}

/* Form dropdown styles */
.custom-dropdown.form-dropdown {
    width: 100%;
    min-width: 100%;
}

.custom-dropdown.form-dropdown .dropdown-trigger {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    font-size: 1rem;
    border-radius: 10px;
    border: 2px solid #e1e5e9;
    background: white;
    transition: all 0.3s ease;
}

.custom-dropdown.form-dropdown .dropdown-trigger:hover {
    border-color: #ddd;
    background-color: #f8f9fa;
}

.custom-dropdown.form-dropdown .dropdown-trigger:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: white;
}

.custom-dropdown.form-dropdown .dropdown-trigger::after {
    right: 1rem;
    border-top: 6px solid #666;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

.custom-dropdown.form-dropdown .dropdown-menu {
    border-radius: 10px;
    border: 2px solid #e1e5e9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.custom-dropdown.form-dropdown .dropdown-option {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

/* Form dropdown color overrides for colored triggers */
.custom-dropdown.form-dropdown[data-current-value="New"] .dropdown-trigger::after,
.custom-dropdown.form-dropdown[data-current-value="In Progress"] .dropdown-trigger::after,
.custom-dropdown.form-dropdown[data-current-value="Complete"] .dropdown-trigger::after,
.custom-dropdown.form-dropdown[data-current-value="High"] .dropdown-trigger::after,
.custom-dropdown.form-dropdown[data-current-value="Medium"] .dropdown-trigger::after,
.custom-dropdown.form-dropdown[data-current-value="Low"] .dropdown-trigger::after {
    border-top-color: white !important;
}

/* To-Do List Styles */
.project-todo-kpis {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-wrap: wrap;
}

.project-todo-kpis:hover {
    background-color: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.project-todo-kpis i {
    color: #667eea;
    font-size: 0.9rem;
}

.todo-kpi-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.kpi-label {
    color: #666;
    font-weight: 500;
}

.kpi-value {
    color: #333;
    font-weight: 600;
    min-width: 1.2rem;
    text-align: center;
}

.kpi-value.kpi-completed {
    color: #10b981;
}

.kpi-value.kpi-pending {
    color: #f59e0b;
}

.project-date-area {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.project-date-area:hover {
    background-color: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.todo-section {
    padding: 0;
}

.todo-add-form {
    margin-bottom: 1rem;
}

.todo-form {
    width: 100%;
}

.todo-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.todo-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.todo-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.todo-stats {
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.stat-item i {
    color: #667eea;
}

/* Enhanced scrollable todo list styles */
.todo-list[style*="overflow-y: auto"] {
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #667eea rgba(0, 0, 0, 0.1);
}

/* Webkit scrollbar styling for todo list */
.todo-list[style*="overflow-y: auto"]::-webkit-scrollbar {
    width: 8px;
}

.todo-list[style*="overflow-y: auto"]::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.todo-list[style*="overflow-y: auto"]::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.todo-list[style*="overflow-y: auto"]::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Fade effect for scrollable content */
.todo-list[style*="overflow-y: auto"]::before {
    content: '';
    position: sticky;
    top: 0;
    height: 10px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    z-index: 1;
    pointer-events: none;
    margin-bottom: -10px;
}

.todo-list[style*="overflow-y: auto"]::after {
    content: '';
    position: sticky;
    bottom: 0;
    height: 10px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    z-index: 1;
    pointer-events: none;
    margin-top: -10px;
}

/* Ensure todo items have proper spacing in scrollable list */
.todo-list[style*="overflow-y: auto"] .todo-item {
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

.todo-list[style*="overflow-y: auto"] .todo-item:last-child {
    margin-bottom: 0;
}

/* Enhanced modal body scrolling for todo modal */
.modal-body[style*="overflow-y: auto"] {
    scrollbar-width: thin;
    scrollbar-color: #667eea rgba(0, 0, 0, 0.1);
}

.modal-body[style*="overflow-y: auto"]::-webkit-scrollbar {
    width: 8px;
}

.modal-body[style*="overflow-y: auto"]::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.modal-body[style*="overflow-y: auto"]::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.modal-body[style*="overflow-y: auto"]::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.2s ease;
}

.todo-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.todo-item.completed {
    opacity: 0.7;
    border-left-color: #10b981;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: #999;
}

.todo-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.todo-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.todo-text {
    font-size: 1rem;
    color: #333;
    word-break: break-word;
}

.todo-text-editable {
    font-size: 1rem;
    color: #333;
    word-break: break-word;
    outline: none;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
    transition: all 0.2s ease;
    cursor: text;
    min-height: 1.5rem;
    line-height: 1.4;
}

.todo-text-editable:hover {
    background-color: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.2);
}

.todo-text-editable:focus {
    background-color: white;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
    cursor: text;
}

.todo-text-editable:empty:before {
    content: "Enter task...";
    color: #999;
    font-style: italic;
}

.todo-item.completed .todo-text-editable {
    text-decoration: line-through;
    color: #999;
}

.todo-item.completed .todo-text-editable:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.todo-text-edit {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    resize: none;
}

.todo-actions {
    display: flex;
    gap: 0.5rem;
}

.todo-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #666;
}

.todo-action-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.todo-action-btn.edit {
    color: #667eea;
}

.todo-action-btn.edit:hover {
    background: rgba(102, 126, 234, 0.1);
}

.todo-action-btn.delete {
    color: #ef4444;
}

.todo-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.1);
}

.todo-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #999;
}

.todo-empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.todo-empty-state h4 {
    color: #666;
    margin-bottom: 0.5rem;
}

/* Responsive Design for To-Do List */
@media (max-width: 768px) {
    .todo-input-group {
        flex-direction: row !important;
        gap: 0.5rem !important;
        align-items: center;
    }
    
    .todo-input {
        flex: 1;
    }
    
    /* Compact plus button for mobile */
    .todo-input-group .btn {
        padding: 0;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
        color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        touch-action: manipulation;
    }
    
    .todo-input-group .btn .fa-plus {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        padding: 0;
        font-size: 1.1rem;
        line-height: 1;
        color: white;
        pointer-events: none;
    }
    
    .todo-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .todo-item {
        flex-wrap: wrap;
        position: relative;
        overflow: hidden;
        touch-action: pan-y;
        transition: transform 0.3s ease, background-color 0.3s ease;
    }
    
    /* Hide delete button on mobile */
    .todo-item .todo-action-btn.delete {
        display: none;
    }
    
    .todo-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* Swipe indicator styles */
    .todo-item::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 80px;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.1));
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 1;
    }
    
    .todo-item::after {
        content: '\f1f8';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        color: #ef4444;
        font-size: 1.2rem;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 2;
    }
    
    /* Swipe states */
    .todo-item.swiping {
        background-color: rgba(239, 68, 68, 0.05);
    }
    
    .todo-item.swiping::before {
        opacity: 1;
    }
    
    .todo-item.swiping::after {
        opacity: 0.8;
    }
    
    .todo-item.swipe-threshold {
        background-color: rgba(239, 68, 68, 0.1);
    }
    
    .todo-item.swipe-threshold::before {
        background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.2));
    }
    
    .todo-item.swipe-threshold::after {
        opacity: 1;
        animation: pulse-delete 0.6s ease-in-out infinite alternate;
    }
    
    @keyframes pulse-delete {
        0% {
            transform: translateY(-50%) scale(1);
        }
        100% {
            transform: translateY(-50%) scale(1.1);
        }
    }
}

@media (max-width: 480px) {
    .todo-input-group {
        flex-direction: row !important;
        gap: 0.4rem !important;
        align-items: center;
    }
    
    .todo-input {
        flex: 1;
    }
    
    /* Compact plus button for mobile */
    .todo-input-group .btn {
        padding: 0 !important;
        border-radius: 50%;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
        color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        touch-action: manipulation;
    }
    
    .todo-input-group .btn .fa-plus {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        padding: 0;
        font-size: 1rem !important;
        line-height: 1;
        color: white;
        pointer-events: none;
    }
    
    .todo-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .todo-item {
        flex-wrap: wrap;
        position: relative;
        overflow: hidden;
        touch-action: pan-y;
        transition: transform 0.3s ease, background-color 0.3s ease;
    }
    
    /* Hide delete button on mobile */
    .todo-item .todo-action-btn.delete {
        display: none;
    }
    
    .todo-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* Swipe indicator styles */
    .todo-item::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 80px;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.1));
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 1;
    }
    
    .todo-item::after {
        content: '\f1f8';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        color: #ef4444;
        font-size: 1.2rem;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 2;
    }
    
    /* Swipe states */
    .todo-item.swiping {
        background-color: rgba(239, 68, 68, 0.05);
    }
    
    .todo-item.swiping::before {
        opacity: 1;
    }
    
    .todo-item.swiping::after {
        opacity: 0.8;
    }
    
    .todo-item.swipe-threshold {
        background-color: rgba(239, 68, 68, 0.1);
    }
    
    .todo-item.swipe-threshold::before {
        background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.2));
    }
    
    .todo-item.swipe-threshold::after {
        opacity: 1;
        animation: pulse-delete 0.6s ease-in-out infinite alternate;
    }
    
    @keyframes pulse-delete {
        0% {
            transform: translateY(-50%) scale(1);
        }
        100% {
            transform: translateY(-50%) scale(1.1);
        }
    }
}

/* Project Delete Button */
.project-delete-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    opacity: 0.6;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 0.5rem;
}

/* Corner positioned delete button */
.project-delete-btn-corner {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    opacity: 0.7;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.project-delete-btn:hover,
.project-delete-btn-corner:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    opacity: 1;
    transform: scale(1.1);
}

.project-delete-btn-corner:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #dc2626;
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.3);
    transform: scale(1.05);
}

.project-delete-btn:active,
.project-delete-btn-corner:active {
    transform: scale(0.95);
}

/* Show delete button on card hover */
.project-card {
    position: relative;
}

.project-card:hover .project-delete-btn-corner {
    opacity: 1;
}

.project-card:hover .project-delete-btn-corner:hover {
    opacity: 1;
}

/* Delete Confirmation Modal Styles */
.delete-modal-content {
    max-width: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.2);
    animation: modalSlideIn 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#deleteConfirmModal {
    animation: backdropFadeIn 0.18s ease-out;
}

@keyframes backdropFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.delete-modal-header {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.delete-icon-container {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    }
}

.delete-modal-header h3 {
    color: #dc2626;
    margin: 0;
    flex: 1;
    font-size: 1.4rem;
    font-weight: 600;
}

.delete-modal-body {
    padding: 2rem;
    background: white;
}

.delete-warning {
    text-align: center;
    margin-bottom: 2rem;
}

.delete-project-name {
    color: #666;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.project-title-highlight {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.75rem 0;
    font-weight: 600;
    color: #dc2626;
    text-align: center;
    font-size: 1.1rem;
}

.todo-text-highlight {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0.75rem 0;
    font-weight: 500;
    color: #dc2626;
    text-align: center;
    font-size: 1rem;
    font-style: italic;
    max-height: 100px;
    overflow-y: auto;
    word-wrap: break-word;
}

.attachment-name-highlight {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0.75rem 0;
    font-weight: 500;
    color: #1d4ed8;
    text-align: center;
    font-size: 1rem;
    font-style: italic;
    max-height: 100px;
    overflow-y: auto;
    word-wrap: break-word;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.attachment-name-highlight i {
    color: #3b82f6;
    font-size: 1.1rem;
}

.delete-consequences {
    margin-bottom: 1.5rem;
}

.delete-consequences h5 {
    color: #374151;
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delete-consequences h5 i {
    color: #3b82f6;
}

.consequences-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
}

.consequences-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #374151;
    font-size: 0.95rem;
}

.consequences-list li:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.consequences-list li i {
    color: #ef4444;
    width: 16px;
    text-align: center;
}

.delete-warning-box {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #dc2626;
    font-size: 0.95rem;
}

.delete-warning-box i {
    font-size: 1.2rem;
    color: #ef4444;
}

.delete-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.delete-confirm-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    position: relative;
    overflow: hidden;
}

.delete-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.delete-confirm-btn:active {
    transform: translateY(0);
}

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

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

/* Responsive Design for Delete Modal */
@media (max-width: 768px) {
    .delete-modal-content {
        max-width: 90%;
        margin: 1rem;
    }
    
    .delete-modal-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .delete-modal-body {
        padding: 1.5rem;
    }
    
    .delete-actions {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }
    
    .delete-actions button {
        width: 100%;
        justify-content: center;
    }
    
    .project-title-highlight {
        font-size: 1.1rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Compact Todo Delete Modal */
#todoDeleteConfirmModal .delete-modal-header {
    padding: 1rem 1.5rem;
    gap: 0.75rem;
}

#todoDeleteConfirmModal .delete-modal-header h3 {
    font-size: 1.2rem;
}

#todoDeleteConfirmModal .delete-icon-container {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

#todoDeleteConfirmModal .delete-modal-body {
    padding: 1rem 1.5rem;
}

#todoDeleteConfirmModal .delete-warning {
    margin-bottom: 1.5rem;
}

#todoDeleteConfirmModal .todo-text-highlight {
    padding: 0.5rem 0.75rem;
    margin: 0;
    font-size: 0.95rem;
}

#todoDeleteConfirmModal .delete-actions {
    gap: 0.75rem;
    margin-top: 0;
}

#todoDeleteConfirmModal .delete-actions button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Cache bust: 20250531152310 */

/* Search Component - Self-contained styles */
.qxl-search-component {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 320px;
    min-width: 200px;
    position: relative;
}

.qxl-search-component:focus-within {
    background: white;
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.1);
}

.qxl-search-component .search-icon {
    color: #999;
    margin-right: 0.75rem;
    font-size: 1rem;
    flex-shrink: 0;
}

.qxl-search-component .search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #333;
    background: transparent;
    padding: 0.25rem 0;
    min-width: 0;
}

.qxl-search-component .search-input::placeholder {
    color: #999;
    font-style: italic;
}

.qxl-search-component .search-clear-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qxl-search-component .search-clear-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.qxl-search-component .search-clear-btn i {
    font-size: 0.8rem;
}

/* Search Results Info Component */
.qxl-search-results-info {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #667eea;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: qxlSlideDown 0.3s ease;
}

@keyframes qxlSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qxl-search-results-info i {
    color: #667eea;
}

/* Search Highlighting Component */
.qxl-search-highlight {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
    color: #92400e;
}

/* Search Match Preview Component */
.qxl-search-match-preview {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.qxl-search-match-preview strong {
    color: #667eea;
    font-weight: 600;
}

/* Todo Match Info Component */
.qxl-todo-match-info {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 0;
    font-size: 0.85rem;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.qxl-todo-match-info i {
    color: #10b981;
}

/* Responsive adjustments for search component */
@media (max-width: 768px) {
    .qxl-search-component {
        max-width: 100%;
        min-width: 280px;
    }
}

@media (max-width: 480px) {
    .qxl-search-component {
        padding: 0.5rem 0.75rem;
        min-width: 100%;
    }
    
    .qxl-search-component .search-input {
        font-size: 0.9rem;
    }
    
    .btn-icon-text .btn-text {
        display: none;
    }
    
    .btn-icon-text {
        padding: 0.625rem;
    }
    
    .toolbar-btn {
        padding: 0.625rem;
    }
    
    .toolbar-divider {
        margin: 0 0.25rem;
    }
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Priority indicator colors */
.priority-indicator.high {
    background: #dc2626;
}

/* Dropdown trigger colors based on selection */
.custom-dropdown[data-current-value="New"] .dropdown-trigger {
    background-color: #3b82f6 !important;
    color: white !important;
    border-color: #2563eb !important;
}

.custom-dropdown[data-current-value="In Progress"] .dropdown-trigger {
    background-color: #f59e0b !important;
    color: white !important;
    border-color: #d97706 !important;
}

.custom-dropdown[data-current-value="Complete"] .dropdown-trigger {
    background-color: #10b981 !important;
    color: white !important;
    border-color: #059669 !important;
}

.custom-dropdown[data-current-value="High"] .dropdown-trigger {
    background-color: #dc2626 !important;
    color: white !important;
    border-color: #b91c1c !important;
}

.custom-dropdown[data-current-value="Medium"] .dropdown-trigger {
    background-color: #f59e0b !important;
    color: white !important;
    border-color: #d97706 !important;
}

.custom-dropdown[data-current-value="Low"] .dropdown-trigger {
    background-color: #10b981 !important;
    color: white !important;
    border-color: #059669 !important;
}

/* Update dropdown arrow color for colored triggers */

/* Form Actions Split Layout */
.form-actions-split {
    display: flex !important;
    gap: 1rem;
    justify-content: center;
    flex-wrap: nowrap !important;
    width: 100%;
    margin-top: 1rem;
}

.btn-half-width {
    flex: 1;
    max-width: calc(50% - 0.5rem);
    min-width: 120px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure cancel button is visible */
#projectFormCancelBtn {
    background: #dc3545 !important;
    color: white !important;
    border: 2px solid #dc3545 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 44px !important;
    font-weight: 600 !important;
}

/* Responsive adjustments for split form actions */
@media (max-width: 480px) {
    .form-actions-split {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-half-width {
        max-width: 100%;
        width: 100%;
    }
}

/* Cache bust: 20250531152310 */

/* Legacy toggle styles - kept for compatibility */
.completed-toggle-container {
    display: none;
}

/* Projects title container for mobile toggle */
.projects-title-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.projects-title-container h2 {
    margin: 0;
}

/* Visibility classes */
.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin: 0;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: all 0.3s ease;
    border-radius: 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: inset 0 2px 4px rgba(16, 185, 129, 0.3);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    user-select: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.completed-toggle-container:hover .toggle-label {
    color: #667eea;
}

/* Small label for mobile toggle */
.toggle-label-small {
    font-size: 0.7rem;
    font-weight: 500;
    color: #666;
    text-align: center;
    line-height: 1;
    margin-bottom: 0.25rem;
    user-select: none;
}

/* Legacy view toggle styles - kept for compatibility */
.view-toggle-buttons {
    display: none;
}

/* Table View Styles */
.projects-table-container {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    overflow-y: visible;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
}

.projects-table th {
    text-align: left;
    padding: 1rem;
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.projects-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.projects-table th.sortable:hover {
    background: #f1f5f9;
}

.projects-table .sort-icon {
    display: inline-block;
    margin-left: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.projects-table th.sortable:hover .sort-icon {
    opacity: 1;
}

.projects-table th.sort-asc .sort-icon i:before {
    content: "\f0de";
}

.projects-table th.sort-desc .sort-icon i:before {
    content: "\f0dd";
}

.projects-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.projects-table tbody tr {
    transition: all 0.2s;
    cursor: pointer;
}

.projects-table tbody tr:hover {
    background: #f0f4ff;
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.projects-table .project-title-cell {
    font-weight: 600;
    color: #1e293b;
}

.projects-table .status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.projects-table .status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.projects-table .status-badge.completed {
    background: #e0e7ff;
    color: #3730a3;
}

.projects-table .priority-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.projects-table .priority-badge.priority-high {
    background: #fee2e2;
    color: #dc2626;
}

.projects-table .priority-badge.priority-medium {
    background: #fed7aa;
    color: #ea580c;
}

.projects-table .priority-badge.priority-low {
    background: #d1fae5;
    color: #059669;
}

/* Custom dropdowns in table */
.projects-table .custom-dropdown {
    display: inline-block;
    min-width: 100px;
    position: relative;
    z-index: 10;
}

.projects-table .custom-dropdown.open {
    z-index: 9999;
}

.projects-table .dropdown-cell {
    overflow: visible !important;
    position: relative;
    z-index: 10;
}

.projects-table .description-cell {
    width: 30%;
    max-width: 300px;
    padding: 0.5rem 1rem;
}

.projects-table .table-description-edit {
    width: 100%;
    border: none;
    background: transparent;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #475569;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    overflow: hidden;
}

.projects-table .table-description-edit:hover {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.projects-table .table-description-edit:focus,
.projects-table .table-description-edit.focused {
    background: white;
    border: 1px solid #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.projects-table .custom-dropdown .dropdown-trigger {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 9999px;
    font-weight: 500;
}

.projects-table .custom-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10000;
    min-width: 120px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.projects-table .custom-dropdown .dropdown-menu.open {
    z-index: 10001;
}

.projects-table td {
    position: relative;
    overflow: visible;
}

.projects-table tbody tr {
    position: relative;
    z-index: 1;
}

.projects-table tbody tr:hover {
    z-index: 2;
}

.projects-table .progress-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.projects-table .progress-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    max-width: 100px;
}

.projects-table .progress-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.projects-table .progress-text {
    font-size: 0.875rem;
    color: #64748b;
    min-width: 45px;
}

.projects-table .action-buttons {
    display: flex;
    gap: 0.5rem;
}

.projects-table .action-btn {
    padding: 0.375rem 0.625rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.projects-table .action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

.projects-table .action-btn.edit {
    color: #3b82f6;
}

.projects-table .action-btn.edit:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

.projects-table .action-btn.delete {
    color: #ef4444;
}

.projects-table .action-btn.delete:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

.projects-table .todo-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.projects-table .todo-count .completed {
    color: #10b981;
}

.projects-table .todo-count .total {
    color: #64748b;
}

/* Responsive adjustments for toggle */
@media (max-width: 768px) {
    .mobile-only {
        display: flex;
    }
    
    .desktop-only {
        display: none;
    }
    
    .projects-title-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .projects-title-container .completed-toggle-container {
        padding: 0.25rem 0.5rem;
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid #e1e5e9;
        font-size: 0.8rem;
        gap: 0;
        flex-direction: column;
        align-items: center;
    }
    
    .projects-title-container .toggle-switch {
        width: 36px;
        height: 18px;
    }
    
    .projects-title-container .toggle-slider:before {
        height: 14px;
        width: 14px;
        left: 2px;
        bottom: 2px;
    }
    
    .projects-title-container .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(18px);
    }
    
    .projects-header {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .qxl-search-component {
        order: 1;
        flex: 1;
        min-width: 280px;
    }
    
    #newProjectBtn {
        order: 2;
        flex-shrink: 0;
    }
    
    /* Hide todo stats on mobile */
    .todo-stats {
        display: none;
    }
}

@media (max-width: 480px) {
    .projects-title-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .projects-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .qxl-search-component {
        order: 1;
    }
    
    #newProjectBtn {
        order: 2;
    }
}

/* Modern confirm/cancel button styles for delete modals */
.modern-confirm-btn, .modern-cancel-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10), 0 1.5px 4px rgba(34,197,94,0.10);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s cubic-bezier(.4,2,.6,1), box-shadow 0.15s;
    outline: none;
}
.modern-confirm-btn:focus, .modern-cancel-btn:focus {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}
.modern-cancel-btn:focus {
    outline-color: #ef4444;
}
.modern-confirm-btn:hover, .modern-cancel-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.16), 0 2px 8px rgba(34,197,94,0.13);
    z-index: 2;
}
.modern-cancel-btn:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.16), 0 2px 8px rgba(239,68,68,0.13);
}
.modern-confirm-btn svg, .modern-cancel-btn svg {
    display: block;
}

@media (max-width: 480px) {
    .attachment-count {
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        font-size: 0.92rem !important;
        padding: 0.1rem 0.2rem !important;
        border-radius: 6px !important;
        gap: 0.18rem !important;
        color: #64748b !important;
        font-weight: 500 !important;
        min-width: 0 !important;
    }
    .attachment-count i {
        font-size: 0.98rem !important;
        margin-right: 0.08rem !important;
    }
    .attachment-count span {
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        color: #64748b !important;
    }
}

@media (min-width: 769px) {
  .project-todo-kpis {
    font-size: 1.08rem;
    gap: 1.1rem;
  }
  .project-todo-kpis i {
    font-size: 1.25rem;
  }
  .todo-kpi-item {
    font-size: 1.08rem;
    gap: 0.4rem;
  }
  .kpi-label {
    font-size: 1.01rem;
  }
  .kpi-value {
    font-size: 1.13rem;
  }
}

@media (max-width: 768px) {
  .project-card {
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), background 0.3s;
    position: relative;
    will-change: transform;
    touch-action: pan-y;
    overflow: visible;
  }
  .project-card.swiping {
    background: #fef2f2;
  }
  .project-card.swipe-threshold {
    background: #fee2e2;
  }
  .project-card .swipe-delete-indicator {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    opacity: 0;
    pointer-events: none;
    color: #ef4444;
    font-size: 2rem;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 20;
  }
  .project-card.swiping .swipe-delete-indicator {
    opacity: 0.5;
    transform: translateY(-50%) scale(1);
  }
  .project-card.swipe-threshold .swipe-delete-indicator {
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
  }
}

@media (max-width: 768px) {
  #edgeSwipeOverlay {
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 24px;
    height: 100vh;
    z-index: 9999;
    background: transparent;
    pointer-events: auto;
    touch-action: none;
  }
}

@media (max-width: 768px) {
  .project-delete-btn-corner {
    display: none !important;
  }
}

.project-card.removing {
  opacity: 0;
  transform: translateX(-100%) scale(0.95);
  pointer-events: none;
}

@media (max-width: 768px) {
  .todo-action-btn.move-up,
  .todo-action-btn.move-down {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .todo-drag-handle {
    display: none !important;
  }
}

@media (max-width: 768px) {
  #todoList,
  #todoList .todo-item,
  #todoList .todo-content,
  #todoList .todo-text-editable {
    font-size: 0.85rem !important;
  }
  .todo-item {
    padding: 0.32rem 0.35rem !important;
    margin-bottom: 0.18rem !important;
    min-height: 0 !important;
  }
  .todo-content {
    margin-bottom: 0 !important;
  }
  .todo-drag-col {
    margin-bottom: 0 !important;
  }
}

.drag-ghost {
  opacity: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Clone Project List Styles */
.clone-project-item {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
}

.clone-project-item:hover {
    border-color: #6366f1;
    background-color: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.clone-project-item:active {
    transform: translateY(0);
}

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

.clone-project-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.clone-project-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.clone-project-status {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.clone-project-priority {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.clone-project-todos {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.clone-project-todos i {
    color: #6366f1;
}

.clone-projects-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.clone-projects-empty i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

/* Form helper text */
.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.text-muted {
    color: #6b7280;
}

/* Progress Bar Styles */
.project-progress-container {
    width: 100%;
    margin-bottom: 1rem;
    position: relative;
}

.progress-bar-wrapper {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: height 0.2s ease;
}

.progress-bar-wrapper:hover {
    height: 32px;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease, background-color 0.3s ease;
    position: relative;
    background-color: #dc2626; /* Default red */
}

/* Progress bar color will be set dynamically via JavaScript */

.progress-slider-container {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.progress-bar-wrapper:hover .progress-slider-container {
    opacity: 1;
    pointer-events: all;
}

.progress-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: transparent;
    outline: none;
    cursor: pointer;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid #6366f1;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.progress-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid #6366f1;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.progress-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.progress-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.progress-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    min-width: 40px;
    text-align: right;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-progress-container {
        margin-bottom: 0.75rem;
    }
    
    .progress-bar-wrapper {
        height: 6px;
    }
    
    .progress-bar-wrapper:hover {
        height: 28px;
    }
    
    .progress-slider::-webkit-slider-thumb,
    .progress-slider::-moz-range-thumb {
        width: 14px;
        height: 14px;
    }
    
    .progress-percentage {
        font-size: 0.75rem;
        min-width: 35px;
    }
}

/* Remember Me / Stay Signed In Options */
.form-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.25rem;
    color: #4b5563;
    user-select: none;
    min-height: 1.25rem;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    height: 1.25rem;
    width: 1.25rem;
    background-color: #f3f4f6;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    transform: translateY(-50%);
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #6366f1;
    border-color: #6366f1;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 0.3rem;
    top: 0.1rem;
    width: 0.25rem;
    height: 0.5rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

@media (max-width: 480px) {
    .form-options {
        gap: 0.5rem;
    }
    
    .checkbox-container {
        font-size: 0.85rem;
    }
}

