/* Styles pour les badges de référentiels */
.subscription-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.subscription-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 1rem;
    border: none;
    transition: all 0.2s ease-in-out;
    cursor: default;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subscription-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.subscription-badge.primary {
    background: linear-gradient(135deg, #8698FF 0%, #6c7ae6 100%);
    color: white;
}

/* Project detail page styles */
.project-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.project-info-section {
    background: white;
    border-radius: 12px;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.project-info-section h2 {
    margin: 0 0 0.5rem 0;
    color: black;
    font-size: 18px;
    font-weight: 600;
}

.project-description {
    font-size: 14px;
    color: black;
    margin: 0 0 1rem 0;
    white-space: pre-wrap;
    text-align: justify;
}

.text-muted {
    font-size: 1.1rem;
    color: black;
}

.project-status {
    margin-bottom: 1rem;
}

.project-status .badge {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.project-meta {
    color: black;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-relations-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.relation-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    font-size: 14px;
    color: #1A1A1A;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.project-topics-section,
.project-deadlines-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.project-deadlines-section-cards {
    background: white;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.project-topics-section h4,
.project-deadlines-section h4 {
    margin: 0 0 1rem 0;
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deadline-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    font-size: 15px;
    color: #1A1A1A;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.deadline-card li {
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
    .project-detail {
        padding: 0rem;
        width: 100%;
    }

    .project-info-section,
    .project-relations-section,
    .project-topics-section,
    .project-deadlines-section {
        padding: 1rem;
    }
}

.user-status .badge {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.bg-warning {
    --bs-bg-opacity: 1;
    background-color: #FF805D !important;
}

.bg-success {
    --bs-bg-opacity: 1;
    background-color: #1ACDB1 !important;
}

.badge {
    --bs-badge-font-weight: 500;
    --bs-badge-color: #1e293b;
    --bs-badge-border-radius: 4px;
    border-radius: 999px;
    color: var(--bs-badge-color);
    display: inline-block;
    font-weight: var(--bs-badge-font-weight);
    text-align: center;
    vertical-align: baseline;
    white-space: nowrap;
}

.btn-info {
    background-color: var(--color-purple-blue);
    color: var(--color-black);
    padding: 3px 12px;
    cursor: pointer;
    text-decoration: none;
    transition: 80ms cubic-bezier(.33, 1, .68, 1);
    transition-property: box-shadow;
    white-space: nowrap;
    border: 0;
    border-radius: 999px;
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
}

.link-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--color-black);
    font-family: var(--font-main);
}

.btn-sm:hover {
    box-shadow: 0 4px 8px rgba(182, 193, 255, 0.5);
}