* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    font-size: 16px;
    min-height: 100%;
    color: #ffffff;
    background-color: #36404A;    
}

nav {
    display: block;
    width: 100%;
    grid-template-columns: auto 1fr;
    align-items: center;
    grid-column-gap: 30px;
    grid-template-rows: 70px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #22292F;
    z-index: 900;

    /* Ensures shadow appears above other elements */
}

nav .brand {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    padding-top: 20px;
    padding-bottom: 20px;
}

nav a {
    text-decoration: none;
    text-align: center;
    display: inline-block;
    padding: 8px 15px;
    transition: background-color 0.4s, color 0.4s;
    color: #fff;
    font-size: 16px;
}

nav a:hover,
nav a.active {

    background: #22292F;
    color: #fff;
    border-radius: 5px;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.8);
}

.nav-disabled {
    pointer-events: none;
    opacity: 0.5;
    filter: grayscale(80%);
    cursor: not-allowed;
    background-color: #22292F;
    color: #ffffff;
    border-radius: 5px;
    box-shadow: 5px 5px 2px rgba(0, 0, 0, 0.8);
    display: inline-block;
    text-align: center;
    padding: 10px 15px;
}

/* Place hamburger on right side */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Always show hamburger */
.hamburger {
    display: block;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    margin-top: 70;
    z-index: 999;
}
.hamburger {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    height: 4px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: red;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: red;
}

/* Hamburger Blink */
@keyframes blinkColor {

    0%,
    100% {
        opacity: 1;
        background-color: red;
    }

    50% {
        opacity: 1;
        background-color: white;
    }
}

.hamburger.blinking span:nth-child(1) {
    animation: blinkColor 1s infinite;
}

.hamburger.blinking span:nth-child(2) {
    animation: blinkColor 1s infinite 0.33s;
    /* 1/3 of the animation duration */
}

.hamburger.blinking span:nth-child(3) {
    animation: blinkColor 1s infinite 0.66s;
    /* 2/3 of the animation duration */
}

/* Hide nav-links by default */
.nav-links {
    position: fixed;
    top: 150px;
    left: 100%;
    width: 92%;
    transform: translateX(0);
    background-color: rgba(34, 41, 47, 0.5);
    display: flex;
    flex-direction: column;
    /* ⬅ Switch to column layout */
    align-items: center;
    /* ⬅ Center children horizontally */
    padding: 30px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    z-index: 1100;
    min-width: 200px;
    text-align: left;
    backdrop-filter: blur(6px);
    transition: left 0.4s ease;
}
.flags {

    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
    width: 15px;
    height: auto;
    gap: 50px;
}

.flags img {
    width: 50px;
    height: auto;
}

.nav-main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    /* or whatever works for your layout */
    gap: 40px;
}

.nav-links.active {
    left: 0;
    /* Slide in from the right */
    left: 50%;
    transform: translateX(-50%);
}

.nav-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 0;
    flex: 1;
    min-width: 0;
}

.nav-left a {
    text-decoration: none;
    color: #fff;
    padding: 10px 15px;
    background-color: #22292F;
    display: block;
    min-width: 100px;
    /* Ensures all buttons align */
    text-align: center;
    border-radius: 5px;
    box-shadow: 5px 5px 2px rgba(0, 0, 0, 0.8);
    transition: background-color 0.4s, color 0.4s;
    margin: 0;
}

.nav-left a:hover,
.nav-left a.active {
    background: #4d9176;
    color: #fff;
    border-radius: 5px;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.8);
}

.nav-left a.disabled {
    pointer-events: none;
    opacity: 0.5;
    filter: grayscale(80%);
    cursor: not-allowed;
}

.nav-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    padding-top: 6px;
    /* aligns with .nav-left a's top margin */
    flex: 1;
    min-width: 0;
}

.nav-right img {
    width: 100px;
    height: auto;
}

#wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    grid-column-gap: 30px;
    grid-template-rows: 70px;
    position: sticky;
    top: 0;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #22292F;
}

#wrapper a {
    text-decoration: none;
    display: inline-block;
    padding: 10px 35px;
    transition: background-color 0.4s, color 0.4s;
    color: #fff;
    font-size: 18px;
}

#wrapper a:hover,
#wrapper a.active {
    background: #22292F;
    color: #fff;
    border-radius: 5px;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.8);

}

/* HEADER RULES ------------------- */
header {
    display: grid;
    align-items: center;
    column-gap: 5%;
    grid-template-rows: auto;
    position: sticky;
    top: 0;
    margin-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #36404A;
    z-index: 1000;
}
header.sticky-shadow {
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.8);
}

#header-links,
#header-admin {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* allow wrapping if necessary */
    gap: 10px;
    padding: 5px 0;
    /* equal vertical space above and below */
}

#header-links a,
#header-admin a {
    background: #22292F;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    margin: 0; /* Ensure buttons don't add extra spacing */
    box-shadow: 5px 5px 2px rgba(0, 0, 0, 0.8);
    transition: background-color 0.4s, color 0.4s;
}

#header-links a:hover,
#header-links a.active,
#header-admin a:hover,
#header-admin a.active {
    background: #4d9176;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.8);
}

/* Footer Rules ------------------- */
footer {
    background-color: #22292F;
    position: relative;
    padding: 20px;
    width: 100%;
    color: #ffffff;
    box-shadow: 0 -5px 5px rgba(0, 0, 0, 0.8);
}

/* Table Rules ------------------- */
#table_01 {
    font-family: Arial, Helvetica, sans-serif;
    border: 3px solid #22292F;
    border-radius: 10px;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.8);
    width: 92%;
    background-color: #546373;
    margin-left: auto;
    margin-right: auto;
}

