/* Requests Page Styles */
.requests-page {
    padding-top: 40px;
    padding-bottom: 80px;
    background-color: #f8f9fa;
}

.requests-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar Styling */
.requests-sidebar {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: fit-content;
}


.sidebar-menu {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-menu a i {
    font-size: 1.4rem;
}

.sidebar-menu a:hover {
    background-color: #f0f2f5;
    color: var(--primary-color);
}

.sidebar-menu a.active {
    background-color: #fef2f2;
    color: var(--primary-color);
}

.btn-request-new {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}

.btn-request-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.2);
}

/* Main Content Styling */
.requests-header {
    margin-bottom: 40px;
    text-align: center;
}

.requests-header h1 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.requests-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    min-width: 300px;
}

.search-input-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input-wrapper input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    border-radius: 15px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-family: inherit;
    font-size: 1rem;
}

.filter-select {
    padding: 0 25px;
    border: none;
    border-radius: 15px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    cursor: pointer;
    min-width: 150px;
}

.btn-filter-apply {
    background-color: #212529;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 0 30px;
    font-weight: 600;
    cursor: pointer;
}

/* Requests Grid */
.requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.request-card {
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: transform 0.3s ease;
    border: 1px solid #f1f3f5;
}

.request-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

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

.time-ago {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-active {
    background: #ecfdf5;
    color: #059669;
}

.status-urgent {
    background: #fef2f2;
    color: #dc2626;
}

.request-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.4;
}

.request-meta-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-tag {
    background-color: #f8f9fa;
    color: #495057;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.request-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-card-action {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
    text-decoration: none;
}

.btn-card-action:hover {
    background-color: var(--primary-hover);
}

@media (max-width: 992px) {
    .requests-layout {
        grid-template-columns: 1fr;
    }

    .requests-sidebar {
        display: none;
    }
}



@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        gap: 10px;
    }

    .search-input-wrapper {
        min-width: 100%;
        width: 100%;
    }

    .search-input-wrapper input {
        width: 100%;
    }

    /* Le bouton tصفية et مسح الكل en pleine largeur */
    .filter-bar>div:last-child {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .btn-filter-apply {
        width: 100%;
        height: 50px;
        padding: 0;
    }

    .btn-filter-clear {
        width: 100% !important;
        height: 50px !important;
        padding: 0 !important;
        justify-content: center;
    }

    /* Grid des cards en 1 colonne */
    .requests-grid {
        grid-template-columns: 1fr !important;
    }

    .requests-header h1 {
        font-size: 1.6rem;
    }
}