html, body {
    height: 100%;
    font-family: Arial, sans-serif;
    background-color:rgb(255, 253, 253);
    margin: 0;
    padding: 0;
}
.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 500px;
}
h1 {
    text-align: center;
}
h3 {
    margin-left: 20px;
    color: #333;
}
form {
    display: flex;
    flex-direction: column;
}
label {
    margin-bottom: 10px;
    color: #555;
}
input[type="number"],
textarea {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
input[type="submit"] {
    padding: 10px;
    background-color: #adc7b3;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
input[type="submit"]:hover {
    background-color: #218838;
}
.ok {
    color: green;
    font-weight: bold;
}
.warning {
    color: orange;
    font-weight: bold;
}
.critical {
    color: red;
    font-weight: bold;
}
.title {
    letter-spacing: 2px;
    text-decoration: underline;
    text-decoration-style: dotted;
    margin-top: 30px;
    margin-left: 6px;
    margin-bottom: -5px;
}
#counter {
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
}
.weeks-container {
    font-size: 20px;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    display: block;
}
#number {
    font-size: 16px;
    padding: 5px;
    margin-left: 1px;
    margin-right: 1px;
    width: 50px;
}
.rurl {
    line-height: 1.2;
    padding: 5px 5px;
    margin: 5px 0;
}
.rurl:nth-child(odd) {
    background-color: rgb(240, 240, 240);
}
.rurl:nth-child(even) {
    background-color: rgb(250, 250, 250);
}
.wrapper {
    margin-top: 0px;
    box-shadow: 0 20px 10px -20px rgba(0,0,0,0.45) inset, 20px 0 10px -20px rgba(0,0,0,0.45) inset;
    padding: 6px 50px;
    background-color:rgb(248, 248, 248);
}
.float-right {
    float: right;
    margin-right: 10px;
}
.inset-border {
    /* box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset; */
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}
.toplinkbar {
    position: fixed; /* Position it at the top of the page */
    top: 0; /* Align it to the top */
    left: 50%; /* Start positioning from the center horizontally */
    transform: translateX(-50%); /* Adjust to truly center it horizontally */
    display: flex;
    justify-content: center; /* Center the links horizontally */
    align-items: center; /* Center the content vertically */
    padding: 10px 20px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    width: fit-content; /* Adjust the width to fit the content */
    border-radius: 8px; /* Optional: Add rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
    z-index: 1000; /* Ensure it stays on top of other elements */
    white-space: nowrap; /* Prevent wrapping on words */
    gap: 10px; /* Add spacing between links */
}
/* Style for the dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Style for the dropdown button */
.dropbtn {
    background-color: #007bff; /* Updated to a modern blue color */
    color: white;
    padding: 10px 20px;
    margin: 0 4px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth hover effect */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    text-decoration: underline;
}

/* Style for the dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff; /* White background for contrast */
    min-width: 133px; /* Slightly wider for better readability */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2); /* Enhanced shadow for depth */
    border-radius: 4px; /* Rounded corners */
    overflow: hidden; /* Prevent content overflow */
    z-index: 1;
    animation: fadeIn 0.3s ease; /* Smooth fade-in animation */
}
/* Style for the links inside the dropdown */
.dropdown-content a {
    color: #333; /* Neutral text color */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px; /* Slightly smaller font for dropdown items */
    transition: background-color 0.2s ease, color 0.2s ease; /* Smooth hover effect */
}
/* Change link color on hover */
.dropdown-content a:hover {
    background-color: #f1f1f1; /* Light gray background on hover */
    color: #007bff; /* Blue text on hover */
}
/* Show the dropdown content on hover */
.dropdown:hover .dropdown-content {
    display: block;
}
/* Change button color on hover */
.dropdown:hover .dropbtn {
    background-color: rgb(62, 142, 65);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-15px); /* Slight upward movement */
    }
    70% {
        opacity: 0.7;
        transform: translateY(-3px); /* Slower movement initially */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Final position */
    }
}

