body {
    min-height: 100vh;           
    display: flex;             
    flex-direction: column;         
}

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

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

.form-control {
    border-radius: 0.25rem;  
}

.footer  {
    margin-top: auto;                 
    background-color: #edf0f5;  
    padding: 1rem 0;                 
    flex-shrink: 0;
}

.tasks-icon {
    background-color: #0056b3;   
    color:white;
    padding: 8px;                     
    border-radius: 50%;               
    font-size: 1.2rem;                
}

.nav-link-custom {
    font-size: 18px !important;
    color: #007bff !important;
    font-weight: bold !important;       
    transition: background-color 0.3s, color 0.3s, border-radius 0.3s;
    padding: 5px 10px;
    border-radius: 0;
    margin-left: 10px;
}

.nav-link-custom:hover {
    background-color: #007bff;        
    color: #ffffff !important;        
    border-radius: 5px;               
}

.nav-link-custom.active {
    background-color: #0056b3;        
    color: #ffffff !important;       
    border-radius: 5px;              
}

img {
    width: 170px; height: 170px;
    margin-bottom: 30px;
}

/*** navbar elements ***/

.navbar.center .navbar-inner {
    text-align: center;
}

.navbar.center .navbar-inner .nav {
    display:inline-block;
    vertical-align: middle;
}

/* header (left, Samba logo) */
.navbar-header {
    width: auto;
    height: 60px;
}

.navbar-header img {
    height: 60px;
    width: auto;
}

/* brand (middle, ImPaaS signature) */
.navbar-brand {
    height: 60px;
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

.d-flex.justify-content-center {
    margin-bottom: 20px; /* Ajoute un espace de 20px en bas */
}

.btn-primary {
    width: 220px;
    box-sizing: border-box; /* Inclut padding/border dans la largeur */
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Ombre ajoutée */
    transition: box-shadow 0.2s ease, transform 0.2s ease; /* Ajoute une transition pour un effet fluide */
}

.btn-primary:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Ombre plus prononcée au survol */
    transform: translateY(-2px); /* Effet de "lévitation" */
}

.btn-primary:active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Ombre réduite lors du clic */
    transform: translateY(1px); /* Effet de "pression" */
}

.btn-gold {
    all: unset; /* Réinitialise tous les styles par défaut */
    width: 220px;
    box-sizing: border-box; /* Inclut padding/border dans la largeur */
    font-size: 18px;
    background-color: gold !important;
    color: black !important;
    text-decoration: none !important; /* Supprime le soulignement */
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    font-size: 20px !important;
    cursor: pointer !important;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important; 👈 Ombre ajoutée */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6),
                  0 0 20px rgba(255, 215, 0, 0.4),
                  0 4px 8px rgba(0, 0, 0, 0.2);
    animation: glowPulse 2s infinite alternate;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    display: inline-block !important; 
    padding: 0.5rem 1.5rem; /* même que .btn-lg .px-4 */
}

/* ✨ Animation glow */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.6),
                    0 0 20px rgba(255, 215, 0, 0.4),
                    0 4px 8px rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow: 0 0 16px rgba(255, 215, 0, 0.8),
                    0 0 30px rgba(255, 215, 0, 0.6),
                    0 6px 12px rgba(0, 0, 0, 0.3);
    }
}

.btn-gold:hover {
    transform: translateY(-2px); /* 👈 Petit effet "lévitation" */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.btn-gold:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-downgrade {
    background-color: #6c757d !important;
    color: white !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
  }

.btn-downgrade:hover {
    transform: translateY(-2px); /* 👈 Petit effet "lévitation" */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.btn-upgrade {
    background-color: gold !important;
    color: black !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
  }

  .btn-pay-as-you-go {
    background-color: gold !important;
    color: black !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
  }

 .btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

 .btn-as:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}


/* General styling for the navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Center all items vertically */
    height: 80px; /* Adjust the height of the navbar */
    padding: 0 15px; /* Add some padding to avoid cutting */
}

/* Samba Logo (Left) */
.navbar-logo-left {
    max-height: 60px; /* Ensures the logo fits within the navbar */
    height: auto;
    width: auto;
    vertical-align: middle; /* Aligns the image vertically */
}

