/* Variables */
:root {
    --button_primary-color: #0084b8;
    --button_hover-color: #005b80;
}


/* static/css/styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Ensure header and main take up the full height of the page */
.wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.right-align {
    text-align: right;
}


main {
    padding: 2rem;
    flex-grow: 1;
}

header {
    background-color: #464646;
    color: white;
    padding: .3rem;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    align-items: center;  /* Vertically align items */
    margin: 0;  /* Remove default margin */
}

nav ul li.menu-logo img {
    height: 70px;  /* Adjust the height to match the menu titles */
    margin-right: 40px;  /* Add space between the logo and the menu items */
    margin-left: 50px;  /* Add space between the logo and the menu items */
}

.menu-logo a:hover {
    opacity: 0.9;
    cursor: pointer;
}

nav ul li {
    display: inline;
    margin-right: 20px;
    position: relative;
}

nav ul li:not(:last-child):not(.menu-logo)::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    height: 24px; /* Adjust height of the vertical line */
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3); /* Semi-transparent white line */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.25rem; /* Increase font size */
    font-weight: bold;  /* Make the text bold */
    text-shadow: 
        -1px -1px 0 #000,  /* Top-left */
        1px -1px 0 #000,   /* Top-right */
        -1px 1px 0 #000,   /* Bottom-left */
        1px 1px 0 #000;    /* Bottom-right */
}

/* Ensure main takes up remaining space between header and footer */
main {
    padding: 2rem;
    flex: 1;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

table, th, td {
    border: 1px solid black;
}

th, td {
    padding: 10px;
    text-align: left;
    font-size: 0.95rem;
}


/* Footer stays at the bottom but does not overlap the content */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    width: 100%;
    margin-top: auto;
}

/* Add bottom margin to main content to avoid overlap with the footer */
main {
    padding-bottom: 100px; /* Adjust the height to match footer's height */
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

th, td {
    border: 1px solid #000;
    padding: 5px;
    text-align: left;
}

th {
    background-color: #a2a2a2;
    text-align: center;
}

tr:nth-child(even) {
    background-color: #e7e7e7;
}

tr:nth-child(odd) {
    background-color: #ffffff;
}

tr:hover {
    background-color: #e6f7ff;
}

/* Button styling */
button[type="submit"] {
    margin-top: 16px;
    padding: 8px 16px;
    font-size: 16px;
    border: none;
    border-width: 2px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: var(--button_primary-color);
    color: white;
}

button[type="submit"]:hover {
    background-color: var(--button_hover-color);
}


/* Button styling */
button[type="logout"] {
    padding: 4px 8px;
    border: none;
    border-width: 2px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: var(--button_primary-color);
    color: white;
}

button[type="logout"]:hover {
    background-color: var(--button_hover-color);
}


/* Dropdown Menu Styles */
.dropdown {
    display: inline-block;
    position: relative;
}

.dropbtn {
    color: white;
    padding: 8px;
    text-decoration: none;
    font-weight: bold;  /* Keep the bold text for the dropdown button */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #454545;
    width: 400px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 100;
    flex-direction: row;  /* Align columns horizontally */
    justify-content: space-between; /* Space between columns */
    border: 1px solid #ccc;  /* Add border around the dropdown */
    border-radius: 5px;  /* Optional: rounded corners */
}

#evaluations-dropdown .dropdown-content {
    width: 200px;
}

.dropdown-content .column {
    padding: 2px 2px;
    flex: 1;  /* Ensure both columns have equal width */
}

.column strong {
    display: block;
    color: white;
    margin-bottom: 5px;
    border-bottom: 1px solid #ccc;  /* Horizontal line under Nations and Companies */
    padding-bottom: 5px;
}

.dropdown-content a {
    color: white;
    padding: 8px 8px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-weight: normal;  /* Unbold the text inside the dropdown */
    font-size: 1.1rem; /* Increase font size */
}

.dropdown-content a:hover {
    background-color: #535353;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

.dropdown:hover .dropbtn {
    background-color: #575757;
}

.column + .column {
    border-left: 1px solid #ccc;
    padding-left: 0px;
}

.intro-paragraph {
    margin-top: 2rem;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.big-button {
    display: inline-block;
    padding: 2rem 4rem;
    background-color: #5b92e5; /* UN blue color */
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid rgb(37, 37, 37);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;

    /* Black outline around the text */
    text-shadow:
        -1px -1px 0 #555555,  /* Top-left */
        1px -1px 0 #555555,   /* Top-right */
        -1px 1px 0 #555555,   /* Bottom-left */
        1px 1px 0 #555555;    /* Bottom-right */
}

.big-button:hover {
    background-color: #0059b3;
    transform: translateY(-2px);
    cursor: pointer;
}


.pinstripe {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 50; /* below dropdown */
}

/* Default: desktop */
.pinstripe-top {
    position: absolute;
    top: calc(85px + 10px); /* 85px is header height, 10px below */
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 50;
}

/* Mobile: move pinstripe below expanded header */
@media (max-width: 768px) {
    .pinstripe-top {
        position: relative;  /* flows naturally below the header/nav */
        top: calc(5px + 10px); /* 85px is header height, 10px below */
        width: 100%;
    }
}

.pinstripe-bottom {
    position: relative;
    height: 4px;
    background-color: #FF6F00; /* Pinstripe Orange */
    margin-bottom: 15px; /* gap above footer */
}

.pinstripe-financial {
    background-color: #FF6F00;
}

.pinstripe-records {
    background-color: #5b92e5;
}


input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color:  var(--button_primary-color);
    box-shadow:  var(--button_hover-color);
}




/* -----------------------------------------------
        MOBILE PHONE SCREEN OVERRIDE CHANGES
   ----------------------------------------------- */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        margin: 10px 0;
        display: block;
    }

    nav ul li:not(:last-child):not(.menu-logo)::after {
        display: none; /* Remove dividers on mobile */
    }

    nav ul li.menu-logo img {
        height: 50px;
        margin: 10px 0;
    }
}


.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/*table {
    min-width: 600px; /* prevent table from squishing too much 
}*/


@media (max-width: 600px) {
    main {
        padding: 1rem;
    }

    nav ul li a {
        font-size: 1rem;
    }

    .big-button {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }

    button[type="submit"],
    button[type="logout"] {
        padding: 6px 12px;
        font-size: 14px;
    }
}

img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    button, 
    .big-button {
        min-height: 44px; /* touch-friendly on mobile only */
    }
}


/* Hamburger button - hidden on desktop */
.hamburger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 1rem;
}

/* Mobile nav behavior */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* show hamburger */
    }

    nav ul {
        display: none; /* hide nav links by default */
        flex-direction: column;
        background-color: #464646;
        width: 100%;
        padding: 1rem 0;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    nav ul.show {
        display: flex; /* show nav when active */
    }
}