/* Quick Tasks Page Styles */

/* Body Background */
body {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.01) 100%);
}

/* Header Section */
.quick-tasks-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.quick-tasks-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.quick-tasks-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.quick-tasks-header .lead {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 400;
}

/* Filter Sidebar */
.filter-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 80px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.filter-sidebar h5 {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h6 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #334155;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-sidebar .form-control,
.filter-sidebar .form-select {
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-sidebar .form-control:focus,
.filter-sidebar .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-sidebar .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    transition: all 0.3s ease;
}

.filter-sidebar .btn i {
    font-size: 0.95rem;
}

.filter-sidebar .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

.filter-sidebar .btn-outline-secondary {
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.filter-sidebar .btn-outline-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Stats Card */
.stats-card {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    text-align: center;
    margin-top: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stats-card p {
    color: #64748b;
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Task Cards */
.task-card {
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.task-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.1);
}

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

.task-card.urgent {
    border-left: 4px solid #dc3545;
}

.task-card.urgent::before {
    background: #dc3545;
    opacity: 1;
}

.task-card.high {
    border-left: 4px solid #ffc107;
}

.task-card.high::before {
    background: #ffc107;
    opacity: 1;
}

/* Urgency Badge */
.urgency-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bg-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(220, 53, 69, 0.1)) !important;
    color: #dc2626 !important;
    border: 2px solid rgba(220, 53, 69, 0.3);
}

.bg-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.1)) !important;
    color: #d97706 !important;
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.bg-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.15), rgba(23, 162, 184, 0.1)) !important;
    color: #0891b2 !important;
    border: 2px solid rgba(23, 162, 184, 0.3);
}

.bg-secondary {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.15), rgba(108, 117, 125, 0.1)) !important;
    color: #64748b !important;
    border: 2px solid rgba(108, 117, 125, 0.3);
}

/* Task Title */
.task-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    padding-right: 7rem;
}

.task-title a {
    text-decoration: none;
    color: #1e293b;
    transition: color 0.3s ease;
}

.task-title a:hover {
    color: #667eea;
}

/* NGO Badge */
.ngo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.05));
    border-radius: 50rem;
    font-size: 0.875rem;
    color: #667eea;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.ngo-badge i {
    font-size: 1rem;
}

/* Task Description */
.task-description {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Task Meta */
.task-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.task-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.task-meta-item i {
    color: #667eea;
    font-size: 1rem;
}

/* Spots Indicator */
.spots-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.05));
    border-radius: 50rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.15);
}

.spots-indicator.low {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.1));
    color: #d97706;
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.spots-indicator.full {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(220, 53, 69, 0.1));
    color: #dc2626;
    border: 2px solid rgba(220, 53, 69, 0.3);
}

/* Action Buttons */
.task-card .btn {
    border-radius: 50rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

.task-card .btn i {
    font-size: 0.95rem;
}

.task-card .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

/* Main Content Action Buttons */
.col-lg-9 .btn {
    border-radius: 50rem;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    transition: all 0.3s ease;
}

.col-lg-9 .btn i {
    font-size: 1rem;
}

.col-lg-9 .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.col-lg-9 .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.col-lg-9 .btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
}

.col-lg-9 .btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

/* Empty State */
.text-center.py-5 > i.bi-inbox {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.7;
}

.text-center.py-5 h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.text-center.py-5 .text-muted {
    color: #64748b;
    font-size: 1.05rem;
}

.text-center.py-5 .btn i {
    font-size: 1rem;
}

/* Pagination */
.pagination {
    gap: 0.5rem;
}

.page-item .page-link {
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    color: #667eea;
    font-weight: 600;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.page-item .page-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    border-color: #667eea;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Mobile Filter Toggle Button */
.btn[data-bs-toggle="collapse"] {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    transition: all 0.3s ease;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn[data-bs-toggle="collapse"]:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.btn[data-bs-toggle="collapse"] i {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .filter-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .task-title {
        font-size: 1.2rem;
        padding-right: 6rem;
    }

    .urgency-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 768px) {
    /* Header */
    .quick-tasks-header {
        padding: 1.5rem 0;
        margin-bottom: 1rem;
    }

    .quick-tasks-header h1 {
        font-size: 1.75rem;
    }

    .quick-tasks-header .lead {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Container padding */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Sidebar */
    .filter-sidebar {
        padding: 0.75rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .filter-sidebar h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .filter-section {
        margin-bottom: 0.75rem;
    }

    .filter-section h6 {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }

    .filter-sidebar .form-control,
    .filter-sidebar .form-select {
        padding: 0.45rem 0.65rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .filter-sidebar .btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .filter-sidebar .btn:last-of-type {
        margin-bottom: 0;
    }

    /* Mobile toggle button */
    .btn[data-bs-toggle="collapse"] {
        padding: 0.55rem 1rem;
        font-size: 0.9rem;
    }

    /* Stats card */
    .stats-card {
        padding: 1rem;
        border-radius: 15px;
        margin-top: 0.75rem;
    }

    .stats-card h3 {
        font-size: 2rem;
    }

    .stats-card p {
        font-size: 0.85rem;
    }

    /* Task cards */
    .task-card {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 15px;
    }

    .task-title {
        font-size: 1.1rem;
        padding-right: 0;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }

    .urgency-badge {
        position: static;
        display: inline-block;
        margin-bottom: 0.75rem;
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }

    .ngo-badge {
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
    }

    .task-description {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .task-meta {
        gap: 0.75rem;
        font-size: 0.8rem;
    }

    .task-meta-item {
        gap: 0.35rem;
    }

    .task-meta-item i {
        font-size: 0.9rem;
    }

    .spots-indicator {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    /* Action buttons */
    .task-card .btn {
        padding: 0.55rem 1.25rem;
        font-size: 0.9rem;
    }

    .col-lg-9 .btn {
        padding: 0.55rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Header action buttons */
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .d-flex.justify-content-between.align-items-center > div:last-child {
        width: 100%;
    }

    .d-flex.justify-content-between.align-items-center h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    /* Pagination */
    .pagination {
        gap: 0.35rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-item .page-link {
        padding: 0.45rem 0.75rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    /* Extra small mobile */
    .quick-tasks-header {
        padding: 1rem 0;
        margin-bottom: 0.75rem;
    }

    .quick-tasks-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.35rem;
    }

    .quick-tasks-header .lead {
        font-size: 0.875rem;
    }

    /* Sidebar */
    .filter-sidebar {
        padding: 0.65rem;
    }

    .filter-sidebar h5 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }

    .filter-section {
        margin-bottom: 0.65rem;
    }

    .filter-section h6 {
        font-size: 0.7rem;
        margin-bottom: 0.35rem;
    }

    .filter-sidebar .form-control,
    .filter-sidebar .form-select {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .filter-sidebar .btn {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Mobile toggle button */
    .btn[data-bs-toggle="collapse"] {
        padding: 0.5rem 0.85rem;
        font-size: 0.85rem;
    }

    /* Task cards */
    .task-card {
        padding: 0.85rem;
    }

    .task-title {
        font-size: 1rem;
    }

    .task-description {
        font-size: 0.875rem;
    }

    .task-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .task-card .btn,
    .col-lg-9 .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .d-flex.justify-content-between.align-items-center h4 {
        font-size: 1rem;
    }

    /* Empty state */
    .text-center.py-5 > i.bi-inbox {
        font-size: 3.5rem;
    }

    .text-center.py-5 h4 {
        font-size: 1.35rem;
    }

    .text-center.py-5 .text-muted {
        font-size: 0.95rem;
    }
}
