html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    background-color: #ffffff;
}

/* Header styles */
.navbar {
    background-color: #000000 !important;
    padding: 1rem 0;
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.5rem;
}

.nav-link {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

    .nav-link:hover {
        color: #cccccc !important;
    }

.navbar-toggler {
    border-color: #ffffff;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Footer styles */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #000000;
    color: #ffffff !important;
    padding: 1rem 0;
    border-top: 1px solid #333333;
}

    .footer a {
        color: #ffffff;
        text-decoration: none;
    }

        .footer a:hover {
            color: #cccccc;
            text-decoration: underline;
        }

/* Button styles */
.btn-primary {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: #ffffff;
        border-color: #000000;
        color: #000000;
    }

.btn-outline-primary {
    border-color: #000000;
    color: #000000;
    transition: all 0.3s ease;
}

    .btn-outline-primary:hover {
        background-color: #000000;
        border-color: #000000;
        color: #ffffff;
    }

/* Focus states */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

/* Form styles */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: #6c757d;
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Highlight text styles */
.highlight-text {
    color: #e60000; /* Dark red */
    font-weight: 700;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

    .highlight-text:hover {
        color: #ff3333;
        text-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
        text-decoration: none;
    }

/* Login page styles */
.login-container {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

    .login-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.03) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
        z-index: 1;
    }

    .login-container > * {
        position: relative;
        z-index: 2;
    }

/* Wrapper for login and illustration */
.login-wrapper {
    display: flex;
    align-items: stretch;
    gap: 3rem;
    background: #ffffff;
    padding: 3rem 3rem;
    border-radius: 20px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.login-illustration img {
    /*    padding-top: 110px;*/
    /* width: 100%;*/
    height: auto;
    max-height: 569px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.1));
}

@media (max-width: 992px) {
    .login-wrapper {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .login-illustration img {
        max-width: 260px;
    }
}

.login-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    flex: 1 1 360px;
    max-width: 450px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

    .login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #000000 0%, #333333 50%, #000000 100%);
    }

.login-brand-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.3s ease;
}

    .brand-circle:hover {
        transform: scale(1.05);
    }

    .brand-circle::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        right: 2px;
        bottom: 2px;
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }

.brand-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.login-card h2 {
    color: #000000;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-card .text-muted {
    color: #6c757d;
    font-size: 0.95rem;
}

.login-card .form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.75rem;
}

    .login-card .form-control:focus {
        border-color: #000000;
        box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
    }

.login-card .btn-primary {
    padding: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.login-card a {
    color: #000000;
    transition: color 0.3s ease;
}

    .login-card a:hover {
        color: #666666;
    }

.form-check-input:checked {
    background-color: #000000;
    border-color: #000000;
}

/* Dashboard styles */
.dashboard-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0 2rem;
}

.dashboard-card {
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.card-blue {
  background-color: #0086c3;
  color: #ffffff;
}

.card-accent {
  background-color: #004b62;
  color: #ffffff;
}

.card-white {
  background-color: #ffffff;
}

/* New card color variations */
.card-purple {
  background-color: #6b5b95;
  color: #ffffff;
}

.card-orange {
  background-color: #ff7f50;
  color: #ffffff;
}

.card-teal {
  background-color: #45b7af;
  color: #ffffff;
}

.card-indigo {
  background-color: #4b0082;
  color: #ffffff;
}

.card-green {
  background-color: #3cb371;
  color: #ffffff;
}

.card-metrics {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e0e0e0;
}

.metrics-card .metric-num {
  font-size: 2.25rem;
  font-weight: 700;
  color: #0086c3;
}

.card-image {
  background-size: cover;
  background-position: center;
  color: #ffffff;
  display: flex;
  align-items: flex-end;
  min-height: 200px;
}

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  border-radius: 12px;
}

.card-image .overlay-text {
  position: relative;
  z-index: 2;
  padding: 1rem 1.25rem;
  font-weight: 600;
}

.dashboard-card i {
  font-size: 1rem;
}