/* ImPaaS Logo (Center) */
.navbar-logo-center {
    max-height: 60px; /* Ensures the logo fits within the navbar */
    height: auto;
    width: auto;
    vertical-align: middle; /* Aligns the image vertically */
}

.navbar-logo-left,
.navbar-logo-center {
    margin-top: 5px; /* Adjust the value as needed */
    margin-bottom: 5px; /* Optional, to balance the spacing */
}

/* User Balance Display */
.balance-display {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 600;
    color: #495057;
}

.balance-amount {
    font-size: 14px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    transition: all 0.1s ease;
}

/* Credit widget color classes */
.balance-amount.credit-cloud {
    color: #0d6efd; /* Blue for cloud credits - matches dashboard bg-primary */
}

.balance-amount.credit-vps {
    color: #28a745; /* Green for VPS credits - matches dashboard bg-success */
}

.balance-amount.credit-zero {
    color: #dc3545; /* Red for zero credits with subscription - indicates queuing */
}

.coin-icon {
    color: #ffc107;
    font-size: 16px;
}

/* Credit widget add button styling */
.balance-display-container .btn-outline-primary {
    border-radius: 50%;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #007bff;
    color: #007bff;
    background-color: transparent;
    transition: all 0.2s ease;
}

.balance-display-container .btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
    transform: scale(1.05);
}

.balance-display-container .btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* User Menu Dropdown Styling */
.user-menu-button {
    background-color: #28a745 !important; /* API use case green */
    color: white !important;
    border-radius: 8px !important;
    padding: 22px 22px !important; /* Comfortable spacing left/right, taller */
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: background-color 0.3s ease !important;
}

.user-menu-button:hover {
    background-color: #218838 !important; /* Darker green on hover */
    color: white !important;
}

.user-menu-button:focus {
    background-color: #218838 !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.navbar .dropdown-toggle::after {
    margin-left: 0.5em;
}

.dropdown-menu {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    min-width: 160px;
}

.dropdown-item {
    padding: 8px 16px;
    color: #495057;
    transition: background-color 0.2s ease;
}

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

.dropdown-item i {
    width: 16px;
    text-align: center;
}

.dropdown-divider {
    margin: 4px 0;
}

.my-0.fw-normal {
    font-size: 26px; /* Ajustez la taille selon vos besoins */
}



.subscription-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-family: 'Arial', sans-serif;
    max-width: 900px;
    margin: 20px auto;
  }
  
  .left-part, .center-part, .right-part {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .plan-name {
    font-weight: bold;
    font-size: 16px;
  }
  
  .badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
  }

  .status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
    text-align: center;
    margin-right: 8px;
  }
  
  .badge.active {
    background-color: #d4f5e9;
    color: #1a7f37;
    border: 1px solid #1a7f37;
  }
  
  .badge.canceling {
    background-color: #f2f4f6;
    color: #4a4a4a;
    border: 1px solid #ccc;
  }
  
  .badge.inactive {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
  }
  
  .right-part {
    font-size: 14px;
    color: #555;
  }

  .next-payment {
    font-size: 12px;
    color: #888;
    margin-left: 10px;
  }




  .payments-table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    font-size: 13px; /* Petite police */
  }
  
  .payments-table th, .payments-table td {
    padding: 6px 8px; /* 👈 Réduction du padding */
    border-bottom: 1px solid #eee;
    text-align: left;
  }
  
  .payments-table thead {
    background-color: #f9f9f9;
    font-weight: bold;
  }
  
  .status {
    padding: 2px 6px; /* Compact pour badges */
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  .status.succeeded {
    background-color: #e6f4ea;
    color: #1a7f37;
    border: 1px solid #1a7f37;
  }
  
  .status.failed {
    background-color: #fdecea;
    color: #b00020;
    border: 1px solid #b00020;
  }
  
  .search-form {
    width: 90%;
    margin: 10px auto;
    display: flex;
    justify-content: center;
    gap: 8px;
  }
  
  .search-form select, .search-form button {
    padding: 5px 8px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 6px;
  }
  
  .search-form button {
    background-color: #1a7f37;
    color: white;
    cursor: pointer;
  }
  
  .search-form button:hover {
    background-color: #155d2c;
  }

  .badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
  }

  .badge.other {
        background-color: #bcc0c4; /* Couleur grise comme celle de Bootstrap */
        color: white;
        border: 1px solid black
    }
  
  .badge.subscription {
    background-color: #e6f4ea;
    color: #1a7f37;
    border: 1px solid #1a7f37;
  }
  
  .badge.one-time {
    background-color: #e6f0fb;
    color: #1a3fff;
    border: 1px solid #1a3fff;
  }

   
  .font-nunito {
        font-family: 'Nunito', sans-serif;
    }

    .card-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Style spécifique pour les marques de carte */
