html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Custom Styles */
.card {
    border: none;
    border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

.btn {
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 500;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

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

.footer {
    background-color: #f8f9fa;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.text-primary {
    color: #4e73df !important;
}

.bg-primary {
    background-color: #4e73df !important;
}

.btn-primary {
    background-color: #4e73df;
    border-color: #4e73df;
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

/* Footer styles */
.site-footer {
  background: #f8f9fa;
  color: #6c757d;
  font-size: .9rem;
}
.site-footer h5, .site-footer h6 {
  color: #343a40;
}
.site-footer .footer-links a {
  color: #6c757d;
  text-decoration: none;
}
.site-footer .footer-links a:hover {
  color: #4e73df;
  text-decoration: underline;
}
.site-footer .social-icons a {
  color: #6c757d;
}
.site-footer .social-icons a:hover {
  color: #4e73df;
}
@media (max-width: 767.98px) {
  .site-footer .social-icons { margin-top: .5rem; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem !important;
    }

    .card-body {
        padding: 1rem !important;
    }
}

/* Alert animations */
.alert {
    animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Center navbar menu so it aligns with page content/banner */
.navbar .container {
    display: flex;
    align-items: center;
}

.navbar-nav.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex;
    align-items: center;
}

/* On smaller screens when the navbar collapses, keep default stacking */
@media (max-width: 991.98px) {
    .navbar-nav.mx-auto {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.hero-dashboard {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    overflow: hidden;
}

    .hero-dashboard .hero-left {
        min-width: 0;
    }

    .hero-dashboard h2 {
        font-size: 1.5rem;
    }

    .hero-dashboard .hero-right {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-dashboard .card {
        border-radius: 10px;
    }

.wave {
    display: inline-block;
    transform-origin: 70% 70%;
    animation: wave 1.6s infinite;
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(14deg);
    }

    30% {
        transform: rotate(-8deg);
    }

    40% {
        transform: rotate(14deg);
    }

    50% {
        transform: rotate(-4deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@media (max-width: 767.98px) {
    .hero-dashboard {
        flex-direction: column;
        text-align: center;
    }

        .hero-dashboard .hero-right {
            margin-top: .75rem;
        }
}