/* Submenu container inside dropdown-content */
.dropdown-submenu {
    position: relative;
    display: block; /* Ensure submenu is displayed as a block */
}

.submenu-label {
    display: block;
    padding: 12px 16px;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    user-select: none;
    /* Optional: add hover effect */
}
.submenu-label {
    /* animated left-to-right fill: start as a slim left bar and expand to full width on hover */
    position: relative;
    overflow: hidden;
    /* gradient used as a solid fill; background-size controls visible width */
    background-image: linear-gradient(90deg, #81a9c4 0%, #81a9c4 100%);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 8px 100%; /* small left bar by default */
    transition: background-size 0.5s ease, color 0.2s ease;
}
.submenu-label:hover {
    /* expand the gradient to cover the whole element in 0.5s */
    background-size: 100% 100%;
    color: #ffffff !important; /* contrast against the fill; adjust if you prefer a different text color */
    font-style: italic !important; /* optional: add a bit of flair on hover */
}
.submenu-content {
    display: none;
    position: relative;
    margin-left: 20px; /* Indent to the right, but not absolute */
    background-color: #fff;
    border-radius: 4px;
    box-shadow: none;
    min-width: 140px;
    z-index: 2;
}
.dropdown-submenu:hover > .submenu-content {
    display: block;
}

/* Style for the success and error messages */
.success-message {
    color: green;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.error-message {
    color: red;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.link-button {
    margin: 0 4px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    max-width: 200px;
}
.link-button:hover {
    background-color: rgb(62, 142, 65);
}
.edit-button {
    padding: 2px 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #000000;
    border-radius: 4px;
    width: 100px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    background-color: #28a745;
}

.delete-button {
    font-size: 14px;
    font-weight: 700;
    background-color: #dc3545;
    padding: 2px 10px;
    color: #000;
    border: 1px solid #000000;
    border-radius: 4px;
    cursor: pointer;
    max-width: 200px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.spacer {
    margin: 10px 0;
}
.newseed-logo {
    height: 80px;
    z-index: 10001; /* Ensure it stays on top of other elements */
}
.page-wrapper {
    /* min-height: 100vh; */
    display: flex;
    flex-direction: column;
}
.main-content {
    flex: 1 0 auto; /* Allow the main content to grow and fill available space */
    /* min-height: calc(100vh - 80px); /* 80px is the footer height */
}
.footer {
    flex-shrink: 0;
    width: auto;
    height: 60px;
    margin-left: auto;
    margin-right: auto;
    margin: 0px !important;
    padding: 0px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    animation: slideUpFooter 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    z-index: 10003; /* Ensure it stays on top of other elements */
    /* box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); */
    align-self: center;
    margin-bottom: 0 !important;
}
@keyframes slideUpFooter {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.footer-link {
    display: flex;
    align-items: center;
    margin-bottom: -20px;
    margin-top: 0px;
    width: auto;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    background: #f5f5f5;
    border-radius: 12px 12px 0 0;
    text-decoration: none;
    color: inherit;
    font-size: 12px;
    transition: background 0.2s;
}
.footer-link:hover {
    background: #faf9ec;
}
.newseed-logo-inline {
    height: 48px;
    margin-right: 16px;
    vertical-align: middle;
}
.footer-text {
    display: flex;
    margin-top: 5px;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    gap: 4px;
}
.heart {
    color: #e25555;
}



.newseed-logo-wrapper {
    position: relative;
    left: 0;
    bottom: 0;
    transform: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 150px;
    background: transparent;
    z-index: 1;
    /* Remove animation and position: fixed! */
}



.pagination {
    margin-top: 20px; 
    text-align: center;
    justify-content: center;
    align-items: center;
}
.button-right {
    background-color: #ff0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 10px;
    float: right;
    display: block;         /* Make the link a block element */
    width: fit-content;     /* Only as wide as the text */
    margin-left: auto;      /* Push it to the right */
    margin-right: 0; /* No margin on the right */
    padding: 2px 20px;    /* Padding for the button */
    font-size: 16px;       /* Font size for the button */
    font-weight: 700;      /* Bold text */
    text-align: center;    /* Center the text */
}
.button-right:hover {
    background-color: #dc3545; /* Darker red on hover */
    color:#000000; /* Change text color to black on hover */
    text-decoration: underline;
}
.link {
    color: #007bff;        /* Sets the link color to a modern blue */
    text-decoration: none; /* Removes underline from links by default */
    font-size: 14px;       /* Sets a consistent font size for links */
    border: 1px solid #007bff; /* Adds a small blue outline */
    border-radius: 4px;        /* Slightly rounded corners */
    padding: 2px 6px;          /* Small padding for the box */
    box-sizing: border-box;    /* Ensures padding is included in size */
    display: inline-block;     /* Ensures the box wraps the link */
    width: auto;      /* Ensure it only fits the text */
    margin: 0 auto;   /* Center if used in a block context */
    box-sizing: border-box; /* Ensures padding is included in size */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
    font-weight: 700; /* Makes the link text bold */
    text-align: center; /* Centers the text inside the link */
    font-family: Arial, sans-serif; /* Sets a clean font */
    font-size: 14px; /* Sets a consistent font size for links */
}
.link:hover {
    text-decoration: underline;
}
.email-data-radio {
    display: block;
    margin-bottom: 10px;
}
.email-data-radio input[type="radio"] {
    margin-right: 10px;
}
.email-data-radio label {
    margin: 0;
    font-size: 14px;
    color: #333;
}
.email-data-radio input[type="radio"]:checked + label {
    font-weight: bold;
}
.email-data-radio input[type="radio"]:checked {
    background-color: #007bff;
    color: #fff;
}
.email-data-radio input[type="radio"]:checked + label {
    background-color: #007bff;
    color: #fff;
}
.email-data-radio input[type="radio"]:checked + label:hover {
    background-color: #0056b3;
}
.email-data-radio input[type="radio"]:checked + label:active {
    background-color: #004085;
}
.email-data-radio input[type="radio"]:checked + label:focus {
    outline: 2px solid #0056b3;
}
.email-data-radio input[type="radio"]:checked + label:focus-visible {
    outline: 2px solid #0056b3;
}
#page-transition-overlay {
    display: none; /* Initially hidden */
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: #fff;
    flex-direction: column; /* <--- THIS LINE IS IMPORTANT */
    align-items: center;
    justify-content: center;
    transition: opacity 1s;
}
#page-transition-overlay.hide {
    opacity: 0;
    pointer-events: none;
}
.overlay-center {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
#transition-img {
    max-width: 60vw;
    max-height: 60vh;
    display: block;
}
.card-container {
    max-width: 750px;
    margin: 40px auto;
    background: #f9f6ef; /* bone white */
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 24px;
}
#loading-overlay {
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    padding-top: 160px; 
    background: rgba(24, 24, 24, 0.85); 
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    transition: opacity 0.7s;
    cursor: pointer;
}
#loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}
#loading-video {
    width: 100%;
    max-width: 48vw;
    height: auto;
    object-fit: cover; /* This crops top/bottom as needed */
    aspect-ratio: 16/9;      /* or your video's real aspect ratio */
    margin-top: 50px;
    box-shadow: 0 0 20px #000;
    border-radius: 20px;
    display: block;
}
#reset-overlay-container {
    position: fixed;
    bottom: 12px;
    right: 15px;
    z-index: 10002;
    display: none; /* Initially hidden */
    width:auto;
    height: auto;
}
#reset-overlay-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#reset-overlay-btn img {
    width: 120px;
    height: 120px;
    display: block;
    content: url('/images/button_1_ss.png');
}
#reset-overlay-btn:hover img {
    content: url('/images/button_1_hover_ss.png');
}
#reset-overlay-btn:active img {
    content: url('/images/button_1_click_ss.png');
}
.click-to-load {
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 800px;
    max-width: 80vw;
    margin: 0px auto 0 auto;
    background: #000;
    border-radius: 18px;
    padding: 12px 24px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
    color: #fff;
    font-weight: bold;
    font-size: 1.4rem;
    text-align: center;
    position: absolute;
}
.click-to-load:hover {
    background: #444; /* Darker background on hover */
}
.click-to-load-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}
.click-to-load-text {
    text-align: center;
    display: flex;
    width: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.click-to-load-sc-link {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 4px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    margin: 0 0 0 auto; /* This pushes it to the far right in a flex or block context
    /*margin-left: auto; /* This ensures it stays on the right side */
    width: 200px;
    gap: 14px;
    z-index: 10003; /* Ensure it stays on top of other elements */
    cursor: pointer;
}
.click-to-load-sc-link:hover {
    background: rgb(255, 255, 230);
}
.click-to-load-sc-link img {
    height: 18px;
    display: block;
    background: #fff;
}
.click-to-load-sc-link:hover img {
    height: 18px;
    display: block;
    background: rgb(255, 255, 230);
}
.click-to-load-link-text {
    color: #222;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
}
#play-music-btn {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);;
    cursor:pointer; 
    padding:16px;
    padding-left: 48px;
    padding-right: 48px;
    display: block;
    background:#222; 
    color:#fff; 
    border-radius:16px; 
    margin:20px auto; 
    text-align:center;
    align-self: center;
    z-index: 10005; /* Ensure it stays on top of other elements */
}
#play-music-btn:hover {
    background: #444; /* Darker background on hover */
}
#play-music-btn:active {
    background: #666; /* Even darker background on click */
}
.th-left {
    text-align: left;
}
#sendEmailBtn.link-button:disabled,
#sendEmailBtn.link-button[disabled] {
    background: #cccccc !important;
    color: #888888 !important;
    border-color: #bbbbbb !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

