/* Global reset & body styling */
body {
    font-family: "Segoe UI", sans-serif;
    margin: 0;
    background-color: #f7f7f7;
    color: #333;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* all items left-aligned by default */
    gap: 25px; /* spacing between logo, title, links */
    background: #fff;
    border-bottom: 3px solid #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 15px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Left Section (Logo) */
.navbar .left img {
    height: 24px;
}

/* Center Section (Title) */
.navbar .center {
    margin-left: 340px; /* smaller distance from logo */
    flex-grow: 0;  /* stops it from pushing Home too far */
    text-align: left;   /* aligns nicely with logo */
}

.navbar .center h1 {
    font-size: 28px;
    color: #f56a0c;
    margin: 0;
    font-weight: 600;
}

/* Right Section (Links) */
.navbar .right {
    margin-left: 320px; /* smaller gap between links */
    display: flex;
    gap: 100px;
}

.navbar .right a {
    text-decoration: none;
    color: #333;
    font-weight: 800;
    transition: color 0.3s ease;
    font-size: 18px;
}

.navbar .right a:hover {
    color: #f56a0c;
}

/* ===========================
   LAYOUT
=========================== */
.container {
    display: flex;
    margin-top: 100px; /* space for fixed navbar */
    padding: 10px 30px;
}

/* Sidebar */
.sidebar {
    width: 30%;
    overflow-y: auto;
    height: 80vh;
    padding: 10px;
    background: transparent;
}

.sidebar summary {
    font-weight: bold;
    font-size: 22px;
    cursor: pointer;
    margin-bottom: 0px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 8px; /* optional, makes it look nicer */
}

.sidebar ul {
    list-style: none;
    padding-left: 15px;
    margin: 0;
}

.sidebar a {
    color: #333;
    text-decoration: none;
    display: block;
    margin: 4px 0;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px; /* optional, looks nicer */
    transition: background 0.3s, color 0.3s;
}

.sidebar a:hover {
    color: #fff;
    background-color: #ff861c;
}

/* ADDED: New button styles for country and state buttons */
.country-btn, .state-btn {
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 2px;
    padding: 8px 12px;
    background: #ffffff;
    color: black;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
}

.country-btn:hover, .state-btn:hover {
    background: #f0f0f0;
}

.state-btn {
    margin: 2px 3px 2px 20px;
    width: 90%;
    border: 2px solid #ffffff;
}

/* ADDED: Better details/summary styling */
details {
    margin-bottom: 10px;
}

summary {
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 4px;
    background: #f8f9fa;
}

summary:hover {
    background: #e9ecef;
}

/* Main Content */
.main {
    width: 70%;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ADDED: Better main content heading styling */
.main h2 {
    color: #000000;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.country-header h2 {
    margin: 0;
    color: #333;
}

/* ADDED: Improved table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

th {
    background-color: #f8f9fa !important;
    font-weight: 600;
}

th, td {
    border: 1px solid #dee2e6;
    padding: 12px;
    text-align: left;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Active state styles for country and state links */
.country-link.active, .state-link.active {
    background: #ff861c !important;
    color: white !important;
    border-color: #ff861c !important;
}

.country-link:hover, .state-link:hover {
    background: #f0f0f0;
    color: black;
}

/* ===========================
   FOOTER
=========================== */
footer {
    background: #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    color: black;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

footer .left {
    display: flex;
    flex-direction: column;
}

footer .left p {
    margin: 0;
    line-height: 1.2;
    font-weight: bold;
}

footer .left small {
    margin: 0;
    line-height: 1.2;
}

footer .right {
    align-self: center;
    font-weight: bold;
}

footer a {
    color: black;
    text-decoration: underline;
}

footer a:hover {
    color: #ff861c;
}






















/* Main Content */
/*.main {
    width: 70%;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Tables */
/* table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}
*/