.card-icon.visa { color: #1A1F71; }
.card-icon.mastercard { color: #EB001B; }
.card-icon.amex { color: #006FCF; }
.card-icon.discover { color: #FF6600; }












    .credit-summary {
        margin-bottom: 1.5rem;
    }
    
    .credit-metrics {
        display: flex;
        margin-bottom: 1rem;
        gap: 2rem;
    }
    
    .credit-metric {
        display: flex;
        flex-direction: column;
    }
    
    .metric-label {
        font-size: 0.875rem;
        color: #6c757d;
        margin-bottom: 0.25rem;
    }
    
    .metric-value {
        font-size: 1.25rem;
        font-weight: 600;
        color: #2e2e2e;
    }
    
    .progress-container {
        margin-top: 0.5rem;
    }
    
    .progress {
        background-color: #e9ecef;
        border-radius: 999px;
        overflow: hidden;
    }
    
    .progress-bar {
        border-radius: 999px;
    }
    
    .progress-label {
        font-size: 0.75rem;
        color: #6c757d;
        text-align: right;
    }
    
    .extra-credits {
        background-color: #f8f9fa;
        border-radius: 0.5rem;
        padding: 0.5rem;
    }
    
    .credit-card {
        background-color: white;
        border-radius: 0.5rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        border: 1px solid #e9ecef;
    }
    
    .extra-credits-value {
        font-size: 1.25rem;
        font-weight: 600;
        margin-right: 0.5rem;
    }
    
    .extra-credits-label {
        font-size: 0.875rem;
        color: #6c757d;
    }
    
    .subscription-actions {
        margin-top: 1.5rem;
    }

    /* Ajouter cette règle CSS après les autres classes de badge */

.badge.pending {
    background-color: #fff3cd;  /* Fond jaune pâle */
    color: #856404;             /* Texte brun foncé */
    border: 1px solid #ffeeba;  /* Bordure jaune */
}

/* Si vous utilisez la classe status-badge.pending, ajoutez également : */
.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Message Widget Styling */
.message-widget-btn {
    position: relative;
    background: none !important;
    border: none !important;
    color: #6c757d !important;
    font-size: 18px !important;
    padding: 8px 12px !important;
    transition: color 0.2s ease;
}

.message-widget-btn:hover {
    color: #495057 !important;
}

.message-widget-btn:focus {
    box-shadow: none !important;
}

.message-widget-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

.message-dropdown {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.message-list .dropdown-item {
    padding: 8px 16px;
    border-bottom: 1px solid #f8f9fa;
}

.message-list .dropdown-item:last-child {
    border-bottom: none;
}

.message-item {
    font-size: 14px;
    line-height: 1.4;
}

.message-item .message-text {
    color: #495057;
}

.message-item .message-time {
    color: #6c757d;
    font-size: 12px;
}

/* Terms Modal */
#termsModalContent h3 {
    color: #007bff;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

#termsModalContent h3:first-child {
    margin-top: 0;
}

/* Floating Scroll Buttons */
.scroll-button {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.scroll-button:hover {
    background-color: #0056b3;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.scroll-button.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scroll-top {
    top: 20px;
    right: 20px;
}

.scroll-bottom {
    bottom: 20px;
    right: 20px;
}

.scroll-button i {
    font-size: 18px;
}

/* Fix tooltip cursor flicker on buttons */
.balance-display-container .btn {
    cursor: pointer !important;
    position: relative;
}

/* Extend clickable area to prevent cursor flicker from all sides */
.balance-display-container .btn::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    bottom: -5px;
    left: -5px;
    background: transparent;
}

.balance-display-container .btn i,
.balance-display-container .btn * {
    pointer-events: none;
}

/* Ensure tooltip never interferes with cursor */
.tooltip,
.tooltip-inner,
.tooltip-arrow {
    pointer-events: none !important;
}