/* Common styles for DataPointX website */

/* Active navigation link styling */
.navbar-nav .nav-link.active {
    color: #0d6efd !important;
    font-weight: 700;
}

/* Dropdown menu styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1050;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    /* Match the small class from navbar */
    transition: all 0.3s ease;
    color: #212529;
    cursor: pointer;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #0d6efd;
    color: white;
    transform: translateX(5px);
    text-decoration: none;
}

.dropdown-item:active {
    background-color: #0a58ca;
    color: white;
}

.dropdown-divider {
    margin: 0.5rem 1rem;
    opacity: 0.3;
}

/* Ensure dropdown toggle arrow rotates on hover */
.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

/* Status dot indicator */
.dot {
    height: 10px;
    width: 10px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

/* Fix for footer on short pages */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Common card styling */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Button hover effects */
.btn {
    transition: transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}