/**
 * CSS Front Photobooth
 */

/* === LISTE DES PERSONNALISATIONS === */
.photobooth-customizations {
    padding: 15px 0;
}

.photobooth-customizations .table {
    margin-bottom: 0;
}

.photobooth-customizations .table th {
    border-top: none;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.photobooth-customizations .table td {
    vertical-align: middle;
}

.photobooth-customizations .label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
}

.photobooth-customizations .label-danger {
    background: #dc3545;
    color: white;
}

.photobooth-customizations .label-warning {
    background: #ffc107;
    color: #212529;
}

.photobooth-customizations .label-success {
    background: #28a745;
    color: white;
}

.photobooth-customizations .label-info {
    background: #17a2b8;
    color: white;
}

/* === BOUTONS ACTIONS === */
.photobooth-customizations .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    font-weight: 500 !important;
    transition: all 0.2s !important;
}

.photobooth-customizations .btn .material-icons {
    font-size: 18px !important;
    line-height: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.photobooth-customizations .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: #fff !important;
}

.photobooth-customizations .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.photobooth-customizations .btn-default {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #333 !important;
}

.photobooth-customizations .btn-default:hover {
    background: #e9ecef !important;
    color: #333 !important;
}

.photobooth-customizations .text-muted {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #6c757d !important;
    font-size: 13px !important;
}

.photobooth-customizations .text-muted .material-icons {
    font-size: 18px !important;
}

/* === RESPONSIVE LISTE PERSONNALISATIONS === */
@media screen and (max-width: 768px) {
    .photobooth-customizations .table-responsive {
        border: none;
        overflow: visible;
    }
    
    .photobooth-customizations .table {
        display: block;
        border: none;
    }
    
    .photobooth-customizations .table thead {
        display: none;
    }
    
    .photobooth-customizations .table tbody {
        display: block;
    }
    
    .photobooth-customizations .table tr {
        display: block;
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 12px;
        margin-bottom: 15px;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    
    .photobooth-customizations .table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .photobooth-customizations .table td:last-child {
        border-bottom: none;
        padding-top: 15px;
        justify-content: center;
    }
    
    .photobooth-customizations .table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        font-size: 12px;
        text-transform: uppercase;
    }
    
    .photobooth-customizations .table td:last-child::before {
        content: none;
    }
    
    .photobooth-customizations .btn {
        width: 100% !important;
        padding: 14px 20px !important;
    }
    
    .photobooth-customizations .label {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* === ÉDITEUR BASE === */
.photobooth-editor {
    max-width: 1400px;
    margin: 0 auto;
}

/* Sélecteur de template */
.template-selector .template-card {
    border: 3px solid #dee2e6;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: white;
}

.template-selector .template-card:hover {
    border-color: #007bff;
}

.template-selector .template-card.selected {
    border-color: #28a745;
    background: #f0fff4;
}

/* Zone canvas */
.canvas-container {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    overflow: auto;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Upload zone */
.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
}

.upload-zone:hover {
    border-color: #007bff;
    background: #f0f7ff;
}

.upload-zone input[type="file"] {
    display: none;
}

/* Modal cropper */
.cropper-container {
    max-height: 500px;
    overflow: hidden;
}
