/* Style variables for Minecraft-themed premium layout */
:root {
    --bg-dark: #0a0a0e;
    --card-bg: rgba(16, 16, 24, 0.7);
    --border-color: rgba(255, 255, 255, 0.06);
    --text-primary: #f0f0f5;
    --text-secondary: #9aa0a6;
    
    /* Purplish/Indigo glowing accents resembling Portal or Enchantments */
    --accent-glow: #7c3aed;
    --accent-glow-rgb: 124, 58, 237;
    --accent-secondary: #06b6d4;
    --accent-secondary-rgb: 6, 182, 212;
    --accent-success: #10b981;
    --accent-danger: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Background overlay with noise/grid */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0,0,0,0.45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.45) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    opacity: 0.8;
}

/* Glowing background ambient orbs */
.glow-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -2;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.18;
    mix-blend-mode: screen;
    animation: floatOrb 25s infinite ease-in-out alternate;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 80%);
    top: -10%;
    right: 5%;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 80%);
    bottom: -15%;
    left: -5%;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(60px, 40px) scale(1.15);
    }
}

/* Header Navbar Styles */
.navbar {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-bold {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.logo-light {
    color: var(--accent-glow);
    text-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.server-status {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background-color: var(--accent-success);
    box-shadow: 0 0 8px var(--accent-success);
}

/* Main Container & Glass Card styling */
.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    z-index: 5;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    padding: 40px 32px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(14px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-glow), var(--accent-secondary));
}

.view {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.view-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    text-align: center;
}

.view-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    margin-bottom: 32px;
}

/* Input group styles */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.input-group.center {
    align-items: center;
    margin-bottom: 28px;
}

.input-group label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
}

.input-group input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    width: 100%;
}

.input-group input:focus {
    border-color: var(--accent-glow);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
}

/* Special TOTP input styles */
.totp-input {
    font-family: 'Outfit', sans-serif;
    font-size: 32px !important;
    letter-spacing: 12px;
    text-align: center;
    width: 220px !important;
    padding: 10px !important;
    font-weight: 800;
}

.totp-input-small {
    font-family: 'Outfit', sans-serif;
    font-size: 22px !important;
    letter-spacing: 4px;
    text-align: center;
    font-weight: 600;
    max-width: 200px;
    margin: 0 auto;
}

/* Button styles */
.btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-glow), #6366f1);
    color: #fff;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #8b5cf6, #4f46e5);
    transform: translateY(-2px);
}

.primary-btn:active {
    transform: translateY(0);
}

.btn-glow:hover {
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.danger-btn {
    background: linear-gradient(135deg, var(--accent-danger), #dc2626);
    color: #fff;
}

.danger-btn:hover {
    background: linear-gradient(135deg, #f87171, #b91c1c);
    transform: translateY(-2px);
}

.btn-copy {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Alerts validation display */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid transparent;
}

.alert.error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.alert.success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.hidden {
    display: none !important;
}

.view-footer {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 24px;
}

.view-footer a {
    color: var(--accent-glow);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.view-footer a:hover {
    color: #a78bfa;
}

/* Profile dashboard view custom styles */
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar-container {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-glow), var(--accent-secondary));
    padding: 2px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    background: #181822;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-username {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.profile-badge {
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.25);
    color: #c084fc;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 50px;
    width: fit-content;
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.details-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.details-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    font-weight: 600;
}

.details-value {
    font-size: 14px;
    color: #fff;
    word-break: break-all;
}

.details-value-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.2fa-status-block {
    background: rgba(124, 58, 237, 0.03);
    border: 1px solid rgba(124, 58, 237, 0.08);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.2fa-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.status-off {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.badge.status-on {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

.btn-2fa {
    padding: 10px 16px !important;
    font-size: 13px !important;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    width: auto !important;
}

.btn-2fa:hover {
    background: var(--accent-glow);
    border-color: var(--accent-glow);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
    transform: translateY(-1px);
}

.logout-btn {
    margin-top: 10px;
}

/* Modals Setup styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 100;
    justify-content: center;
    align-items: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #0f0f15;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    padding: 36px 28px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #fff;
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
    text-align: center;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-subtitle-danger {
    color: #fca5a5;
    font-size: 13px;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}

.qr-container {
    width: 170px;
    height: 170px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.qr-container img {
    width: 100%;
    height: 100%;
}

.secret-text-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 24px;
}

.secret-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.secret-code {
    font-family: monospace;
    font-size: 14px;
    color: var(--accent-secondary);
    font-weight: 600;
}

.setup-step {
    display: none;
}

.setup-step.active {
    display: block;
}
