﻿/********************************
 * 1) Fade/Slide Animations
 ********************************/
.fade-in-slide-up {
    animation: fadeSlideUp 0.8s ease forwards; /* triggers once on load */
    opacity: 0; /* initially hidden */
}

.fade-in-slide-left {
    animation: fadeSlideLeft 0.8s ease forwards;
    opacity: 0;
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideLeft {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/********************************
 * 2) Sticky Header + Nav
 ********************************/
.header-menu {
    position: sticky; /* sticks at top when scrolling */
    top: 0;
    z-index: 999;
    background-color: #f2f2f2;
    text-align: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    padding-left: 0rem;
}

    .header-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: inline-flex; /* horizontal layout */
        gap: 1.5rem;
    }

    .header-menu li {
        margin: 0;
    }

    /* Menu link states */
    .header-menu a {
        text-decoration: none;
        font-weight: bold;
        padding: 0.5rem 1rem;
        transition: background-color 0.3s ease, color 0.3s ease;
        border: 1px solid #ccc;
        border-bottom: none;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

        .header-menu a:hover {
            background-color: #ccc;
            border: 1px solid #ccc;
            border-bottom: none; /* removes the bottom border for a flush look */
            /* Round only the top corners */
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
        }

        .header-menu a.active {
            background-color: #eee;
            color: #111;
            /*box-shadow: inset 0 3px 0 #333;*/
            border: 1px solid #eee;
            border-bottom: none; /* removes the bottom border for a flush look */
            /* Round only the top corners */
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
        }

        .header-menu a.selected {
            background-color: #ccc;
            color: #333;
            /*box-shadow: inset 0 3px 0 #333;*/
            border: 1px solid #ccc;
            border-bottom: none; /* removes the bottom border for a flush look */
            /* Round only the top corners */
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
        }

/********************************
 * 3) Banner & Page Content
 ********************************/
.banner-image {
    width: 100%;
    height: auto;
    display: block;
    align: center;
}

.page-content {
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
}

/* Remove default list bullets if needed */
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.full-page-background {
    min-height: 100vh; /* 100% of viewport height */
    /* Possibly add some padding if you like, e.g.: */
    padding-bottom: 2rem;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Force HTML and BODY to fill the entire browser height */
    font-family: Georgia;
}

.title {
    text-align: center;
    padding: 20px;
}

.fade-blue-to-yellow {
    background: var(--med-brand-light-blue);
    transition: background 0.3s ease;
}

.fade-blue-to-yellow:hover {
    background: var(--med-brand-yellow);
}

.assigned-computer .remove-icon {
    visibility: hidden;
}

.assigned-computer:hover .remove-icon {
    visibility: visible;
}

.license-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

    .license-table th,
    .license-table td {
        border: 1px solid #eee;
        padding: 0.5rem;
        text-align: left;
    }

/* Updated styles for inline editing without moving text */
.account-field {
    position: relative;
    padding-right: 2em; /* reserve space for the edit icon */
    display: inline-block;
}

.edit-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
    font-size: 0.9em;
    /* start with the default inherited color */
    color: inherit;
}

/* On hover, reveal the edit icon and change its color to the highlight */
.account-field:hover .edit-icon {
    opacity: 1;
    color: #eee; /* highlight color from your variables */
}

/* Ensure account tables are centered */
.account-table, .account-details-table {
    margin: 0 auto;
}

    /* Fix the width of the first (label) column */
    .account-table td:first-child,
    .account-details-table td:first-child {
        width: 200px; /* Adjust as needed */
        text-align: right;
    }

#extraFieldsContainer {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.5s ease;
}

.account-table, .extra-fields-table {
    width: 400px; /* or auto */
    margin: 0 auto;
    border-collapse: collapse;
}
