/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f2f4f8;
    color: #2c3e50;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*Navbar */
.navbar {
    padding: 0.9rem 2.5rem;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    box-shadow: 0 2px 8px rgba(30, 60, 114, 0.3);
}

.navbar-brand {
    font-weight: 700;              /* Slightly bolder */
    font-size: 1.6rem;             /* Slightly larger */
    letter-spacing: 1px;           /* More spacing for readability */
    color: #ffffff;                /* Bright white for contrast */
    text-transform: uppercase;     /* Optional: makes it stand out */
}

/* Navigation Links */
.nav-groups {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    flex-wrap: nowrap;
}

.nav-groups .navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.nav-main {
    flex: 0 1 auto;
    justify-content: center;
    gap: 1rem;
}

.nav-account {
    margin-left: auto;
    flex: 0 0 auto;
}

.navbar .nav-link {
    color: #ecf0f1 !important;
    margin-left: 0;
    font-size: 0.93rem;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.navbar .nav-link:hover {
    background-color: rgba(236, 240, 241, 0.2);
    color: #ffffff !important;
    box-shadow: none;
    transform: none;
}

/* For active page link */
.navbar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    box-shadow: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

@media (max-width: 992px) {
    .nav-groups {
        justify-content: flex-start;
    }
    .nav-account {
        margin: 0;
    }
}

/*Buttons */
.btn-primary {
    background: linear-gradient(90deg, #3a7bd5, #00d2ff);
    border: none;
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 8px rgba(58, 123, 213, 0.3);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(90deg, #2a5bb8, #00b8e6);
    box-shadow: 0 6px 14px rgba(42, 91, 184, 0.5);
    transform: scale(1.05);
    outline: none;
}

/* Container / Cards */
.container {
    max-width: 1100px;
}

/* Cards */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.18);
    transform: translateY(-5px);
}

/* Headings*/
h2 {
    font-weight: 700;
    color: #1a3d7c;
    letter-spacing: 1.2px;
}

/*Table*/
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.05);
    background-color: #ffffff;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    background-color: #e3f2fd;
    color: #1a3d7c;
    padding: 12px 20px;
    border-bottom: 2px solid #90caf9;
}

.table td {
    vertical-align: middle;
    padding: 12px 20px;
    color: #34495e;
    border-bottom: 1px solid #f0f3f7;
}

.table tbody tr:nth-child(odd) {
    background-color: #f9fbfc;
}

.table tbody tr:hover {
    background-color: #e3f2fd;
}

/* Pagination */
.pagination-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pagination-links .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border: 1px solid #cfe0f3;
    border-radius: 6px;
    color: #1e3c72;
    background-color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
}
.pagination-links .page-link.active {
    background-color: #1e3c72;
    color: #ffffff;
    border-color: #1e3c72;
    font-weight: 600;
}
.pagination-links .page-ellipsis {
    color: #6c757d;
    padding: 0 4px;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 10px 15px;
    border: 1.8px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    color: #2c3e50;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: #3a7bd5;
    box-shadow: 0 0 8px rgba(58, 123, 213, 0.4);
}

/* Footer */
footer {
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
    border-top: 1px solid #dee2e6;
    color: #555;
    font-size: 0.9rem;
    padding: 25px 0;
    margin-top: 60px;
    text-align: center;
}

footer strong {
    color: #1e3c72;
    font-weight: 600;
}

footer small {
    display: block;
    margin-top: 5px;
    color: #777;
}

@media (max-width: 1200px) {
    .table-responsive {
        overflow-x: auto;
    }

    table {
        min-width: 1000px;
    }
}

/* Map Page */
.map-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.map-sidebar {
    width: 35%;
    max-height: 80vh;
    overflow: auto;
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    padding: 16px;
}

.map-panel {
    width: 65%;
}

.map-canvas {
    height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8eef5;
}

.map-search-wrap {
    margin-bottom: 12px;
}

.search-input {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
}

.search-input:focus {
    border-color: #7aa9e6;
    box-shadow: 0 0 0 0.2rem rgba(58, 123, 213, 0.12);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.card-sighting {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    margin-bottom: 12px;
    background: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.card-sighting:hover {
    background: #f8fbff;
    border-color: #d4e4f8;
}

.sighting-title {
    margin-bottom: 6px;
}

.sighting-desc {
    font-size: 0.92rem;
    color: #5f6c7b;
    margin-bottom: 8px;
}

.sighting-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .map-container {
        flex-direction: column;
    }

    .map-sidebar,
    .map-panel {
        width: 100%;
    }
}

.all-sightings-table {
    width: 100%;
    table-layout: auto;
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.table td,
.table th {
    padding: 12px 14px;
    vertical-align: middle;
}
