/* D:\xampp\htdocs\shield-bill\application\css\custom.css */

/* General Body Styling */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #f8f9fa; /* Light gray background */
    color: #343a40; /* Darker text for readability */
}

/* Navbar/Header Styling */
.navbar {
    background-color: #ffffff; /* White navbar */
    box-shadow: 0 2px 4px rgba(0,0,0,.05); /* Subtle shadow */
}

.navbar-brand {
    font-weight: 600;
    color: #343a40 !important;
}

.nav-link {
    color: #6c757d !important;
}

.nav-link:hover {
    color: #007bff !important; /* Primary color on hover */
}

/* Card Styling for a modern look */
.card {
    border-radius: 0.75rem; /* More rounded corners */
    border: none; /* Remove default border */
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.075); /* More pronounced shadow */
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #e9ecef; /* Light header background */
    border-bottom: 1px solid rgba(0,0,0,.05);
    font-weight: 600;
    color: #343a40;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

/* Table Styling */
.table {
    border-radius: 0.75rem;
    overflow: hidden; /* Ensures rounded corners apply to content */
}

.table thead th {
    background-color: #ffffff; /* Primary color for table headers */
    color: #000000;
    border-color: #ffffff;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,123,255,.05); /* Light primary tint for odd rows */
}

.table-hover tbody tr:hover {
    background-color: rgba(0,123,255,.1); /* Slightly darker primary tint on hover */
}

/* Buttons */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    border-radius: 0.5rem;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    border-radius: 0.5rem;
}

.btn-info:hover {
    background-color: #117a8b;
    border-color: #117a8b;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    border-radius: 0.5rem;
}

.btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

/* Forms */
.form-control {
    border-radius: 0.5rem;
    border-color: #ced4da;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Utilities (adjusting some Bootstrap defaults) */
.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Bottom Navigation */
.bottom-nav {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.bottom-nav-list {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: #6c757d;
    text-decoration: none;
    flex-grow: 1;
    text-align: center;
}

.bottom-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.bottom-nav-item span {
    font-size: 12px;
}

.bottom-nav-item.active {
    color: #e91e63; /* Material Dashboard primary color */
}

/* Show only on mobile */
@media (max-width: 767.98px) {
    .bottom-nav {
        display: flex;
    }
    main.main-content {
        margin-bottom: 60px; /* Add margin to the bottom of the main content to prevent overlap */
    }
}