/* Filter Dropdowns Styles */
.project-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.filter-dropdown {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff;
    padding: 18px 20px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    min-width: 150px;
    cursor: pointer;
    appearance: none;
    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='white' 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");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 54px;
    transition: all 0.3s ease;
    width: fit-content;
}

.filter-dropdown:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
}

.filter-dropdown:focus {
    outline: none;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    background: black !important;
}

.filter-dropdown option {
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 10px;
}

/* Projects Table Styles */
.projects-table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
    overflow-y: hidden;
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-family: Arial, sans-serif;
}

.projects-table thead {
    background: rgba(0, 0, 0, 0.9);
}

.projects-table th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 400;
    font-size: 16px;
    border-right: 1px solid #525252;
    border-bottom: 1px solid;
    border-top: 1px solid;
    color: #fff;
    background: black;
}

.projects-table th:last-child {
    border-right: none;
}

.projects-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.projects-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.projects-table td {
    padding: 18px 15px;
    border-right: 1px solid #525252;
    border-bottom: 1px solid #525252;
    font-size: 14px;
    color: #ccc;
    vertical-align: middle;
}

.projects-table td:last-child {
    border-right: none;
}

.project-name a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.project-name a:hover {
    color: #ccc;
}

.project-status {
    font-weight: 400;
}

/* Not set styling */
.projects-table td.not-set {
    color: #666;
    font-style: italic;
}

/* Status specific colors */
.project-status:not(.not-set) {
    font-weight: 400;
}

/* Specific status colors for non-empty values */
.projects-table td:contains("Livré") {
    color: #4CAF50;
}

.projects-table td:contains("En cours") {
    color: #FF9800;
}

/* Animation */
.project-row {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-row.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 10px !important;
    }

    .project-filters {
        gap: 15px;
        margin-bottom: 30px;
    }

    .filter-dropdown {
        min-width: 120px;
        padding: 10px 16px;
        padding-right: 40px;
        font-size: 13px;
    }

    .projects-table th,
    .projects-table td {
        padding: 12px 8px;
        font-size: 12px;
    }

    .projects-table th {
        font-size: 14px;
    }

    .project-name {
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .project-filters {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .filter-dropdown {
        width: 100%;
        min-width: auto;
        text-align: center;
    }

    .projects-table {
        font-size: 11px;
    }

    .projects-table th,
    .projects-table td {
        padding: 10px 6px;
    }

    .projects-table th {
        font-size: 12px;
    }
}
