/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
@import "navbar";

/* Sidebar Styles */
.sidebar {
  padding-top: 80px;
  /* Pour éviter que la navbar ne masque le contenu */
  background-color: #051825 !important;
  height: auto;
  max-width: 250px !important;
  transition: width 0.3s ease;
}

#sidebar+main {
  width: calc(100% - 250px) !important;
}

.sidebar.collapsed {
  width: 80px !important;
}

#sidebar.collapsed+main {
  width: calc(100% - 80px) !important;
}

.sidebar.collapsed .nav-link span {
  display: none;
}

.sidebar.collapsed img.logo-full {
  display: none;
  width: 50px;
  margin: auto;
}

.sidebar img.logo-icon {
  display: none;
}

.sidebar.collapsed img.logo-icon {
  display: block;
  width: 50px;
  margin: auto;
}

/* Navbar Active Link */
.nav-link.active {
  background-color: #042650 !important;
  color: white !important;
  border-radius: 5px;
}

.nav-link.active:hover {
  background-color: #06408a !important;
  /* Légère variation pour le hover */
  color: white !important;
}

/* Buttons */
.btn-dark-blue {
  background-color: #042650 !important;
  border-color: #042650 !important;
  color: white !important;
}

.btn-dark-blue:hover {
  background-color: #06408a !important;
  border-color: #06408a !important;
  color: white !important;
}

/* Table Adjustments */
.row-col {
  flex: 1;
  text-align: left;
}

.row-data:first-child {
  margin-top: 10px;
}

.full-width {
  width: calc(100% - 80px) !important;
  transition: width 0.3s ease;
}

/* Footer */
.footer {
  background-color: #051825;
  color: white;
  text-align: center;
  padding: 15px 0;
  width: 100%;
  /*position: fixed;
  bottom: 0;*/
}

/* Dans application.css ou un fichier SCSS */
th[data-sort-type] {
  cursor: pointer;
  position: relative; /* Pour positionner l'icône si besoin */
}

th[data-sort-type]:hover {
  background-color: #f8f9fa; /* Léger fond au survol */
}

/* Styles pour les icônes de tri (optionnel) */
.sort-icon {
  font-size: 0.8em;
  color: #6c757d; /* Couleur discrète */
}

th.sort-asc .sort-icon,
th.sort-desc .sort-icon {
 color: #000; /* Couleur plus visible pour l'icône active */
}

.tooltip.tooltip-large .tooltip-inner {
  max-width: 300px;
  white-space: normal;
}

/* Amélioration du menu déroulant Settings */
.collapse-icon {
  transition: transform 0.3s ease;
  font-size: 0.8em;
  color: #ccc;
}

.nav-link[aria-expanded="true"] .collapse-icon {
  transform: rotate(180deg);
}

/* Style pour les sous-menus */
.nav .collapse .nav-link {
  font-size: 0.9em;
  padding: 0.5rem 0.75rem;
  margin-left: 0.5rem;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav .collapse .nav-link:hover {
  border-left-color: #042650;
  background-color: rgba(4, 38, 80, 0.1);
}

/* Animation smooth pour le collapse */
.collapse {
  transition: all 0.3s ease;
}

/* Survol du menu principal */
.nav-link[data-bs-toggle="collapse"]:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

/* Indicateur visuel pour les menus déroulants en mode collapsed */
.sidebar.collapsed .collapse-icon {
  display: none;
}

// Custom badge colors for specific statuses
.badge-paid {
  background-color: #28a745 !important;
  color: white;
}

.badge-cancelled {
  background-color: #6c757d !important;
  color: white;
}

.badge-overdue {
  background-color: #dc3545 !important;
  color: white;
}

.badge-recovery {
  background-color: #fd7e14 !important;
  color: white;
}

.badge-pending {
  background-color: #17a2b8 !important;
  color: white;
}

.badge-failed {
  background-color: #dc3545 !important;
  color: white;
}

.badge-expired {
  background-color: #343a40 !important;
  color: white;
}

.badge-paused {
  background-color: #6f42c1 !important;
  color: white;
}
.head-navbar {
    background-color: #051825;
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.head-navbar-brand img {
    max-height: 50px;
}

.head-nav-link {
    color: white !important;
}

.head-nav-link:hover {
    text-decoration: underline;
}
html,
body {
  height: 100%;
}

.form-signin {
  max-width: 330px;
  padding: 1rem;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

 /* Styles pour la section principale */

 html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

 main {
  padding-top: 100px; /* Pour compenser la navbar fixe */
  flex-grow: 1;
  width: calc(100% - 250px); /* Ajustement selon la largeur du menu latéral */
}

 .main-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 80px; /* Pour éviter que la navbar ne masque le contenu */
  padding-left: 20px;
  padding-right: 20px;
  transition: all 0.3s ease-in-out;
}

.flex-grow-1 {
  flex-grow: 1;
}

/* Gestion de la largeur selon la sidebar */
.main-expanded {
  width: calc(100% - 250px); /* Lorsque la sidebar est visible */
}

.main-collapsed {
  width: calc(100% - 80px); /* Lorsque la sidebar est réduite */
}

 body {
    background-color: #313a46 !important;
 }
 
 .navbar-custom {
   position: fixed;
   top:0;
   right:0;
 }

 .table-container {
  max-width: 100%;
  margin: auto;
}

.row-header, .row-data {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
}

.row-data {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px; /* Espacement entre les lignes */
  border: 1px solid rgba(0, 0, 0, 0.175);
}

.badge-paid         { background-color: #198754; color: white; }  /* Vert */
.badge-cancelled    { background-color: #6c757d; color: white; }  /* Gris */
.badge-overdue      { background-color: #dc3545; color: white; }  /* Rouge */
.badge-recovery     { background-color: #8b0000; color: white; }  /* Rouge foncé */
.badge-pending      { background-color: #ffc107; color: black; }  /* Jaune */
.badge-failed       { background-color: #ff4d4d; color: white; }  /* Rouge clair */
.badge-expired      { background-color: #212529; color: white; }  /* Noir */
.badge-paused       { background-color: #0d6efd; color: white; }  /* Bleu */
