/* Global Styles */
body {
    background-color: #cfd7d6;
    color: #402d1c; /* Primary text color */
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure the body takes up the full height of the viewport */
    text-size-adjust: 100%; /* Ensure proper text scaling across modern browsers */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    text-align: left;
    flex: 1;
    background-color: #cfd7d6;
}

/* Custom Scrollbar Styling for Changelog */
.changelog-container {
    max-height: 600px;
    overflow-y: auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
}

.changelog-container::-webkit-scrollbar {
    width: 10px;
}

.changelog-container::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 5px;
}

.changelog-container h2,
.changelog-container h3 {
    color: #34778a;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin-top: 20px;
}

.changelog-container ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.changelog-container li {
    margin-bottom: 10px;
}

.changelog-container p {
    line-height: 1.6;
    color: #402d1c;
}

/* Header */
.header {
    background-color: #34778a;
    padding: 20px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: auto;
    max-height: 80px;
    margin-right: 20px;
}

.title-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.main-title,
.subtitle {
    font-family: 'Prompt', sans-serif;
    font-weight: 900;
    color: #402d1c;
}

/* Navbar */
.navbar {
    background-color: #34778a;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-nav {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    text-align: center;
}

.nav-item {
    margin: 0 15px;
    display: inline-block;
}

.nav-link {
    color: #afc1c3 !important;
    padding: 10px 15px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 4px;
}

.nav-link:hover {
    color: #afc1c3;
    background-color: #944c36; /* Burnt umber hover color */
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: " "; /* Generic down triangle */
    font-size: 0.8em;
    margin-left: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #34778a;
    color: #afc1c3;
    padding: 10px;
    list-style: none;
    margin: 0;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    padding: 8px 12px;
    text-decoration: none;
    color: #afc1c3;
    display: block;
}

.dropdown-item:hover {
    background-color: #944c36; /* Burnt umber hover color */
}

/* Footer */
.bg-primary {
    background-color: #34778a !important;
    color: #afc1c3 !important;
    text-align: center;
    padding: 20px 10px;
    font-size: 0.9em;
    position: relative;
    margin-top: auto;
}

.bg-primary a {
    color: #afc1c3 !important;
    text-decoration: underline;
}

.bg-primary a:hover {
    color: #944c36 !important;
}

.social-icons {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #3d2e1f !important;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #944c36 !important;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    footer .social-icons {
        position: static;
        margin-top: 10px;
        justify-content: center;
    }
}

/* DataTables Search Box and Filter Styling */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 5px;
    background-color: #f8f9fa;
    color: #402d1c;
    font-size: 0.9em;
}

.dataTables_wrapper .dataTables_filter label {
    color: #402d1c;
    font-weight: bold;
}

/* DataTables Pagination Button Styling */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background-color: #34778a !important;
    color: #f8f9fa !important;
    border-radius: 4px !important;
    padding: 5px 10px;
    margin: 2px;
    font-size: 0.85em;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #944c36 !important;
    color: #ffffff !important;
}

/* DataTables Info and Length Dropdown Styling */
.dataTables_wrapper .dataTables_info {
    color: #402d1c;
    font-size: 0.9em;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #402d1c;
    padding: 5px;
}

/* Site-Wide Card Styling */
.card-tile {
    width: 100%;
    max-width: 300px; /* Consistent width */
    min-height: 300px; /* Consistent minimum height */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease; /* Smooth scaling effect on hover */
}

/* Uniform Image Styling for Card-Tile */
.card-tile img {
    max-width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

.card-tile:hover {
    transform: scale(1.05); /* Slight scale on hover */
}

/* Card Body Styling */
.card-tile .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 20px;
}

/* Icon Styling */
.card-tile .card-body i {
    color: #402d1c; /* Unified icon color */
    font-size: 3rem; /* Consistent icon size */
    margin-bottom: 10px; /* Space below the icon */
}

/* Text Styling */
.card-tile h2 {
    font-size: 1.25rem;
    color: #402d1c;
    text-align: center;
    margin-bottom: 0.5rem;
}

.card-tile p {
    font-size: 0.9rem;
    color: #402d1c;
    text-align: center;
}

/* Responsive Adjustment for Card Tiles */
@media (max-width: 768px) {
    .card-tile {
        max-width: 100%; /* Full-width on smaller screens */
    }
}

/* Vertical Spacing Between Card Columns in Rows */
.row > .col-sm-6 {
    margin-bottom: 20px; /* Adds vertical spacing between card rows */
}