#sendEmailBtn.link-button:disabled:hover,
#sendEmailBtn.link-button[disabled]:hover {
    background: #cccccc !important;
    color: #888888 !important;
    border-color: #bbbbbb !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}
#runBtn:disabled,
#runBtn[disabled] {
    background: #cccccc !important;
    color: #888888 !important;
    border-color: #bbbbbb !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    box-shadow: none !important;
}
#runBtn:disabled:hover,
#runBtn[disabled]:hover {
    background: #cccccc !important;
    color: #888888 !important;
    border-color: #bbbbbb !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}
.login-container {
    width: 360px;
    height: 240px;
    margin: 40px auto;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -30%);
    overflow: visible;
    box-sizing: border-box;
    color: #fff;
    font-family: Arial, sans-serif;
    z-index: 11000; /* Ensure it stays on top of other elements */
}
.login-bg-wrapper {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* hide video overflow */
    z-index: 0;
    border-radius: 8px; /* match container if you want rounded corners */
}
.login-bg-video {
    position: absolute;
    top: 0px; left: 0;
    width: 100%;
    height: 150%;
    object-fit: cover;
    z-index: 0;
    display: block;
    pointer-events: none;
}
.login-content {
    position: relative;
    z-index: 200;
    width: auto !important;
    height: auto;
}
.login-field {
    margin-bottom: 16px;
    width: 100%;
}
.login-input {
    width: auto;
    padding: 7px !important;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.login-btn-area {
    display: flex;
    justify-content: right;
    align-items: center;
    margin: 0 0 auto auto;
}
.login-error {
    color: #fff;
    background: linear-gradient(90deg, #d32f2f 60%, #b71c1c 100%);
    padding: 12px 12px;
    border-radius: 12px;
    font-weight: bold;
    text-align: center;
    width: 250px;
    min-height: 32px;
    box-sizing: border-box;
    margin-left: -7px;
    margin-right: 12px;
    margin-top: 10px;
    display: block;
    box-shadow: 0 2px 12px rgba(211,47,47,0.10), 0 1.5px 4px rgba(0,0,0,0.08);
    letter-spacing: 0.5px;
    font-size: 1.0rem;
    transition: box-shadow 0.2s;
    animation: shake 0.25s 1;
    z-index: 11001; /* Ensure it stays on top of other elements */
}
@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}
.login-btn {
    margin-top: 0rem !important;
    width: 120px !important;
    padding: 7px !important;
    background: linear-gradient(90deg, #1976d2 60%, #1565c0 100%) !important;
    color: #fff;
    border: solid 1px #061625;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10), 0 1.5px 4px rgba(0,0,0,0.08);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.login-btn:hover, .login-btn:focus {
    background: linear-gradient(90deg, #1565c0 60%, #1976d2 100%);
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.18), 0 2px 8px rgba(0,0,0,0.12);
    transform: translateY(-2px) scale(1.03); 
    outline: none;
}
.login-btn:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}
.login-btn:disabled:hover, .login-btn:disabled:focus {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.login-btn:active {
    background: linear-gradient(90deg, #0d47a1 60%, #0b3d91 100%);
    box-shadow: 0 1px 4px rgba(25, 118, 210, 0.12), 0 0.5px 2px rgba(0,0,0,0.08);
    transform: translateY(1px) scale(0.98);
}
.login-btn:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}
.login-btn:focus:not(:focus-visible) {
    outline: none;
}
.login-btn:focus-visible:hover {
    background: linear-gradient(90deg, #1565c0 60%, #1976d2 100%);
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.18), 0 2px 8px rgba(0,0,0,0.12);
    transform: translateY(-2px) scale(1.03);
}
.logout-menu {
    margin-top: 10px;
    margin-bottom: 10px;
    background: #cc9797;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.logout-menu:hover {
    background: #852d2d !important;
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.logout-menu:active {
    background: #a66c6c;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.logout-menu:focus {
    color: #fff;
}
.logout-menu a {
    color: #fff;
    background: #8a7225;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-decoration: underline;
    display: block;
    margin-bottom: 8px;
}
.logout-menu a:hover {
    background: #7a6225 !important;
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background 0.3s ease, color 0.3s ease;
}
.logout-menu a:active {
    background: #6a5225;
}
.logout-menu a:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.logout-menu a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.logout-menu a:focus:not(:focus-visible) {
    outline: none;
}
.logout-menu a:focus:not(:focus-visible):hover {
    background: #7a6225;
}
.user-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 40px auto; /* centers horizontally, adds vertical space */
    width: 500px;
    max-width: 90vw;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #333;
    font-family: Arial, sans-serif;
}
.profile-box {
    width: 100%;
    text-align: left;
    display: block;
}
.profile-box form {
    margin-top: 18px;
}
.global-error {
    color: #b00;
    background: #fff0f0;
    border: 1.5px solid #d32f2f;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 18px 0 12px 0;
    font-weight: bold;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px rgba(211,47,47,0.08);
    letter-spacing: 0.3px;
}
.input-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #333;
    vertical-align: middle;
    width: 200px; /* Fixed width for labels */
    white-space: nowrap; /* Prevent word wrap */
}
.input-field {
    width: 180px; /* Full width */
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box; /* Ensures padding is included in width */
}
.input-field-select {
    width: 180px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box; /* Ensures padding is included in width */
}
.input-field-select:focus {
    border-color: #007bff; /* Blue border on focus */
    outline: none; /* Remove default outline */
}
.input-field-select option {
    padding: 8px; /* Padding for options */
    background-color: #fff; /* White background for options */
    color: #333; /* Dark text color for options */
}
.input-field-select option:hover {
    background-color: #f1f1f1; /* Light gray background on hover */
    color: #007bff; /* Blue text on hover */
}
.input-field-select option:active {
    background-color: #e1e1e1; /* Darker gray background on click */
    color: #0056b3; /* Darker blue text on click */
}
.input-field-select option:focus {
    outline: 2px solid #007bff; /* Blue outline on focus */
    outline-offset: 2px; /* Space between outline and element */
}
.input-field-select option:focus-visible {
    outline: 2px solid #007bff; /* Blue outline on focus */
    outline-offset: 2px; /* Space between outline and element */
}
.input-field-select option:focus:not(:focus-visible) {
    outline: none; /* Remove outline if not focus-visible */
}
.input-field-select option:checked {
    background-color: #007bff; /* Blue background for selected option */
    color: #fff; /* White text for selected option */
}
.input-field-select option:checked:hover {
    background-color: #0056b3; /* Darker blue on hover for selected option */
    color: #fff; /* Keep white text on hover for selected option */
}
#reset-video-btn-creative {
    position: absolute;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    padding: 16px;
    display: block;
    background: #222;
    color: #fff;
    border-radius: 16px;
    margin: 20px auto;
    text-align: center;
    align-self: center;
    font-size: large;
}
#reset-video-btn-creative:hover {
    background: #444; /* Darker background on hover */
}
#reset-video-btn-creative:active {
    background: #666; /* Even darker background on click */
}
.grafana-iframe {
    position: absolute;
    left: 50%;
    top: -20px;
    transform: translateX(-50%);
    width: 1800px;
    height: 800px;
    max-width: 100vw; /* Ensure it doesn't overflow the viewport */
    max-height: 80vh; /* Limit height to 80% of viewport height */
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 24px;
    padding-top: 0px;
    box-sizing: border-box;
}
#grafana_btn {
    background: transparent;
    color: #222;
    border: none;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.3s;
}

