/* Fichier : static/css/admin_custom.css */
body {
    background-color: #f5f5f5;
}

#branding h1 a {
    color: #007bff;
    text-decoration: none;
}

#footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 10px 0;
}

#footer a {
    color: #f8f9fa;
    text-decoration: underline;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.field-block {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
    transition: all 0.3s ease;
}

.field-block:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
}

.version-badge {
    background-color: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.btn-action {
    transition: all 0.3s ease;
}

.btn-action:hover {
    transform: translateY(-1px);
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

.modal {
    backdrop-filter: blur(5px);
}

.help-icon {
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.help-icon:hover {
    color: #0d6efd;
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 15px;
    }
}

.field-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    animation: fadeIn 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}