/* ========= Base Overlay + Modal ========= */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ddtt-password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.ddtt-password-modal {
    background: #ffffff; /* light default */
    color: #1d1d1d;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.ddtt-password-modal h1 {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0));
    color: #1d2327;
    font-style: italic;
    font-size: 2rem;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-family: 'Michroma', sans-serif;
}

.ddtt-password-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
}

.ddtt-password-modal input {
    width: 100%;
    padding: 0.5rem;
    padding-right: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #ffffff;
    color: #1d1d1d;
    box-sizing: border-box;
}

#ddtt-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.ddtt-password-modal button {
    background: #2271B1;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1.25rem;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.ddtt-password-modal button:hover,
.ddtt-password-modal button:focus {
    background: #005177;
    outline: none;
}

.ddtt-password-modal p#ddtt-password-error {
    margin-top: 1rem;
    color: #dc3545; /* error red */
}

/* ========= Dark Mode ========= */
.ddtt-dark-mode.ddtt-password-overlay {
    background: #2D2D2D;
}

.ddtt-dark-mode .ddtt-password-modal {
    background: #1E1E1E;
    color: #dcdcdc;
    border: 1px solid #444444;
}

.ddtt-dark-mode .ddtt-password-modal h1 {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    color: #ffffff;
}

.ddtt-dark-mode .ddtt-password-modal input {
    background: #2a2a2a;
    border: 1px solid #555555;
    color: #dcdcdc;
}

.ddtt-dark-mode .ddtt-password-modal button {
    background: #2271B1;
    color: #ffffff;
}

.ddtt-dark-mode .ddtt-password-modal button:hover,
.ddtt-dark-mode .ddtt-password-modal button:focus {
    background: #005177;
}
