/* Styles de base */
.body-content {
    min-height: 100vh;
    background: linear-gradient(to bottom right, #eff6ff, #eef2ff); /* from-blue-50 to-indigo-50 */
    padding: 24px;
    font-family: sans-serif;
    color: #1f2937;
}

.checklist-container {
    max-width: 960px; /* max-w-4xl */
    margin: 0 auto;
}

/* En-tête */
.header-section {
    margin-bottom: 24px;
}
.header-title {
    font-size: 2.25rem; /* 4xl */
    font-weight: 700;
    margin-bottom: 8px;
}

.header-subtitle {
    color: #4b5563; /* gray-600 */
}

/* Carte principale (Checklist) */
.checklist-card {
    margin-bottom: 24px;
}

.card-body, 
.progress-area {
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    background-color: #FFF;
}

.card-body {

}

/* Onglets */
.tab-list {
    display: flex;
    margin-bottom: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.tab-button {
    flex: 1;
    padding: 16px 24px;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
    border: none;
}

.tab-button:nth-of-type(1) {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.tab-button:nth-of-type(3) {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.tab-button span {
    position: relative;
    display: inline-block;
}

.tab-active span::before {
    content: '';
    display: block;
    position: absolute;
    top: 5px;
    left: -10px;
    border-radius: 1rem;
    width: 0.3rem;
    height: 0.3rem;
    background-color: #FFF;
}

.tab-inactive {
    background-color: #f3f4f6; /* gray-100 */
    color: #374151; /* gray-700 */
}

.tab-inactive:hover {
    background-color: #e5e7eb; /* hover:bg-gray-200 */
}

.tab-active {
    background-color: #2563eb; /* blue-600 */
    color: white;
}

.tab-button:focus {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}


/* Barre de Progression (3 jauges) */
.progress-area {
    margin: 24px 0;
}
.progress-group {
    margin-bottom: 12px;
}
.progress-area-inner { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 4px;
    font-size: 0.875rem; 
    font-weight: 500; 
    color: #374151;
}
.progress-value { 
    font-weight: 700; 
    color: #2563eb; 
}

.progress-bar-container {
    width: 100%;
    background-color: #e5e7eb; /* gray-200 */
    border-radius: 9999px; /* rounded-full */
    height: 0.75rem; /* h-3 */
}

.progress-bar {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s;
}

/* Specific bar colors */
.progress-bar-total {
    background-color: #2563eb; /* blue-600 (default) */
}
.progress-bar-conforme {
    background-color: #10b981; /* emerald-500 (green) */
}
.progress-bar-nonconforme {
    background-color: #ef4444; /* red-500 */
}

/* Reset Button Styles */
.reset-buttons-container {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    width: 60%;
}
.reset-button {
    cursor: pointer;
    flex: 1;

    padding: 8px 12px 6px;
    border: 1px solid #dc2626; /* red-600 border for reset */
    border-radius: 4px;
    
    background-color: #fef2f2; /* red-50 background */
    
    color: #dc2626; /* red-600 text */
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    line-height: 1;

    transition: background-color 0.15s, border-color 0.15s;
}
.reset-button:hover {
    background-color: #fca5a5; /* red-300 */
    color: #991b1b; /* red-800 */
}
.reset-button:focus {
    outline: 2px solid #ef4444; /* red-500 */
    outline-offset: 2px;
}

/* Checklist Items */
.category-section + .category-section {
    margin-top: 48px;
}
.category-title {
    font-size: 1.5rem; /* 2xl */
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #bfdbfe; /* border-blue-200 */
    color: #1f2937;
}

.item-list > div:not(:last-child) {
    margin-bottom: 12px;
}

.checklist-item {
    padding: 24px;
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.checklist-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06); /* hover:shadow-md */
}

.checklist-item:focus-within {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); 
    border-color: #3b82f6;
}

.item-label {
    display: block; 
    cursor: default;
}

.item-content {
    margin-left: 0;
    flex: 1;
}

.item-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.item-description {
    color: #4b5563;
    font-size: 0.875rem; /* text-sm */
    line-height: 1.6; /* leading-relaxed */
}

/* Boutons de statut */
.status-buttons {
    display: flex;
    gap: 8px; /* space-x-2 */
    margin-top: 12px;
    width: 60%;
}

.status-button {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #d1d5db; /* gray-300 */
    background-color: #f9fafb; /* gray-50 */
    color: #4b5563; /* gray-600 */
    transition: background-color 0.15s, border-color 0.15s;
    flex: 1;
    text-align: center;
}

.status-button:hover {
    background-color: #e5e7eb; /* gray-200 */
}

.status-button:focus {
    outline: 2px solid #93c5fd; /* blue-300 */
    outline-offset: 2px;
}

/* Active Status Colors */
.status-active-conforme {
    background-color: #059669; /* emerald-600 */
    color: white;
    border-color: #059669;
}
.status-active-conforme:hover {
    background-color: #047857; 
}

.status-active-nonconforme {
    background-color: #dc2626; /* red-600 */
    color: white;
    border-color: #dc2626;
}
.status-active-nonconforme:hover {
    background-color: #b91c1c; 
}

.status-active-nonapplicable {
    background-color: #4b5563; /* gray-600 */
    color: white;
    border-color: #4b5563;
}
.status-active-nonapplicable:hover {
    background-color: #374151;
}

/* Footer */
.footer-text {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280; /* gray-500 */
    margin-top: 32px;
}

.footer-link {
    color: #2563eb;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}