body.dashboard,
body.login {
    min-height: 100vh;
    background-color: #333;
}

body.dashboard,
body.login {
    min-height: 100vh;
    position: relative;
    margin: 0;
    background: url('../img/background.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Overlay */
body.dashboard::before,
body.login::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
}

/* Contenu au-dessus (exclut les modales Bootstrap) */
body.dashboard > *:not(.modal):not(.modal-backdrop),
body.login > * {
    position: relative;
    z-index: 1;
}


.app-tile {
    display: flex;
    width: 100%;
    background: linear-gradient(135deg, #0d6efd, #4dabf7);
    color: white;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.app-tile:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

.app-tile i {
    color: white;
}

.app-ruptures {
    background: linear-gradient(135deg, #dc3545, #ff6b6b);
}

.app-destock {
    background: linear-gradient(135deg, #fd7e14, #ff922b);
}

.app-rangement {
    background: linear-gradient(135deg, #0d6efd, #4dabf7);
}

.app-users {
    background: linear-gradient(135deg, #666, #000);
}

.p-custom {
    padding: 0.35rem 1.25rem;
}

.tile-content i {
    font-size: 85px;
    margin-bottom: 5px;
    display: block;
}

.tile-content h5 {
    font-weight: 300;
}

#btnLogin{
    background: #1a4aba;
    border-color: #1a4aba;
}
#btnLogin:hover{
    background: #333;
    border-color: #333;
}


#loading{
    position: relative;
    width:128px;
    height:28px;
}
#loading .message {
    position: absolute;
    width: 200px;
    bottom: -80px;
    left: -36px;
    text-align: center;
    color: white;
    font-size: .75em;
    letter-spacing: .2em;
    text-transform: uppercase;
}

#loading .spinner {
    position: absolute;
    width: 140px;
    height: 80px;
    text-align: center;
}

#loading .spinner > div {
    background-color: #FFF;
    height: 100%;
    width: 15px;
    display: inline-block;
    margin-right: 8px;
    -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
    animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

#loading .spinner .rect2 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

#loading .spinner .rect3 {
  -webkit-animation-delay: -1.0s;
  animation-delay: -1.0s;
}

#loading .spinner .rect4 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

#loading .spinner .rect5 {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}

@-webkit-keyframes sk-stretchdelay {
  0%, 40%, 100% { -webkit-transform: scaleY(0.4) }  
  20% { -webkit-transform: scaleY(1.0) }
}

@keyframes sk-stretchdelay {
  0%, 40%, 100% { 
    transform: scaleY(0.4);
    -webkit-transform: scaleY(0.4);
  }  20% { 
    transform: scaleY(1.0);
    -webkit-transform: scaleY(1.0);
  }
}