#grafana_btn::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, #007bff55 40%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(.4,2,.6,1), height 0.4s cubic-bezier(.4,2,.6,1);
    z-index: 0;
    pointer-events: none;
}

#grafana_btn:hover {
    color: #007bff;
    text-shadow: 0 2px 8px #007bff33, 0 0px 2px #fff;
}

#grafana_btn:hover::before {
    width: 220%;
    height: 400%;
}

#grafana_btn:active {
    color: #fff;
    text-shadow: 0 0 10px #007bff, 0 0 2px #fff;
}

#grafana_btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

#grafana_btn:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

#grafana_btn:focus:not(:focus-visible) {
    outline: none;
}
#grafana_btn:disabled,
#grafana_btn[disabled] {
    background: #cccccc !important;
    color: #888888 !important;
    border-color: #bbbbbb !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    box-shadow: none !important;
}
#grafana_btn:disabled:hover,
#grafana_btn[disabled]:hover {          
    background: #cccccc !important;
    color: #888888 !important;
    border-color: #bbbbbb !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.ec2-border-box-purple {
    border: 2px solid #8e44ad;
    border-radius: 8px;
    background: #faf6ff;
    padding: 18px 18px 0 18px;
    margin-bottom: 28px;
    position: relative;
}
.ec2-border-box-title-purple {
    position: absolute;
    top: -16px;
    left: 24px;
    background: #faf6ff;
    color: #8e44ad;
    font-weight: bold;
    padding: 0 12px;
    font-size: 17px;
    border-radius: 8px;
    border: 2px solid #8e44ad;
    border-bottom: none;
}
.ec2-border-box-blue {
    border: 2px solid #3498db;
    border-radius: 8px;
    background: #f0f8ff;
    padding: 18px 18px 0 18px;
    margin-bottom: 28px;
    position: relative;
}
.ec2-border-box-title-blue {
    position: absolute;
    top: -16px;
    left: 24px;
    background: #f0f8ff;
    color: #3498db;
    font-weight: bold;
    padding: 0 12px;
    font-size: 17px;
    border-radius: 8px;
    border: 2px solid #3498db;
    border-bottom: none;
}
.ec2-border-box-green {
    border: 2px solid #27ae60;
    border-radius: 8px;
    background: #f8fff8;
    padding: 18px 18px 0 18px;
    margin-bottom: 24px;
    position: relative;
}
.ec2-border-box-title-green {
    position: absolute;
    top: -16px;
    left: 24px;
    background: #f8fff8;
    color: #27ae60;
    font-weight: bold;
    padding: 0 12px;
    font-size: 17px;
    border-radius: 8px;
    border: 2px solid #27ae60;
    border-bottom: none;
}
