/* --- AMELIORATION DU BACKGROUND --- */
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    /* Melange de degrade radial et lineaire pour un effet de lumiere */
    background: 
        radial-gradient(circle at 20% 30%, rgba(30, 144, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(106, 90, 205, 0.15) 0%, transparent 40%),
        linear-gradient(135deg, #0A1A2F 0%, #112240 100%);
    background-attachment: fixed; /* Le fond reste fixe au scroll */
    color: #F5F7FA;
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    
}

/* Ajout d un leger motif de grille pour le cote "Application de Gestion" */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px; /* Taille de la grille */
    pointer-events: none;
    z-index: 0;
}

header {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    padding: 15px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    
}

nav .brand {
    font-size: 26px;
    font-weight: bold;
    color: #F5F7FA;
    text-decoration: none;
    letter-spacing: 1px;
}

nav a {
    color: #DDE1E7;
    text-decoration: none;
    margin-left: 18px;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #1E90FF;
}





/* Avatar pill and user icon */
.avatar-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E90FF, #6A5ACD);
    color: #F5F7FA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 10px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.user-icon {
    border-radius: 999px;
}


/* GLASSMORPHISM CARD STYLE FOR AUTH FORMS */
.card {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 20, 40, 0.8);
    backdrop-filter: blur(14px);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    color: #F5F7FA;
}

.card-body {
    padding: 24px 26px;
}

/* TITLES INSIDE FORMS */
.card-body h2 {
    font-size: 24px;
    font-weight: 600;
}

.card-body p {
    color: #C4CAD6;
}

/* FORMS AND INPUTS */
.form-label {
    color: #E4E9F2;
    font-weight: 500;
}

.form-control {
    background: rgba(3, 14, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #F5F7FA;
    border-radius: 10px;
    padding: 10px 12px;
}

.form-control:focus {
    background: rgba(6, 20, 45, 0.95);
    border-color: #1E90FF;
    box-shadow: 0 0 0 1px rgba(30, 144, 255, 0.4);
    color: #F5F7FA;
}

.form-control::placeholder {
    color: #7B8598;
}

.form-text {
    color: #9CA4B5;
    font-size: 0.85rem;
}

/* BUTTONS */
.btn-primary {
    background: linear-gradient(135deg, #1E90FF, #6A5ACD);
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
    letter-spacing: 0.4px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #38A3FF, #7C6BFF);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
}

.btn-outline-light {
    border-radius: 999px;
}

/* LINKS IN AUTH PAGES */
.card a {
    color: #7FB5FF;
    text-decoration: none;
}

.card a:hover {
    color: #A8C9FF;
    text-decoration: underline;
}

/* ALERT MESSAGES (DJANGO MESSAGES) */
.alert {
    border-radius: 12px;
    border: none;
    padding: 10px 14px;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(46, 204, 113, 0.12);
    color: #2ECC71;
}

.alert-info {
    background: rgba(52, 152, 219, 0.12);
    color: #3498DB;
}

.alert-warning {
    background: rgba(241, 196, 15, 0.12);
    color: #F1C40F;
}

.alert-danger,
.alert-error {
    background: rgba(231, 76, 60, 0.14);
    color: #E74C3C;
}

.btn-close {
    filter: invert(1);
}

/* SMALL UTILITY CLASSES */
.text-muted {
    color: #9CA4B5 !important;
}

.text-center a {
    font-weight: 500;
}


/* Dashboard layout */
.dashboard-wrapper h1 {
    font-size: 26px;
    font-weight: 600;
}

.dashboard-grid {
    margin-top: 10px;
}

.dashboard-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.dashboard-card {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 20, 40, 0.8);
    backdrop-filter: blur(12px);
    transition: transform 0.15s ease, box-shadow 0.15s ease,
                border-color 0.15s ease;
}

.dashboard-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 144, 255, 0.12);
    font-size: 24px;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    border-color: rgba(30, 144, 255, 0.7);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
}

/* Offcanvas custom */
.offcanvas.text-bg-dark {
    background: rgba(5, 10, 25, 0.97);
    backdrop-filter: blur(14px);
}

.offcanvas .list-group-item {
    border: none;
    border-radius: 0;
}

.offcanvas .list-group-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

/*#########################################################*/
/* Rabbit page toolbar */
.rabbit-toolbar {
    margin-top: 4px;
}

.rabbit-search-group .input-group-text {
    background: rgba(3, 14, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rabbit-search-group .form-control {
    background: rgba(3, 14, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #F5F7FA;
}

.rabbit-search-group .form-control:focus {
    background: rgba(6, 20, 45, 0.95);
    border-color: #1E90FF;
    box-shadow: 0 0 0 1px rgba(30, 144, 255, 0.4);
}

/* Rabbit cards */
.rabbit-card {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 20, 40, 0.88);
    backdrop-filter: blur(10px);
    transition: transform 0.15s ease, box-shadow 0.15s ease,
                border-color 0.15s ease;
    min-height: 180px;
}

.rabbit-card:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 144, 255, 0.6);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
}

@media (max-width: 576px) {
    .rabbit-card {
        min-height: 0;
    }
}

/*#########################################################*/
/* LIST VIEW IMPROVEMENTS */

.rabbit-list-item {
    border-radius: 12px;
    transition: 0.25s ease-in-out;
}

.rabbit-list-item:hover {
    transform: translateY(-4px);  
}


.rabbit-card input,
.rabbit-card select,
.rabbit-card textarea {
    background: rgba(3, 14, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #F5F7FA;
}

.rabbit-card input:focus,
.rabbit-card select:focus,
.rabbit-card textarea:focus {
    background: rgba(6, 20, 45, 0.90);
    border-color: #1E90FF;
    box-shadow: 0 0 0 1px rgba(30, 144, 255, 0.35);
    color: #F5F7FA;
}





/* Animation d'entree pour la modal */
#trialModal .modal-content {
    animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Style specifique pour le bouton "Plus tard" */
#declineTrial:hover {
    color: #F5F7FA !important;
    text-decoration: underline !important;
}

/* Mise en emphase de l'offre */
.modal-body .k-soft {
    border: 1px solid rgba(30, 144, 255, 0.2);
    background: rgba(30, 144, 255, 0.05);
}







.success-animation {
  animation: pop 0.4s ease, glow 1s ease infinite alternate;
}

@keyframes pop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes glow {
  from { box-shadow: 0 0 10px rgba(13,110,253,0.4); }
  to { box-shadow: 0 0 20px rgba(13,110,253,0.9); }
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}


