
:root {
    --primary: #007a5a;
    --secondary: #003366;
    --bg-light: #e8f0f8;
    --bg-gradient: linear-gradient(135deg, #e8f0f8 0%, #f0f5fa 100%);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --card-bg: rgba(255, 255, 255, 0.95);
    --border: rgba(0, 51, 102, 0.18);
    --shadow: rgba(0, 0, 0, 0.09);
}

body {
    #background: #447;
    #color: #bbd;
    #position: relative;
    #font-family: Arial, sans-serif;
    height: 100%;
    margin: 0;
    font-size: 14px;
}
a:link {
    text-decoration: none;
}
.page-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
.page-content {
    flex: 1;
}

.top-header {
    #position: fixed;
    top: 0;
    width: 100%;
    height: 58px;
    #background: rgba(255, 255, 255, 0.92); /* slightly shaded */
    background: rgba(240, 240, 240, 0.95);
    #backdrop-filter: blur(10px); /* glassy effect */
    border-bottom: 1px solid #eee;
    margin: 0px 0px 5px 0px;
    #z-index: 999;
}

.header-content {
    #max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.header-title {
    padding-left: 20px;
    font-size: 24px;
    font-weight: 600;
}
.splash-header {
    #position: fixed;
    top: 0; left: 0; right: 0;
    padding: 4px 20px 4px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 20px var(--shadow);
}

.splash-nav span {
    margin-left: 40px;
    text-decoration: underline;
    font-weight: 600;
    font-size: 16px;
}
.splash-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 40px;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.splash-nav a:hover { color: var(--secondary); }

.top-intro {
    #border: 1px solid black;
    margin-left: auto;
    padding: 0px 30px 0px 0px;
}

/* Position container in top-right */
.menu-container {
    position: relative;
    top: 0;
    right: 0;
    z-index: 1000;
}

.menu-container.active .menu-dropdown {
    display: block;
}

/* Airbnb-like menu button */
.menu-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #ddd;
    padding: 8px 14px;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
    z-index: 1000;
}

.menu-button:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.menu-icon {
    font-size: 26px;
}

/* Dropdown floating island */
.menu-dropdown {
    position: absolute;
    top: 52px;
    right: 0;
    background: white;
    border-radius: 16px;
    padding: 10px 0;
    width: 180px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 1px solid #eee;

    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.menu-dropdown a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: black;
    font-size: 15px;
}

.menu-dropdown span {
    display: block;
    padding: 12px 20px;
    text-decoration: underline;
    color: black;
    font-size: 15px;
}

.menu-dropdown a:hover {
    background: #f7f7f7;
}

.sub-menu {
    display: none; /* Hide sub-menu initially */
    background-color: #f9f9f9;
    border-left: 1px solid #ddd;
    padding-left: 10px;
}

.sub-menu a {
    padding: 8px;
    margin-left: 20px;  /* Indent the sub-menu items */
    text-decoration: none; /* Remove underline from links */
    color: #333;
}

/* When the "open" class is added, show the sub-menu */
.sub-menu.open {
    display: block;
}

.holderouter {
    #display:inline-block;
    display: flex;
    #flex-direction: column;
    align-items: flex-start;
    gap: 60px;
    #border: 1px solid #000;
    padding: 10px 1px 1px 1px;
}

.divdividendouter {
    align-items: flex-start;
    gap: 10px;
    margin-left: 3px;
    #border: 1px solid #000;
}
.divdividend {
    flex:1;
    flex-grow: 0;
    #border: 1px solid #000;
}
.tbdividends {
    border-collapse: collapse;
    min-width:700px;
    max-width:700px;
}
.thdividends {
    background: #eeeeee;
    border-top: 1px solid #ccc;
    border-right: 0px solid #ccc;
    border-left: 0px solid #ccc;
    padding: 3px 3px 3px 3px;
    text-align:center;
    vertical-align: top;
}
.thdividendssel {
    background: #cccccc;
    border-top: 1px solid #ccc;
    border-right: 0px solid #ccc;
    border-left: 0px solid #ccc;
    padding: 3px 3px 3px 3px;
    text-align:center;
    vertical-align: top;
}
.tbdividends tr {
    border-bottom: 1px solid #ccc;
}
.tbdividends td {
    border-right: 1px solid #fff;
    border-left: 0px solid #ccc;
    padding: 3px 3px 3px 3px;
    min-width:60px;
    text-align:left;
    font-size: 14px;
}

.tbalerts {
    border-collapse: collapse;
    min-width:300px;
    max-width:600px;
}
.tbalerts tr {
    border-bottom: 1px solid #ccc;
}
.tbalerts td {
    border-right: 0px solid #ccc;
    border-left: 0px solid #ccc;
    padding: 3px 3px 3px 3px;
    min-width:60px;
    text-align:left;
    font-size: 14px;
}
table.tbalerts td.tbalerts-time {
    min-width: 60px;
}
.help-body {
    margin-left: 10px;
}
.hidden {
    display: none;
}
.clickable {
    color: #0066cc;
    cursor: pointer;
    #text-decoration: underline;
    #font-weight: bold;
    margin: 0px 20px 0px 20px;
    vertical-align: bottom;
}

.clickable:hover {
    color: #0052a3;
}

.pvf-bar-container {
    width: 80px;
    height: 14px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}
