/* Style par défaut pour l'écran */
body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	margin: 0 auto;
	color: #333;
	padding: 20px;
}

h1 { 
	color: #2c3e50;
	border-bottom: 2px solid #eee;
	padding-bottom: 10px;
}

h2 {
	border-bottom: 2px solid #ccc;
	padding-bottom: 5px;
	border-radius: 4px;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 30px;
}

th, td {
	border: 1px solid #ddd;
	padding: 8px;
	text-align: left;
}

th {
	background-color: #f4f4f4;
	position: sticky;
	top: 0;
	font-weight: bold;	
	color: black;
}
.downgraded {
	border: 2px solid #d9534f;
	background-color: #f2dede;
}

.downgraded th {
	background-color: #d9534f;
	color: white;
}

.error-msg {
	color: #a94442;
	font-weight: bold;
	border: 1px solid #ebccd1;
	padding: 10px;
	background: #f2dede;
	border-radius: 4px;
}

.errorForm {
	background-color: #fee2e2;
	color: #dc2626;
	padding: 15px;
	border: 1px solid #ef4444;
	border-radius: 8px;
	margin-bottom: 20px;
	font-family: sans-serif;
	display: none;
	cursor: default;
	font-size: 1em;
	font-weight: bold;
}

tr:nth-child(even) {
	background-color: #fafafa;
}

.added {
	color: green;
}

.deleted {
	color: red;
}

.updated {
	color: blue;
}

.downloadButton {
	display: inline-block;
	padding: 10px 20px;
	background: #007bff;
	color: white;
	text-decoration: none;
	border-radius: 5px;
	margin-bottom: 20px;
}

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

.empty-msg {
	font-style: italic;
	color: #666;
	margin: 10px 0 20px 0;
}

.stats {
	background: #f8f9fa;
	padding: 10px;
	border-radius: 8px;
	margin-bottom: 10px;
	display: flex;
	gap: 20px;
}

.stat-item {
	font-weight: bold;
}

.header-errors {
	background-color: #fef9c3;
	color: #854d0e;
}

.header-missing {
	background-color: #fee2e2;
	color: #991b1b;
}

.header-conform {
	background-color: #dcfce7;
	color: #166534;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.file-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
    background: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

.remove-btn {
    color: #ef4444;
    cursor: pointer;
    font-weight: bold;
    padding: 0 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.remove-btn:hover {
    background: #fee2e2;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px;
    font-family: sans-serif;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.card h3 {
    margin-top: 0;
    color: #1e3a8a;
}

.card.disabled {
    opacity: 0.6;
    background: #f9fafb;
    cursor: not-allowed;
    border: 1px dashed #d1d5db;
}

.drop-zone {
	border: 2px dashed #3b82f6;
	border-radius: 12px;
	padding: 40px;
	text-align: center;
	background: #eff6ff;
	cursor: pointer;
	transition: background 0.3s;
}

.drop-zone p {
	color: #1e40af;
	font-size: 1.1em;
}

.drop-zone p span {
	font-size: 0.9em;
	color: #60a5fa;
}

.file-list {
	margin-top: 15px;
	font-weight: bold;
	color: #1e3a8a;
}

.action-buttons {
	margin-top: 20px;
}

.btn-primary {
	width: 100%;
	padding: 12px;
	background: #3b82f6;
	color: white;
	border: none;
	border-radius: 8px;
	cursor: not-allowed;
	opacity: 0.5;
	font-size: 1em;
	font-weight: bold;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Classe pour désactiver le bouton pendant le chargement */
.btn-loading {
    background-color: #94a3b8 !important;
    cursor: wait !important;
}

.ok {
	color: #166534;
}

.missing {
	color: #854d0e;
}

.error {
	color: #991b1b;
}

/* Style spécifique pour l'impression et le PDF */
@media print {
	body {
		font-size: 10px;
		margin-bottom: 50px;
		
	}
	h1 {
		font-size: 16px;
	}
	h2 {
		font-size: 13px;
	}
	.break-before {
		page-break-before: always;
	}
	.downloadButton {
		display: none;
	}
}