/* ========================================
   QR CODE GENERATOR - STYLES DÉDIÉS
   ======================================== */

/* Variables CSS */
:root {
    --primary-color: #48c78e;
    --primary-dark: #3a9e6b;
    --secondary-color: #3e8ed0;
    --accent-color: #ffdd57;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --border-radius: 20px;
    --transition: all 0.2s ease-in-out;
}

/* Container principal */
.qr-container {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.qr-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Zone de prévisualisation */
.qr-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px dashed #dee2e6;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.qr-preview.has-qr {
    border: 3px solid var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: inset 0 4px 20px rgba(72, 199, 142, 0.1);
}

.qr-placeholder {
    text-align: center;
    color: #6c757d;
    font-size: 1.1rem;
    padding: 2rem;
    user-select: none;
}

.qr-placeholder-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

#qr-display {
    transition: var(--transition);
    border-radius: 15px;
    background: white;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Grille des types de QR */
.qr-type-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.qr-type-btn {
    background: var(--glass-bg);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.qr-type-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.qr-type-btn.is-active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(72, 199, 142, 0.3);
}

.qr-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.qr-type-label {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Champs de saisie */
.qr-field {
    display: none;
    animation: fadeIn 0.3s ease;
}

.qr-field.is-active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.field-group {
    margin-bottom: 1.5rem;
}

.label {
    color: #363636;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.input, .textarea, .select select {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.input:focus, .textarea:focus, .select select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(72, 199, 142, 0.1);
}

/* Boutons */
.button {
    border-radius: 4px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.button::before {
    display: none;
}

.button:hover {
    background: var(--primary-dark);
}

.button.is-primary {
    background: var(--primary-color);
    border: none;
}

.button.is-primary:hover {
    background: var(--primary-dark);
}

.button.is-success {
    background: #23d160;
    border: none;
}

.button.is-info {
    background: var(--secondary-color);
    border: none;
}

.button.is-warning {
    background: var(--accent-color);
    border: none;
    color: #363636;
}

/* Onglets */
.tabs {
    margin-bottom: 2rem;
}

.tabs ul {
    border: none;
    background: var(--glass-bg);
    border-radius: 15px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
}

.tabs li a {
    border: none;
    border-radius: 10px;
    margin: 0 0.25rem;
    transition: var(--transition);
    font-weight: 500;
}

.tabs li.is-active a {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
}

.tabs li:not(.is-active) a:hover {
    background: rgba(72, 199, 142, 0.1);
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.is-active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Contrôles de style */
.style-controls {
    background: rgba(72, 199, 142, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.size-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e9ecef;
    outline: none;
    transition: var(--transition);
}

.size-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(72, 199, 142, 0.3);
}

.size-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(72, 199, 142, 0.5);
}

/* Actions et boutons d'action */
.qr-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(72, 199, 142, 0.05);
    border-radius: 15px;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Historique */
.history-item {
    background: var(--glass-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    cursor: pointer;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.history-qr {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid var(--glass-border);
    object-fit: cover;
}

/* Message de confidentialité */
.notification.is-info.is-light {
    background: linear-gradient(135deg, rgba(62, 142, 208, 0.1) 0%, rgba(62, 142, 208, 0.05) 100%);
    border: 1px solid rgba(62, 142, 208, 0.2);
    border-radius: 12px;
}

/* Amélioration des icônes SVG */
.icon svg {
    width: 100%;
    height: 100%;
}

/* Statistiques */
.stats-card {
    background: linear-gradient(135deg, rgba(72, 199, 142, 0.1) 0%, rgba(72, 199, 142, 0.05) 100%);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.stats-card:hover {
    transform: scale(1.05);
}

.stats-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Notifications */
.notification {
    border-radius: 12px;
    border: none;
    animation: slideInDown 0.4s ease;
    font-weight: 500;
}

.notification.is-success {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.notification.is-danger {
    background: linear-gradient(135deg, #f14668 0%, #d63384 100%);
    color: white;
}

.notification.is-warning {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffcd39 100%);
    color: #363636;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .qr-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qr-actions {
        flex-direction: column;
    }
    
    .button {
        width: 100%;
    }
}