.pvf-shaded-bar {
    height: 100%;
    #background: linear-gradient(to right, #4CAF50, #8BC34A);
    #background: linear-gradient(to right, #2196F3, #64B5F6);
    background: linear-gradient(to right, #FF9800, #FFC107);
    border-radius: 5px;
}
.vwp-shaded-bar {
    height: 100%;
    #background: linear-gradient(to right, #4CAF50, #8BC34A);
    background: linear-gradient(to right, #2196F3, #64B5F6);
    #background: linear-gradient(to right, #FF9800, #FFC107);
    border-radius: 5px;
}
.settings-container {
    #border: 1px solid #000;
    display: flex;
    justify-content: left;
    #gap: 20px;
    width: 100%;
    #height:30px;
    margin: 10px 0px 10px 5px;
    max-width: 700px;
}
.sliders-container {
    display: flex;
    justify-content: left;
    gap: 20px;
    width: 100%;
    #height:30px;
    margin-left: 5px;
    max-width: 700px;
}
.slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 340px;
    #height:30px;
    #border: 1px solid #000;
}
.slider-wrapper-alert {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 240px;
    #height:30px;
    #border: 1px solid #000;
}
.horizontal-elements {
    display: flex;
    align-items: center;
    #border: 1px solid #ff0000;
}
.slider {
    width: 100%;
    min-width: 200px;
    max-width: 300px;
    cursor: pointer;
}
.info-div {
    margin-left: 10px;
    #border: 1px solid #000;
}
.footer {
    display:inline-block; vertical-align: center; horiz-align: right;
    top: 3px;
    right: 9px;
    font-size: 14px;
}
.site-footer {
    background: #f1f1f1;          /* slightly darker than header */
    border-top: 1px solid #ddd;
    padding: 20px 0;
    #margin-top: 20px;
    font-size: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    flex-direction: column;   /* stack items vertically */
    align-items: center;      /* center horizontally */
    justify-content: center;
    text-align: center;       /* center text */
    gap: 10px;                /* spacing between lines */
}

.footer-links {
    #margin-bottom: 0.75rem;
}

.footer-link {
    #color: #cbd5e1;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #22c55e; /* green hover */
}



.footer-right a {
    margin-left: 20px;
    text-decoration: none;
    color: #444;
}

.footer-right a:hover {
    text-decoration: underline;
}

.body {
    #border: 1px solid #000;
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    #height: 100vh;
    #margin: 5px 5px 0px 5px;
}

.login-container {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}
.login-logo {
    width: 100%;
    text-align: center;
}

.logo {
    font-size: 34px;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-variant: all-small-caps;
    letter-spacing: 0.08em;
    #text-shadow: 0 0 1px rgba(34,197,94,0.4), 0 2px 4px rgba(0,0,0,0.6);
    text-shadow: 0 0 1px rgba(34,197,94,0.4), 0 1px 2px rgba(0,0,0,0.4);
    #text-shadow: 0 1px 0 rgba(0,0,0,0.4);
    line-height: 1;
    color: var(--secondary);
}
.logo .dip {
    #color: #22C55E;
    color: #007a5a;
}

.h2center {
    text-align: center;
    color: #333;
    #margin-bottom: 1rem;
}


.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    font-size: 1.0rem
}
h1 {
    font-size: 2.35rem;
    margin-bottom: 0.5rem;
}


h2 {
    font-size: 1.5rem;
    #margin-top: 1.5rem;
    #margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
p {
    margin-bottom: 1.1rem;
    line-height: 1.4;
}

ul {
    padding-left: 1.2rem;
    margin-bottom: 1.25rem;
}

li {
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    #font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #007bff;
    outline: none;
}

.form-group button {
    width: 100%;
    padding: 0.8rem;
    background-color: #007bff;
    border: none;
    color: white;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-group button:hover {
    background-color: #0056b3;
}

.message {
    color: black;
    font-size: 0.9rem;
    text-align: center;
    margin-top: .5rem;
}

.error-message {
    color: red;
    font-size: 0.9rem;
    text-align: center;
    margin-top: .5rem;
    margin-bottom: .1rem
}

.password-wrapper {
    position: relative;
    width: 100%;
}

/* Style the SVG icons */
.eye-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 24px; /* Icon width */
    height: 24px; /* Icon height */
}

/* Make sure the input field leaves space for the icon */
input[type="password"], input[type="text"] {
    padding-right: 30px; /* Space for the eye icon */
    width: 100%;
}

.footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.footer a {
    color: #007bff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}


@media all and (max-width:768px) {
    .logo { font-size: 28px; }
    .splash-header { padding: 20px 10px 20px 10px; }
    .splash-nav a { margin-left: 20px; font-size: 15px; }
    .splash-nav span { margin-left: 20px; font-size: 15px; }
    .holderouter {
        flex-direction: column;
    }
    .tbdividends {
        min-width: 400px;
    }
    .tbdividends td {
        min-width:40px;
    }
    table.tbalerts td.tbalerts-time {
        min-width: 72px;
    }
    .slider-wrapper {
        width: 120px;
    }
    .slider-wrapper-alert {
        width: 120px;
    }
    .slider {
        min-width: 120px;
    }
    .sliders-container {
        margin-left: 10px;
        max-width: 430px;
        height: 70px;
    }
    .settings-container {
        max-width: 430px;
        height: 40px;
        margin: 0px 0px 5px 5px;
    }
    .top-intro {
        padding: 0px 5px 0px 0px;
    }
    .header-title {
        padding-left: 5px;
    }
    main { display: inline; }
}