/* ===================== GLOBAL ===================== */
body{

    background:
        linear-gradient(rgba(0,0,0,.70)),
        url("../img/fond-connexion.png") no-repeat center center / cover;
}

.app-content {
    background: transparent;
}

/* ===================== CARTES ===================== */
.card {
    border-radius: 14px;
    border: none;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.card-header {
    background: linear-gradient(135deg, #0a3d62, #0a7c4f);
    color: #fff;
    font-weight: 600;
    border-radius: 14px 14px 0 0;
}

.card-header.with-btn .btn {
    color: #fff;
    opacity: .8;
}

.card-header.with-btn .btn:hover {
    opacity: 1;
}

.card-body {
    padding: 20px;
}

/* ===================== TABLES ===================== */
.table {
    font-size: 13px;
}

.table thead th {
    background: #eef3f8;
    color: #000;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.table tbody tr:hover {
    background: ;
}

.table td {
    vertical-align: middle;
    color: #FFF;
}

/* ===================== BADGES ===================== */
.badge {
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 20px;
}

/* ===================== BOUTONS ===================== */
.btn {
    border-radius: 25px;
    font-size: 13px;
    padding: 7px 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #0a3d62, #1e90ff);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #1e7f4f, #2ecc71);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    border: none;
}

/* ===================== LIENS DE PAIEMENT ===================== */
a.btn-paiement,
a.lien-paiement {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 30px;
    background: linear-gradient(135deg, #ff9f1a, #f39c12);
    color: #fff !important;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,.15);
}

a.btn-paiement:hover {
    transform: translateY(-2px);
}

/* ===================== SIDEBAR ===================== */
.app-sidebar {
    background: linear-gradient(180deg, #0a3d62, #0a7c4f);
}

.menu-header {
    color: rgba(255,255,255,.7);
    font-size: 11px;
}

.menu-link {
    color: #fff !important;
}

.menu-item.active > .menu-link {
    background: rgba(255,255,255,.15);
    border-radius: 8px;
}

/* ===================== TABLEAU DETAIL PAIEMENT ===================== */
.table-bordered td,
.table-bordered th {
    border-color: #e1e6ef;
}

.text-success {
    font-weight: 600;
}

.text-danger {
    font-weight: 600;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .card-body {
        padding: 15px;
    }

    .table {
        font-size: 12px;
    }

    .btn {
        width: 100%;
        margin-bottom: 8px;
    }
}
.student-card{
  margin:10px;
  border-radius:16px;
}

.stat-modern{
  margin-top:10px;
}

/* Carte principale */
.stat-box{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  border-radius:16px;
  color:#fff;
  min-height:90px;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
  transition:.25s ease;
}

.stat-box:hover{
  transform:translateY(-4px);
}

/* Icône */
.stat-icon{
  width:46px;
  height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:rgba(255,255,255,.25);
  font-size:20px;
}

/* Texte */
.stat-content span{
  font-size:12px;
  opacity:.85;
  display:block;
}
.stat-content strong{
  font-size:15px;
  line-height:1.2;
  font-weight:700;
}

/* Dégradés */
.bg-blue{
  background:linear-gradient(135deg,#1e90ff,#3742fa);
}
.bg-red{
  background:linear-gradient(135deg,#ff4757,#e84118);
}
.bg-orange{
  background:linear-gradient(135deg,#ffa502,#ff7f50);
}
.bg-purple{
  background:linear-gradient(135deg,#6c5ce7,#a29bfe);
}
.bg-green{
  background:linear-gradient(135deg,#2ed573,#1eae60);
}

/* Mobile */
@media(max-width:768px){
  .stat-content strong{
    font-size:14px;
  }
}

.bottom-nav{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  height:70px;
  background:#fff;
  display:flex;
  justify-content:space-around;
  align-items:center;
  border-top:1px solid #eaeaea;
  box-shadow:0 -8px 20px rgba(0,0,0,.08);
  z-index:9999;
}

/* Item */
.bottom-nav .nav-item{
  flex:1;
  text-align:center;
  text-decoration:none;
  color:#777;
  font-size:11px;
  transition:.2s;
}

.bottom-nav .nav-item i{
  display:block;
  font-size:20px;
  margin-bottom:4px;
}

/* Actif */
.bottom-nav .nav-item.active{
  color:#1e90ff;
}

.bottom-nav .nav-item.active i{
  transform:translateY(-2px);
}

/* Danger */
.bottom-nav .nav-item.danger{
  color:#e74c3c;
}

/* Padding page */
body{
  padding-bottom:80px;
}

/* NAV BAR */
.bottom-nav{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  height:70px;
  background:#fff;
  display:flex;
  justify-content:space-around;
  align-items:center;
  border-top:1px solid #eaeaea;
  box-shadow:0 -8px 25px rgba(0,0,0,.1);
  z-index:9999;
}

/* ITEM NORMAL */
.bottom-nav .nav-item{
  flex:1;
  text-align:center;
  text-decoration:none;
  color:#777;
  font-size:11px;
}

.bottom-nav .nav-item i{
  display:block;
  font-size:20px;
  margin-bottom:4px;
}

/* 🔥 PAYER BUTTON */
.pay-btn{
  position:absolute;
  top:-28px;
  left:50%;
  transform:translateX(-50%);
  width:60px;
  height:60px;
  background:linear-gradient(135deg,#1e90ff,#005eff);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:24px;
  text-decoration:none;
  box-shadow:0 12px 30px rgba(0,94,255,.45);
  transition:.25s ease;
}

/* Hover */
.pay-btn:hover{
  transform:translateX(-50%) scale(1.08);
  box-shadow:0 16px 35px rgba(0,94,255,.6);
}

/* Label caché pour accessibilité */
.pay-btn::after{
  content:"Payer";
  position:absolute;
  bottom:-20px;
  font-size:11px;
  color:#1e90ff;
}

/* DANGER */
.bottom-nav .danger{
  color:#e74c3c;
}

/* MOBILE SAFE */
body{
  padding-bottom:90px;
}

/* BARRE HORIZONTALE */
.action-bar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:15px 0;
}

/* FORM INLINE */
.action-form{
  display:flex;
  gap:10px;
  align-items:center;
}

/* BOUTON BASE */
.btn-action{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 14px;
  border-radius:30px;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  border:none;
  cursor:pointer;
  transition:all .2s ease;
  white-space:nowrap;
}

/* COULEURS */
.btn-action.primary{
  background:linear-gradient(135deg,#1e90ff,#005eff);
  color:#fff;
  box-shadow:0 6px 15px rgba(0,94,255,.35);
}

.btn-action.success{
  background:linear-gradient(135deg,#2ecc71,#27ae60);
  color:#fff;
  box-shadow:0 6px 15px rgba(39,174,96,.35);
}

.btn-action.outline{
  background:#fff;
  color:#005eff;
  border:2px solid #005eff;
}

/* LIEN DE PAIEMENT (DYNAMIQUE) */
.btn-action.btn-success,
.btn-action.btn-danger,
.btn-action.btn-warning{
  border-radius:30px;
  font-weight:600;
}

/* HOVER */
.btn-action:hover{
  transform:translateY(-2px);
  opacity:.95;
}

/* MOBILE */
@media(max-width:768px){
  .action-bar{
    flex-direction:column;
  }

  .action-form{
    flex-wrap:wrap;
  }

  .btn-action{
    width:100%;
    justify-content:center;
  }
}