/* public/css/style.css */

/* --- General Layout & Typography --- */
body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: #121212;
    color: #EAEAEA;
    min-height: 100vh;
    margin: 0;
    padding: 3rem 1rem;
}
main {
    background: #1E1E1E;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 600px;
}
h1 {
    text-align: left;
    color: #FFFFFF;
    font-weight: 700;
    margin: 0;
}
h2 {
    font-size: 1.1rem;
    margin-top: 2rem;
    color: #A0A0A0;
    font-weight: 500;
    text-align: left;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* --- Header & Menu --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem; /* Sets spacing between the username and the menu */
}
#currentUserDisplay {
    color: #A0A0A0;
    font-size: 0.9rem;
}
.menu-container {
    position: relative;
}
#menuToggleBtn {
    background: none;
    color: #A0A0A0;
    font-size: 1.8rem;
    padding: 0 0.5rem;
    border: none;
    cursor: pointer;
}
#menuToggleBtn:hover {
    color: #FFFFFF;
}
#dropdownMenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #2C2C2C;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    z-index: 100;
    padding: 0.5rem;
    overflow: hidden;
}
#dropdownMenu.show {
    display: block;
}
#dropdownMenu button {
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 0.5rem;
    font-weight: normal;
    font-size: 0.9rem;
}
#dropdownMenu button:last-child {
    margin-bottom: 0;
}
#dropdownMenu button:hover {
    filter: brightness(1.2); /* Generic hover for menu buttons */
}


/* --- Forms & Inputs --- */
.form-group { margin-bottom: 1.5rem; }
.form-group-inline {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}
.form-group-inline input {
    width: auto;
    margin-right: 0.5rem;
}
label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: #A0A0A0; }
input, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #444;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #2C2C2C;
    color: #EAEAEA;
    font-size: 1rem;
}

/* --- Buttons --- */
button {
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, filter 0.2s;
}
button:active {
    transform: scale(0.98);
}
.btn-primary {
    width: 100%;
    background-color: #33D17A;
    color: #121212;
}
.btn-primary:hover {
    background-color: #2AAE6C;
}
.btn-secondary {
    width: auto;
    padding: 0.5rem 1rem;
    background-color: #6c757d;
    color: #FFFFFF;
}
.btn-secondary:hover {
    background-color: #5a6268;
}
.btn-danger {
    width: auto;
    padding: 0.5rem 1rem;
    background-color: #dc3545;
    color: #FFFFFF;
}
.btn-danger:hover {
    background-color: #c82333;
}
.copy-btn {
    width: auto;
    font-size: 0.8rem;
    font-weight: normal;
    padding: 0.4rem 0.8rem;
    background-color: #6c757d;
    color: #FFFFFF;
    margin-left: 1rem;
}
.copy-btn:hover {
    background-color: #5a6268;
}

/* --- Results & Tables --- */
.result-box {
    margin-top: 1rem;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    background-color: #2C2C2C;
    border-radius: 4px;
    text-align: left;
    font-family: "Courier New", Courier, monospace;
    min-height: 1.5em;
    border: 1px dashed #444;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.result-box span {
    font-weight: bold;
    color: #FFFFFF;
    word-break: break-all;
}
#feature-table-container {
    margin-top: 1rem;
    display: none;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
th, td {
    padding: 0.75rem;
    border-bottom: 1px solid #444;
    vertical-align: middle;
    min-height: 42px;
}
th {
    color: #A0A0A0;
    font-weight: 500;
}
td {
    color: #FFFFFF;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9rem;
}
td:last-child {
    width: 1%;
    white-space: nowrap;
}
tbody tr:last-child td {
    border-bottom: none;
}

/* --- OTP Display & Modal --- */
.otp-display {
    background-color: #2C2C2C;
    padding: 1rem;
    border-radius: 4px;
    font-family: "Courier New", Courier, monospace;
    color: #33D17A;
    text-align: center;
    border: 1px dashed #444;
}
.otp-display span {
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 3px;
}
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: #1E1E1E;
    padding: 2.5rem;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    border: 1px solid #333;
}
.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
/* NEW: Styles for the password requirements list */
.password-requirements {
    font-size: 0.8rem;
    color: #A0A0A0;
    margin-top: 1rem;
    padding-left: 1.2rem;
}
.password-requirements li {
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}
/* Style for a requirement that has been met */
.password-requirements li.valid {
    color: #33D17A; /* Green */
}