@media (min-width: 992px) {
    .dropdown:not(.dropdown-hover) .dropdown-menu {
        margin-top: 40px !important;
    }
}

@media (min-width: 992px) {
    :not(.main-content) .navbar .dropdown .dropdown-menu {
        top: 0.5rem !important;
    }
}

/* Default button width */
.btn {
    min-width: 120px;
}

.card {
    box-shadow: 0 20px 27px 0 rgba(0, 0, 0, 0.05);
    border: 0;
}

/* Fix excessive spacing for horizontal HR in cards - Argon Dashboard v2.1.0 */
.card hr.horizontal {
    margin-top: 0.50rem !important;
    margin-bottom: 0.50rem !important;
    opacity: 0.5;
}

/* Reduce card-header bottom padding to work better with HR */
.card .card-header {
    padding-bottom: 0.50rem !important;
}

/* Adjust card-body top padding when preceded by HR */
.card hr.horizontal + .card-body {
    padding-top: 1rem !important;
}

/* Sidebar flush to left edge, full height */
.sidenav.fixed-start {
    margin: 0 !important;
    border-radius: 0 !important;
    min-height: 100vh;
    border-right: 1px solid #e9ecef;
}

/* Brand name in the same grey as the menu items (Argon defaults it to #344767) */
.sidenav .navbar-brand {
    color: #67748e;
}

/* Adjust main-content left margin to match sidebar width without ms-4 gap */
@media (min-width: 1200px) {
    .sidenav.fixed-start + .main-content {
        margin-left: 15.625rem !important;
    }
}

/* Principal layout */
.main-content {
    flex: 1;
}

/* Footer */
.footer {
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .footer * {
        margin: 0 !important;
        padding: 0 !important;
    }

    .footer .container-fluid {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 0 15px !important;
    }

    .footer .copyright {
        font-size: 0.75rem;
        text-align: center;
        color: #6c757d;
        white-space: nowrap;
    }

/* Mobile: smaller footer text */
@media (max-width: 767.98px) {
    .footer .container-fluid {
        padding: 0 10px !important;
    }

    .footer .copyright {
        font-size: 0.7rem;
    }
}

/* Valid and invalid input colors */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

hr.horizontal.solid {
    background-image: none !important;
    border-top: 1px solid rgba(0,0,0,.25);
    height: 0;
}

/* Skeleton loading placeholder with shimmer effect */
.image-skeleton {
    aspect-ratio: 3 / 4;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
