:root {
    --primary: #6366f1;
    --success: #10b981;
}

body {
    font-family: system-ui, sans-serif;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.glass {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 40px;
    border: 1px solid white;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    width: 95%;
    max-width: 600px;
    padding: 45px;
    margin-top: 50px;
    box-sizing: border-box;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center everything in the header */
    margin-bottom: 25px;
    position: relative;
}

.logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid white;
}

h1 {
    font-size: 24px;
    color: #333;
    white-space: nowrap;
    margin: 0 0 0 15px;
    /* Add some space left of title */
    flex-grow: 0;
    text-align: center;
}

h2 {
    text-align: center;
}

input {
    width: 100%;
    padding: 18px;
    margin: 10px 0;
    border-radius: 15px;
    border: none;
    font-size: 15px;
    box-sizing: border-box;
}

.btn {
    padding: 18px;
    border-radius: 15px;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    width: 100%;
    margin-top: 10px;
    transition: 0.2s;
}

.btn.green {
    background: var(--success);
}

.btn:hover {
    transform: scale(1.02);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.pass-wrap {
    position: relative;
}

.eye {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.dropdown {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 220px;
    overflow: hidden;
    z-index: 1000;
}

.dropdown.show {
    display: block;
}

.dropdown button {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: left;
    border: none;
    background: none;
    font-size: 13.5px;
    cursor: pointer;
}

.dropdown button:hover {
    background: #f0f4f8;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 30px;
    padding: 30px;
    width: 95%;
    max-width: 650px;
    position: relative;
}

.modal-content.small {
    max-width: 400px;
}

.center {
    text-align: center;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 26px;
    cursor: pointer;
    color: #aaa;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

td,
th {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 12px;
}

.table-scroll {
    max-height: 60vh;
    overflow-y: auto;
}

.footer {
    margin-top: auto;
    padding: 30px;
    font-size: 13.5px;
    color: #444;
}

.hidden {
    display: none;
}

.red-text {
    color: red !important;
}

@media (max-width: 600px) {
    h1 {
        font-size: 18px;
        white-space: normal;
    }

    .glass {
        padding: 25px;
    }
}

.link {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#loader.hidden {
    display: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#nav-tools {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}