* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-container {
    width: 100%;
    max-width: 700px;
    position: relative;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

h1 {
    text-align: center;
    color: #2d3748;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Usage Status Bar */
.usage-status {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.usage-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.usage-text {
    color: #4a5568;
    font-size: 1rem;
    font-weight: 600;
}

.quota-badge {
    padding: 6px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.quota-unlimited {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.quota-normal {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

.quota-warning {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
}

.quota-exceeded {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-full {
    background: linear-gradient(135deg, #e53e3e, #c53030);
}

/* Admin Dashboard Styles */
.admin-dashboard {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 1100px;
    animation: slideIn 0.6s ease-out;
    margin: 0 auto;
}

.admin-header,
.admin-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.admin-title {
    color: #2d3748;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    table-layout: fixed;
}

.user-table th,
.user-table td {
    padding: 15px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    word-wrap: break-word;
}

.user-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.user-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.user-table td {
    color: #4a5568;
    font-size: 0.95rem;
}

.admin-badge {
    background: linear-gradient(135deg, #ed64a6, #d53f8c);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.quota-input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.quota-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.update-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    white-space: nowrap;
}

.update-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.admin-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.admin-actions .back-btn,
.admin-actions .refresh-btn {
    width: auto;
    flex-grow: 1;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn {
    background: linear-gradient(135deg, #718096, #4a5568);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(113, 128, 150, 0.4);
}

.refresh-btn {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.user-table td:last-child {
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toggle-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

button:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.report-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 700px;
    animation: slideIn 0.6s ease-out;
}

.report-container h1 {
    color: #2d3748;
    margin-bottom: 2rem;
}

.report-container h2 {
    color: #4a5568;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.copyable-section {
    position: relative;
    margin-bottom: 20px;
    padding: 20px 60px 20px 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.copyable-section:hover {
    background: rgba(102, 126, 234, 0.1);
}

.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #667eea;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
    z-index: 10;
}

.copy-btn:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

.copy-btn.copied {
    background: #48bb78;
}

.report-container p {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
}

.report-container strong {
    color: #2d3748;
    font-weight: 600;
}

.report-container hr {
    border: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    margin: 30px 0;
    border-radius: 2px;
}

.back-btn {
    display: block;
    width: 100%;
    padding: 16px;
    margin-top: 30px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #718096, #4a5568);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(113, 128, 150, 0.4);
}

#loading {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 1.3rem;
    color: #4a5568;
    display: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.error-message {
    background: rgba(254, 178, 178, 0.9);
    color: #742a2a;
    padding: 20px;
    border: 2px solid #fed7d7;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 500;
}

.success-message {
    background: rgba(154, 230, 180, 0.9);
    color: #22543d;
    padding: 20px;
    border: 2px solid #9ae6b4;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 500;
}

.debug-info {
    background: rgba(190, 229, 235, 0.9);
    color: #0c5460;
    padding: 15px;
    border: 2px solid #bee5eb;
    border-radius: 12px;
    margin-bottom: 25px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #48bb78;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 90%;
    max-width: 500px;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.9) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-content h2 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal-content p {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-primary {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    flex: 1;
    padding: 12px 20px;
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

.regenerate-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-regenerate {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-regenerate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

/* Toggle Switch - smaller size, perfectly centered */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 32px;
}

.toggle-label:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-input:checked + .toggle-label {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.toggle-input:checked + .toggle-label:before {
    transform: translateX(28px) translateY(-50%);
}

.toggle-label:hover {
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.4);
}

/* Age Switch Styling */
.age-switch-label {
    background: #e2e8f0;
    color: #4a5568;
    border-radius: 12px;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

/* Gender Toggle Switch - Pink for Girl */
.gender-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.gender-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gender-toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    transition: .4s;
    border-radius: 32px;
}

.gender-toggle-label:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #4299e1;
    font-weight: bold;
}

.gender-toggle-label:after {
    content: "🧑";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: all 0.4s ease-in-out;
}

.gender-toggle-input:checked + .gender-toggle-label:after {
    content: "👩";
    transform: translate(28px, -50%);
}

.gender-toggle-input:checked + .gender-toggle-label {
    background: linear-gradient(135deg, #ed64a6, #d53f8c);
}

.gender-toggle-input:checked + .gender-toggle-label:before {
    transform: translateX(28px) translateY(-50%);
}

.gender-toggle-label:hover {
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.4);
}

/* New CSS for Shabbos Toggle */
#shabbos + .gender-toggle-label {
    background: linear-gradient(135deg, #f59e0b, #e53e3e); /* Orange to Red */
}

#shabbos + .gender-toggle-label:after {
    content: "☀️";
    color: white;
}

#shabbos:checked + .gender-toggle-label {
    background: linear-gradient(135deg, #2d3748, #4a5568);
}

#shabbos:checked + .gender-toggle-label:after {
    content: "🕯️🕯️";
    color: white;
    transform: translateX(28px) translateY(-50%);
}

/* New CSS for Family Session Toggle */
#familySession + .gender-toggle-label {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

#familySession + .gender-toggle-label:after {
    content: "👨‍💼";
    color: #ffffff;
}

#familySession:checked + .gender-toggle-label {
    background: linear-gradient(135deg, #ed64a6, #d53f8c);
}

#familySession:checked + .gender-toggle-label:after {
    content: "👪";
    color: #ffffff;
}

/* Gender label styling */
.gender-label {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 600;
    min-width: 35px;
    text-align: center;
}

/* Age input styling */
.age-input {
    width: 80px !important;
    padding: 10px 15px !important;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.welcome-text {
    text-align: center;
    color: #4a5568;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: auto;
    box-shadow: none;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.admin-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: auto;
    box-shadow: none;
}

.admin-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.signup-info {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 2rem;
    text-align: center;
    backdrop-filter: blur(5px);
}

.signup-text {
    color: #4a5568;
    font-size: 1rem;
    margin-bottom: 8px;
}

.phone-number {
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.phone-number strong {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
}

.btn-signup {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border: 2px solid #667eea;
    border-radius: 12px;
    background: transparent;
    color: #667eea;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
}

.btn-signup:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.signup-link-text {
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
    margin-top: 10px;
    margin-bottom: 0;
}

.signup-contact-info {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.contact-text {
    color: #4a5568;
}

.contact-text strong {
    color: #2d3748;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signup-note {
    color: #4a5568;
    font-style: italic;
    text-align: center;
    margin-bottom: 0;
}

.refresh-warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.refresh-warning-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(220, 38, 38, 0.3);
    width: 90%;
    max-width: 500px;
    animation: warningSlideIn 0.3s ease-out;
    text-align: center;
}

@keyframes warningSlideIn {
    from { opacity: 0; transform: scale(0.8) translateY(-30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.refresh-warning-icon {
    font-size: 4rem;
    color: #dc2626;
    margin-bottom: 20px;
    display: block;
}

.refresh-warning-title {
    color: #dc2626;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.refresh-warning-text {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.refresh-warning-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-stay {
    flex: 1;
    padding: 14px 20px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-stay:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-leave {
    flex: 1;
    padding: 14px 20px;
    background: #e5e7eb;
    color: #6b7280;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-leave:hover {
    background: #d1d5db;
    transform: translateY(-1px);
}

.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    padding-right: 55px !important;
}

.password-container input::-ms-reveal,
.password-container input::-ms-clear {
    display: none !important;
}

.password-container input::-webkit-contacts-auto-fill-button,
.password-container input::-webkit-credentials-auto-fill-button {
    display: none !important;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 1.2rem;
    color: #718096;
    transition: color 0.3s ease, background-color 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: #4a5568;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-50%) !important;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.contact-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 2px 4px;
}

.contact-link:hover {
    background: rgba(102, 126, 234, 0.1);
    text-decoration: underline;
}

.contact-link strong {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.warning-message {
    background: rgba(237, 137, 54, 0.1);
    color: #744210;
    padding: 15px;
    border: 2px solid rgba(237, 137, 54, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Disclaimer Modal Styles */
.disclaimer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: disclaimerFadeIn 0.3s ease-out;
}

@keyframes disclaimerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes disclaimerFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.disclaimer-modal.fade-out {
    animation: disclaimerFadeOut 0.3s ease-in forwards;
}

.disclaimer-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 165, 0, 0.3);
    width: 90%;
    max-width: 500px;
    animation: disclaimerSlideIn 0.4s ease-out;
    text-align: center;
}

@keyframes disclaimerSlideIn {
    from { opacity: 0; transform: scale(0.8) translateY(-30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.disclaimer-icon {
    font-size: 4rem;
    color: #f59e0b;
    margin-bottom: 20px;
    display: block;
    animation: pulse 2s infinite;
}

.disclaimer-title {
    color: #f59e0b;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.disclaimer-text {
    color: #4a5568;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.disclaimer-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
}

.countdown-circle {
    width: 60px;
    height: 60px;
    border: 4px solid #f59e0b;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: countdownPulse 1s infinite;
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.countdown-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f59e0b;
}

/* Add countdown ring animation */
.countdown-circle::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid transparent;
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: countdownSpin 3s linear;
}

@keyframes countdownSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scrollable list styles */
.scrollable-list-container {
    max-height: 250px;
    overflow-y: scroll;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    margin-top: 25px;
}

.scrollable-list-container ul {
    list-style: none;
    padding: 0;
}

.scrollable-list-container li {
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

.scrollable-list-container li:last-child {
    border-bottom: none;
}

/* Age Toggle Switch with custom emojis and background colors */
#ageToggle + .gender-toggle-label {
    background: #cbd5e0;
}

#ageToggle + .gender-toggle-label:before {
    content: "";
}

#ageToggle + .gender-toggle-label:after {
    content: "❌";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: all 0.4s ease-in-out;
}

#ageToggle:checked + .gender-toggle-label {
    background: #667eea;
}

#ageToggle:checked + .gender-toggle-label:after {
    content: "🔢";
    transform: translateX(28px) translateY(-50%);
}

/* CORRECTED Dropdown CSS - Replace the debug CSS with this */

/* Make sure the dropdown container has relative positioning */
.dropdown-container {
    position: relative;
}

/* Position dropdown menu relative to its container */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px); /* Position just below the dropdown button */
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none; /* Hidden by default */
    width: 100%;
}

/* Show dropdown when it has the 'show' class */
.dropdown-menu.show {
    display: block;
}

/* Dropdown items */
.dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    color: #333;
    background: white;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item.no-entries {
    color: #999;
    cursor: default;
    font-style: italic;
}

.dropdown-item.no-entries:hover {
    background-color: white;
}

/* Entry text and delete button */
.entry-text {
    flex: 1;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
    color: #333;
}

/* UPDATED .delete-btn */
.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 1;
    transition: background-color 0.2s;
    flex-shrink: 0;
    /* Remove font-size from here to get rid of the "X" */
}

/* Use a pseudo-element for the trash can emoji */
.delete-btn::before {
    content: "🗑️";
    font-size: 14px;
}

.delete-btn:hover {
    background: #c82333;
}

/* Make sure the input container allows relative positioning */
.input-with-dropdown {
    position: relative;
}