/* Purchase status badges */
.status-badge {
    padding: 0.4em 0.8em;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-block;
}

/* Styles pour chaque statut */
.status-pending {
    background-color: #ffc107; /* Jaune */
    color: #000;
}

.status-paid {
    background-color: #28a745; /* Vert */
    color: #fff;
}

.status-processing {
    background-color: #17a2b8; /* Bleu */
    color: #fff;
}

.status-completed {
    background-color: #1e7e34; /* Vert foncé */
    color: #fff;
}

.status-canceled {
    background-color: #dc3545; /* Rouge */
    color: #fff;
}

/* Fallback pour tout autre statut */
.status-unknown {
    background-color: #6c757d; /* Gris */
    color: #fff;
}

/* Purchase details card */
.purchase-details .card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.purchase-details .card-body {
    padding: 2rem;
}

.purchase-details h5 {
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.purchase-details .total {
    margin-top: 1.5rem;
    font-size: 1.2em;
    color: #333;
}

/* Table styles */
.admin-purchases .text-right {
    text-align: right;
}

.admin-purchases td {
    vertical-align: middle;
}

/* Actions buttons */
.admin-purchases .actions {
    display: flex;
    gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .purchase-details .row {
        flex-direction: column;
    }
    
    .purchase-details .col-md-6 {
        width: 100%;
        margin-bottom: 2rem;
    }
} 
.status-selector .form-check {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 10px;
}

.status-selector .form-check:hover {
    background-color: #f8f9fa;
}

/* Styles spécifiques pour la page d'édition des commandes */
.purchase-edit-container {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

/* Header de la page */
.purchase-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.purchase-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Cartes */
.purchase-card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.purchase-card .card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
}

.purchase-card .card-body {
    padding: 1.5rem;
}

.purchase-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Style pour le formulaire de statut */
.status-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.status-selector .status-option {
    flex: 1 0 calc(50% - 0.75rem);
    position: relative;
    min-width: 8rem;
}

@media (max-width: 768px) {
    .status-selector .status-option {
        flex: 1 0 100%;
    }
}

.status-selector input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.status-selector label {
    display: block;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    background-color: #fff;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-selector label:hover {
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Styles spécifiques pour chaque statut */
.status-selector input[value="pending"] + label {
    color: #856404;
}

.status-selector input[value="pending"]:checked + label {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.status-selector input[value="paid"] + label {
    color: #155724;
}

.status-selector input[value="paid"]:checked + label {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.status-selector input[value="processing"] + label {
    color: #0c5460;
}

.status-selector input[value="processing"]:checked + label {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.status-selector input[value="completed"] + label {
    color: #004085;
}

.status-selector input[value="completed"]:checked + label {
    background-color: #cce5ff;
    border-color: #b8daff;
    color: #004085;
}

.status-selector input[value="canceled"] + label {
    color: #721c24;
}

.status-selector input[value="canceled"]:checked + label {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Badge de statut */
.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Boutons */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.action-btn i {
    margin-right: 0.5rem;
}

.btn-save {
    background-color: #007bff;
    color: white;
}

.btn-save:hover {
    background-color: #0069d9;
    color: white;
}

.btn-back {
    background-color: #6c757d;
    color: white;
}

.btn-back:hover {
    background-color: #5a6268;
    color: white;
}

.btn-download {
    padding: 0.25rem 0.5rem;
    background-color: #007bff;
    color: white;
    border-radius: 0.25rem;
}

.btn-download:hover {
    background-color: #0069d9;
    color: white;
}

/* Liste de fichiers */
.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.file-list li:last-child {
    border-bottom: none;
}

.file-list .file-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 1rem;
}

/* Information sections */
.info-label {
    font-weight: 600;
    color: #495057;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .purchase-edit-container {
        padding: 1rem;
    }
    
    .purchase-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .purchase-header .btn-group {
        width: 100%;
    }
    
    .purchase-header .btn-group .action-btn {
        width: 100%;
    }
}