/* Universal Modal Styles for NightLifeV */
:root {
    --primary-color: #00FFFF;
    --primary-dark: #00CCCC;
    --primary-light: #66FFFF;
    --background: #0f0f0f;
    --surface: #1e1e1e;
    --surface-light: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --border-color: #333333;
    --success-color: #44ff44;
    --warning-color: #ffaa00;
    --danger-color: #ff4444;
    --shadow: 0 4px 20px rgba(0, 255, 255, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 255, 255, 0.2);
}

/* ===== BASE MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--surface);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.2);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.animate {
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* ===== LOGIN/REGISTER MODAL STYLES ===== */
.form {
    padding: 2rem;
    box-sizing: border-box;
}

.form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
}

.contents {
    position: relative;
    margin-bottom: 1.5rem;
}

.contents.one,
.contents.two,
.contents.three {
    display: flex;
    align-items: center;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.contents:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

.iconic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contents input[type="text"],
.contents input[type="password"] {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    margin-left: 0.75rem;
}

.contents input::placeholder {
    color: var(--text-secondary);
}

.show-hide {
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.show-hide:hover {
    color: var(--primary-color);
}

/* Password Requirements */
.password-requirements {
    background: var(--background);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.password-requirements ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.password-requirements li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.password-requirements li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ff4444;
}

.password-requirements li.valid::before {
    content: '✓';
    color: #44ff44;
}

/* Form Buttons and Links */
.psw-container {
    margin-top: 2rem;
}

.psw-container input[type="submit"] {
    width: 100%;
    background: var(--primary-color);
    color: var(--background);
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.psw-container input[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3);
}

.psw {
    display: block;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.psw-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.psw-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* ===== IMPRESSUM MODAL STYLES ===== */
.impressum-modal-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
}

.impressum-modal-content h1,
.impressum-modal-content h2,
.impressum-modal-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.impressum-modal-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ===== DATENSCHUTZ MODAL STYLES ===== */
.datenschutz-modal-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
}

.datenschutz-modal-content h1,
.datenschutz-modal-content h2,
.datenschutz-modal-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.datenschutz-modal-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ===== NUTZUNGSBEDINGUNGEN MODAL STYLES ===== */
.nutzungsbedingungen-modal-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
}

.nutzungsbedingungen-modal-content h1,
.nutzungsbedingungen-modal-content h2,
.nutzungsbedingungen-modal-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.nutzungsbedingungen-modal-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ===== DELETE MODAL STYLES ===== */
.delete-modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    text-align: center;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.danger-icon {
    font-size: 3rem;
    color: var(--danger-color);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.modal-header h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1rem 2rem 2rem 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--background);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #cc3333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.3);
}

/* ===== PASSWORD RESET MODAL STYLES ===== */
.reset-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
}

.info-icon {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.info-text p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-text p:last-child {
    margin-bottom: 0;
}

.command-box {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin: 1rem 0;
    text-align: center;
}

.command-box code {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #00cccc);
    color: var(--bg-primary);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00cccc, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.psw-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.psw-container input[type="submit"],
.psw-container button {
    flex: 1;
    min-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 48px;
    box-sizing: border-box;
    font-size: 1rem;
    line-height: 1;
}

/* Alert Messages in Modal */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert i {
    font-size: 1.1rem;
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #00cccc;
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .form {
        padding: 2rem 1.5rem;
    }
    
    .impressum-modal-content {
        padding: 1.5rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .reset-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .psw-container {
        flex-direction: column;
    }
    
    .psw-container input[type="submit"],
    .psw-container button {
        width: 100%;
        min-width: unset;
    }
}