#table_01 a {
    background: #22292F;
    text-decoration: none;
    display: inline-block;
    padding: 10px 35px;
    transition: background-color 0.4s, color 0.4s;
    color: #fff;
    font-size: 18px;
    border-radius: 5px;
    box-shadow: 5px 5px 2px rgba(0, 0, 0, 0.85);
}

#table_01 a:hover,
#table_01 a.active {
    background: #22292F;
    color: #fff;
    border-radius: 5px;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.8);
}

#table_01 th {
    padding-top: 12px;
    font-size: 20px;
    border: 3px solid #00000000;
    text-align: center;
    color: #ffffff;
}

#table_01 td {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#table_01 tr:nth-child(even) {
    text-align: center;
    background-color: #546373;
}


#table_02 {
    font-family: Arial, Helvetica, sans-serif;
    width: 50%;
    border: 3px solid #000;
    border-radius: 10px;
    background-color: #b51a1a;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.8);
}

#headertable {
    width: 100%;
    border: 3px solid #00000000;
    text-align: center;
    margin-left: auto;
    margin-right: auto;

}

.pagination-container {
    text-align: center;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Space between numbers & buttons */
}

.page-numbers {
    display: flex;
    justify-content: center;
    gap: 5px;
    /* Even spacing between page numbers */
}

.page-number {
    background: #36404A;
    text-decoration: none;
    display: inline-block;
    padding: 8px 12px;
    font-size: 15px;
    color: #22292F;
    border-radius: 5px;
    font-weight: bold;
    border: 1px solid #22292F;
    transition: 0.4s;
}

.page-number:hover {
    background: #4d9176;
    color: white;
}

.page-number.active {
    background: #22292F;
    color: white;
    border: none;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    /* Even spacing between navigation buttons */
}

.pagination-btn {
    background: #22292F;
    text-decoration: none;
    display: inline-block;
    padding: 12px 25px;
    font-size: 15px;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    min-width: 120px;
    /* Ensures uniform button width */
    text-align: center;
    transition: 0.4s;
    box-shadow: 5px 5px 2px rgba(0, 0, 0, 0.8);
}

.pagination-btn:hover {
    background: #4d9176;
    color: white;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.8);
}

.pagination-btn.disabled {
    opacity: 0.5;
    filter: grayscale(80%);
    cursor: not-allowed;
}

.pagination-btn.disabled:hover {
    background: #22292F;
    /* Keep the same background color */
    color: white;
    /* Keep the same text color */
    box-shadow: 5px 5px 2px rgba(0, 0, 0, 0.8);
    /* Maintain the original shadow */
}

.bt-link {
    text-decoration: none;
    /* Remove underline from the link */
    display: inline-block;
    /* Ensure the link wraps around the input */
}

.bt {
    /* Add your button styles here */
    background: #22292F;
    text-decoration: none;
    display: inline-block;
    padding: 5px 15px;
    font-size: 15px;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    /* Ensures uniform button width */
    text-align: center;
    transition: 0.4s;
    box-shadow: 5px 5px 2px rgba(0, 0, 0, 0.8);
}

.bt:hover {
    background: #4d9176;
    color: white;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.8);
}

/* Icon links */
.icon-links {
    display: grid;
    align-items: center;
    column-gap: 35px;
    grid-template-rows: 70px;
    position: sticky;
    top: 0;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #36404A;
    justify-content: center;
    grid-auto-flow: column;
}

/* Active links */
.icon-links a,
.icon-links .disabled-link {
    background: #22292F;
    text-decoration: none;
    display: inline-block;
    padding: 10px;
    transition: background-color 0.4s, box-shadow 0.4s;
    border-radius: 5px;
    box-shadow: 5px 5px 2px rgba(0, 0, 0, 0.8);
}

/* Images inside links & spans */
.icon-links a img,
.icon-links .disabled-link img {
    width: 35px;
    vertical-align: middle;
}

/* Hover effect on active links */
.icon-links a:hover,
.icon-links a.active {
    background: #4d9176;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.8);
}

/* Disabled icons look the same but are grayed out */
.icon-links .disabled-link {
    opacity: 0.5;
    filter: grayscale(80%);
    cursor: not-allowed;
}

.form-style {
    font-size: 24px;
    color: #ffffff;
}

.form-style form {
    margin: 20px 0;
}

.form-style .form-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.form-style input[type="text"],
.form-style input[type="search"],
.form-style input[type="number"],
.form-style input[type="email"],
.form-style input:not([type]),
.form-style textarea,
.form-style select {
    height: 42px;
    width: 250px;
    padding: 10px;
    font-size: 16px;
    box-shadow: 5px 5px 2px rgba(0, 0, 0, 0.8);
    border: 3px solid #22292F;
    border-radius: 5px;
    background-color: #6D8196;
    color: #ffffff;
}

.form-style input::placeholder,
.form-style textarea::placeholder {
    color: white;
    opacity: 0.6;
}

.form-style button {
    height: 42px;
    background-color: #22292F;
    box-shadow: 5px 5px 2px rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.4s, color 0.4s;
}

.form-style button:hover {
    background-color: #1a1f24;
}

/* Autofill styles */
.form-style input:-webkit-autofill,
.form-style input:-webkit-autofill:hover,
.form-style input:-webkit-autofill:focus,
.form-style input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #6D8196 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-style input:-moz-autofill,
.form-style input:-moz-autofill:hover,
.form-style input:-moz-autofill:focus {
    box-shadow: 0 0 0 1000px #6D8196 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
}