.corner i[data-corner],
.corner i[data-corner]::before {
  border-radius: 50% 0 0 0;
}

/* ALERTS - MODERN & VIBRANT */

.alert {
  margin-top: 10px;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid;
  font-size: 14px;
  line-height: 1.5;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.alert::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: inherit;
  opacity: 0.6;
}

/* SUCCESS - Green Gradient */
.alert-success {
  color: #0d572a;
  background: linear-gradient(135deg, #d4edda 0%, #c8e6c9 100%);
  border-color: #81c784;
  box-shadow:
    0 4px 15px rgba(40, 167, 69, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-left: 4px solid #28a745;
}

.alert-success:hover {
  box-shadow:
    0 6px 20px rgba(40, 167, 69, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* DANGER - Red Gradient */
.alert-danger {
  color: #721c24;
  background: linear-gradient(135deg, #f8d7da 0%, #ffcdd2 100%);
  border-color: #ef5350;
  box-shadow:
    0 4px 15px rgba(220, 53, 69, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-left: 4px solid #dc3545;
}

.alert-danger:hover {
  box-shadow:
    0 6px 20px rgba(220, 53, 69, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* WARNING - Amber Gradient */
.alert-warning {
  color: #664d03;
  background: linear-gradient(135deg, #fff3cd 0%, #ffe0b2 100%);
  border-color: #ffb74d;
  box-shadow:
    0 4px 15px rgba(255, 193, 7, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-left: 4px solid #ffc107;
}

.alert-warning:hover {
  box-shadow:
    0 6px 20px rgba(255, 193, 7, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* INFO - Cyan Gradient */
.alert-info {
  color: #004b57;
  background: linear-gradient(135deg, #d1ecf1 0%, #b3e5fc 100%);
  border-color: #4db8ff;
  box-shadow:
    0 4px 15px rgba(23, 162, 184, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-left: 4px solid #17a2b8;
}

.alert-info:hover {
  box-shadow:
    0 6px 20px rgba(23, 162, 184, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* PRIMARY - Blue Gradient */
.alert-primary {
  color: #002d62;
  background: linear-gradient(135deg, #cce5ff 0%, #b3d9ff 100%);
  border-color: #69b3ff;
  box-shadow:
    0 4px 15px rgba(0, 123, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-left: 4px solid #007bff;
}

.alert-primary:hover {
  box-shadow:
    0 6px 20px rgba(0, 123, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* SECONDARY - Gray Gradient */
.alert-secondary {
  color: #23272b;
  background: linear-gradient(135deg, #e2e3e5 0%, #d8d9db 100%);
  border-color: #adb5bd;
  box-shadow:
    0 4px 15px rgba(108, 117, 125, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-left: 4px solid #6c757d;
}

.alert-secondary:hover {
  box-shadow:
    0 6px 20px rgba(108, 117, 125, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* DARK - Charcoal Gradient */
.alert-dark {
  color: #0d0d0d;
  background: linear-gradient(135deg, #d6d8d9 0%, #c9cbcd 100%);
  border-color: #8a8d91;
  box-shadow:
    0 4px 15px rgba(33, 37, 41, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-left: 4px solid #212529;
}

.alert-dark:hover {
  box-shadow:
    0 6px 20px rgba(33, 37, 41, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* LIGHT - Off-White Gradient */
.alert-light {
  color: #505050;
  background: linear-gradient(135deg, #fefefe 0%, #f5f5f5 100%);
  border-color: #e0e0e0;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-left: 4px solid #f8f9fa;
}

.alert-light:hover {
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

/* ERROR NOTE DIV */
.errnotediv {
  color: #e63946;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ANIMATION - Optional entrance effect */
@keyframes slideInAlert {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.alert {
  animation: slideInAlert 0.4s ease-out;
}

/* DISMISSIBLE BUTTON */
.alert .btn-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  color: inherit;
}

.alert .btn-close:hover {
  opacity: 1;
}

/********************************/
em.optional {
  font-weight: 300;
}

/*** button ****/
.btn.loading {
  pointer-events: none;
  cursor: not-allowed;
  position: relative;
}
.btn.loading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px 0 0 999px;
  animation: ticker-fill 1.8s ease-in-out infinite;
  border-radius: 999px;
}
@keyframes ticker-fill {
  0% {
    width: 0%;
    opacity: 1;
  }
  80% {
    width: 100%;
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 0;
  }
}
/********************************/
/* dashboard */
/********************************/

.portal-menu > a > img {
  width: 25px;
  height: auto;
}
.portal-menu .logout-link {
  background: #57323224;
}
