/* Custom Neon Purple & Cyberpunk Spectrum - Full Stealth Aesthetic */
:root {
    --bg-main-gradient-start: #1c1537;
    --bg-main-gradient-end: #0f0b21;
    --card-bg-opacity: rgba(26, 21, 51, 0.45);
    --border-purple-glow: #2d235d;
    
    --neon-cyan: #00e5ff;
    --neon-green: #00e676;
    --neon-pink: #ff1744;
    --btn-purple-gradient: linear-gradient(135deg, #7e57c2, #5e35b1);
    --btn-danger-red: #ef5350;
    
    --text-white: #ffffff;
    --text-muted-slate: #7e799c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: linear-gradient(145deg, var(--bg-main-gradient-start), var(--bg-main-gradient-end));
    color: var(--text-white);
    min-height: 100vh;
    padding-bottom: 60px;
}

/* TOP STATUS NAV BAR */
header {
    background-color: rgba(18, 14, 38, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-purple-glow);
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.status-guest {
    color: var(--neon-green);
    font-size: 1.1rem;
    font-weight: 600;
}

.nav-status {
    font-size: 1.1rem;
    color: var(--text-muted-slate);
    font-weight: 500;
}

.border-left {
    border-left: 2px solid var(--border-purple-glow);
    padding-left: 24px;
}

.txt-cyan { color: var(--neon-cyan); font-weight: 600; }
.txt-yellow { color: #ffb300; font-weight: 600; }

/* PREMIUM BUTTONS */
button {
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
button:hover { opacity: 0.9; transform: translateY(-1px); }
button:active { transform: translateY(0); }

.btn-login { 
    background: var(--btn-purple-gradient); 
    color: #fff; 
    padding: 10px 24px; 
    font-size: 1rem; 
    box-shadow: 0 2px 10px rgba(126, 87, 194, 0.2);
}

.btn-toggle-vpn { 
    background-color: #3f51b5; 
    color: #fff; 
    padding: 10px 24px; 
    font-size: 1rem; 
}

.btn-add-link { 
    background: var(--btn-purple-gradient); 
    color: #fff; 
    padding: 16px 40px; 
    font-size: 1.2rem; 
    white-space: nowrap; 
    box-shadow: 0 4px 12px rgba(126, 87, 194, 0.3);
}

.btn-remove { 
    background-color: var(--btn-danger-red); 
    color: #fff; 
    padding: 12px 28px; 
    font-size: 1.1rem; 
    border-radius: 6px; 
}

/* FLUID FULLSCREEN CONTAINER */
.main-layout-fullscreen {
    width: 100%;
    max-width: 96%; 
    margin: 40px auto;
    padding: 0 20px;
}

/* CARDS */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 24px;
    margin-bottom: 45px;
}

.info-card {
    background-color: var(--card-bg-opacity);
    border: 1px solid var(--border-purple-glow);
    border-left: 5px solid var(--border-purple-glow);
    border-radius: 8px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 110px; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.border-cyan { border-left-color: var(--neon-cyan); }
.border-green { border-left-color: var(--neon-green); }

.info-label {
    font-size: 0.9rem; 
    color: var(--text-muted-slate);
    font-weight: 700;
    letter-spacing: 1px;
}

.info-value {
    font-size: 1.7rem; 
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.txt-cyan-neon { color: var(--neon-cyan); text-shadow: 0 0 8px rgba(0, 229, 255, 0.2); }
.txt-green-neon { color: var(--neon-green); text-shadow: 0 0 8px rgba(0, 230, 118, 0.2); }
.txt-pink-neon { color: var(--neon-pink); }

.youtube-link {
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 1.2rem; 
    font-weight: 500;
}
.youtube-link:hover { text-decoration: underline; color: #fff; }

/* WRAPPERS */
.form-container, .database-container {
    margin-bottom: 45px;
    width: 100%;
}

.section-heading {
    font-size: 1.5rem; 
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* INPUTS */
.input-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.input-inline-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.input-inline-row #linkInput {
    flex: 1;
}

.custom-input {
    background-color: rgba(14, 11, 29, 0.7);
    color: var(--text-white);
    padding: 16px 22px; 
    border-radius: 8px;
    font-size: 1.2rem; 
    width: 100%;
    border: 1px solid #1f2754;
    transition: all 0.2s ease;
}

.custom-input::placeholder {
    color: rgba(126, 121, 156, 0.5);
}

.custom-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.search-wrapper {
    max-width: 500px; 
    margin-top: 15px;
}
.search-field {
    font-size: 1.1rem !important;
    padding: 12px 18px;
}

/* LIST ITEMS */
.links-list-group {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-item-wrapper {
    background-color: var(--card-bg-opacity);
    border: 1px solid var(--border-purple-glow);
    border-radius: 8px;
    padding: 22px 30px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.link-text-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rendered-title {
    color: var(--neon-cyan);
    font-size: 1.4rem; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rendered-meta {
    color: var(--text-muted-slate);
    font-size: 1rem; 
    font-weight: 500;
}

.empty-state {
    text-align: center;
    color: var(--text-muted-slate);
    padding: 40px 0;
    font-size: 1.3rem;
}
