* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --color-bg-darkest: #0f172a;
    --color-bg-light: #1e293b;
    --color-text-light: #e2e8f0;

    --neon-blue: #38bdf8;
    --neon-green: #10b981;
    --neon-red: #ef4444;
    --neon-yellow: #facc15;
    --neon-purple: #a855f7;
    --neon-orange: #fb923c; 

    --lux-gold-start: #f59e0b;
    --lux-gold-mid: #d97706;
    --lux-bg-black: #050505;

    --neon-shadow-blue: 0 0 10px rgba(56, 189, 248, 0.6), 0 0 20px rgba(56, 189, 248, 0.4);
    --neon-shadow-green: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* AUTH PAGE */
.login-body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #050505;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)), url('images/login img.jpg.'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.login-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    display: flex;
    width: 850px;
    height: 550px;
    background: #1e1e24;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    border: 1px solid #2b2b36;
    z-index: 10;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px; 
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-green), var(--lux-gold-start));
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.6); 
    z-index: 20; 
}

.login-image-side {
    flex: 1.1;
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.5) contrast(1.1);
}

.image-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    text-align: center;
    color: #fff;
}

.brand-tag {
    font-weight: 800;
    font-size: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--neon-green);
    text-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
    margin-bottom: 20px;
}

.brand-tag i {
    font-size: 4.5rem; 
}

.overlay-text {
    margin-top: 20px;
}

.overlay-text h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.1;
}

.overlay-text p {
    opacity: 0.8;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.slider-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.dot.active {
    background: var(--neon-green);
    width: 16px;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--neon-green);
}

.login-form-side {
    flex: 1;
    padding: 30px 40px;
    background: #1e1e24;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.form-content {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.form-header {
    text-align: left;
    margin-bottom: 20px;
}

.form-header h2 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 5px;
}

.form-header p {
    color: #8d8d9b;
    font-size: 0.85rem;
    margin: 0;
}

.form-header a {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.form-header a:hover {
    color: #a78bfa;
    text-decoration: underline;
}

.modern-input-group {
    position: relative;
    margin-bottom: 15px;
}

.modern-input-group input {
    width: 100%;
    padding: 12px 12px;
    padding-right: 40px; 
    background: #2b2b36;
    border: 1px solid #3f3f4e;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
}

.modern-input-group label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8d8d9b;
    pointer-events: none;
    transition: 0.3s ease all;
    font-size: 0.85rem;
}

.modern-input-group input:focus,
.modern-input-group input:not(:placeholder-shown) {
    border-color: #8b5cf6;
    background: #23232a;
}

.modern-input-group input:focus+label,
.modern-input-group input:not(:placeholder-shown)+label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    background: #1e1e24;
    padding: 0 4px;
    color: #8b5cf6;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8d8d9b;
    cursor: pointer;
    font-size: 0.9rem;
    z-index: 10;
}

.toggle-password:hover {
    color: #fff;
}

.btn-primary-modern {
    width: 100%;
    padding: 12px;
    background: #6d28d9;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 5px;
}

.btn-primary-modern:hover {
    background: #7c3aed;
    box-shadow: 0 5px 15px rgba(109, 40, 217, 0.4);
}

.terms-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8d8d9b;
    font-size: 0.75rem;
    margin-bottom: 15px;
}

.terms-check a {
    color: #8b5cf6;
    text-decoration: none;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #6b6b7a;
    font-size: 0.75rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #3f3f4e;
}

.divider span {
    padding: 0 10px;
}

.social-actions {
    display: flex;
    gap: 10px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: transparent;
    border: 1px solid #3f3f4e;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.social-btn:hover {
    background: #2b2b36;
    border-color: #fff;
}

.social-btn img {
    width: 18px;
}

.auth-message {
    margin-top: 10px;
    text-align: center;
    font-size: 0.8rem;
    min-height: 20px;
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        width: 90%;
        height: auto;
        min-height: 500px;
    }

    .login-image-side {
        display: none;
    }

    .login-form-side {
        padding: 30px 20px;
    }
}

/* NAVBAR */
.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: rgba(2, 6, 23, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.navbar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-blue));
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
    z-index: 1001;
}

.logo-group {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo-icon {
    font-size: 2.2rem;
    color: var(--neon-blue);
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.8);
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.logo-group:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
}

.nav-link i {
    margin-right: 8px;
}

.nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(56, 189, 248, 0.3);
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--neon-blue);
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
    border: 1px solid var(--neon-blue);
}

.user-control {
    position: relative;
}

.user-avatar-btn {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.2);
}

.user-avatar-btn i {
    font-size: 1.4rem;
    margin-right: 8px;
}

.user-avatar-btn:hover {
    background-color: var(--neon-green);
    color: #020617;
    box-shadow: 0 0 15px var(--neon-green);
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background-color: #0f172a;
    border: 1px solid var(--neon-red);
    border-radius: 8px;
    margin-top: 10px;
    overflow: hidden;
    min-width: 150px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    display: none;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-item {
    width: 100%;
    padding: 12px 15px;
    background: none;
    border: none;
    color: var(--neon-red);
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}

.dropdown-item i {
    margin-right: 10px;
}

.dropdown-item:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

/* BACKGROUND & PROTECTED PAGES */
.protected-body {
    min-height: 100vh;
    color: var(--color-text-light);
    padding-top: 80px;
    background-color: #0b1120;
    background-image:
        radial-gradient(var(--color-bg-light) 1px, transparent 1px),
        radial-gradient(var(--color-bg-light) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    position: relative;
    z-index: 0;
}

.protected-body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 10%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, transparent 0%, rgba(11, 17, 32, 0.8) 100%);
    pointer-events: none;
    z-index: -1;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--neon-yellow);
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--neon-purple);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.7);
}

/* DASHBOARD & SERVICES */
.homepage-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 15px;
    padding: 50px;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.homepage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-green), var(--lux-gold-start));
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
    z-index: 5;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #e2e8f0;
}

.hero-text p {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.hero-cta-btn {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.hero-cta-btn:hover {
    background: var(--neon-blue);
    color: #0f172a;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.dashboard-card {
    position: relative;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 20px 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dashboard-card:nth-child(1) { --card-neon: var(--neon-blue); }
.dashboard-card:nth-child(2) { --card-neon: var(--neon-green); }
.dashboard-card:nth-child(3) { --card-neon: var(--neon-yellow); }
.dashboard-card:nth-child(4) { --card-neon: var(--neon-purple); }

.dashboard-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--card-neon);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--card-neon);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--card-neon);
    box-shadow: 0 0 20px var(--card-neon);
    opacity: 0.8;
}

.dash-icon {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--card-neon);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.dashboard-card:hover .dash-icon {
    background: var(--card-neon);
    color: #000;
    box-shadow: 0 0 30px var(--card-neon);
    transform: rotateY(180deg);
    border-color: transparent;
}

.dash-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    font-family: 'Inter', sans-serif;
    letter-spacing: -1px;
}

.dash-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-top: 5px;
    transition: color 0.3s;
}

.dashboard-card:hover .dash-label {
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-top: 3px solid var(--neon-purple);
    border-radius: 0 0 10px 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.2);
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(#38bdf8, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h4 {
    color: var(--color-text-light);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ABOUT SECTION & TEAM */
.about-section {
    padding: 30px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    border: 1px solid var(--neon-green);
    box-shadow: var(--neon-shadow-green);
    margin-bottom: 50px;
}

.about-section h2 {
    font-size: 2rem;
    color: var(--neon-green);
    margin-bottom: 20px;
    border-bottom: 2px dashed #334155;
    padding-bottom: 10px;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.team-list-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding-bottom: 40px;
}

.team-card {
    position: relative;
    width: 210px;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-green));
    opacity: 0.7;
    transition: all 0.4s ease;
}

.team-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.2);
}

.team-card:hover::before {
    opacity: 1;
    height: 6px;
    box-shadow: 0 0 15px var(--neon-purple);
}

.card-content {
    padding: 25px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    position: relative;
    height: 100%;
}

.img-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 20px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--neon-purple);
    filter: grayscale(20%);
    transition: all 0.4s ease;
}

.team-card:hover .img-wrapper img {
    filter: grayscale(0%);
    border-color: var(--neon-blue);
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
}

.team-card h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    width: 100%;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.role-badge {
    background: rgba(56, 189, 248, 0.1);
    color: var(--neon-blue);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(56, 189, 248, 0.3);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: 90%;
    transition: 0.3s;
}

.team-card:hover .role-badge {
    background: rgba(56, 189, 248, 0.2);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.social-links {
    display: flex;
    gap: 15px;
    opacity: 0.6;
    transition: 0.3s;
}

.team-card:hover .social-links {
    opacity: 1;
}

.social-links a {
    color: #94a3b8;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--neon-green);
    transform: translateY(-3px);
    text-shadow: 0 0 8px var(--neon-green);
}

/* SERVICES & SIMULATION */
.services-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.control-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    border: 1px solid var(--neon-yellow);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
}

.btn-control {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-control i {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--neon-green);
    color: var(--color-bg-darkest);
    box-shadow: var(--neon-shadow-green);
}

.btn-primary:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(16, 185, 129, 1);
}

/* NEW BUTTON STYLE */
.btn-realtime {
    background-color: var(--neon-orange);
    color: var(--color-bg-darkest);
    box-shadow: 0 0 10px rgba(251, 146, 60, 0.6);
}
.btn-realtime:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(251, 146, 60, 1);
}

.btn-save {
    background-color: var(--neon-blue);
    color: var(--color-bg-darkest);
    box-shadow: var(--neon-shadow-blue);
}

.btn-save:hover {
    background-color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(56, 189, 248, 1);
}

.btn-new {
    background-color: var(--neon-purple);
    color: var(--color-bg-darkest);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

.btn-new:hover {
    background-color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(168, 85, 247, 1);
}

.simulation-area {
    display: flex;
    gap: 20px;
    min-height: 600px;
}

.palette-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.palette-sidebar h3 {
    font-size: 1.5rem;
    color: var(--neon-blue);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--neon-blue);
    padding-bottom: 10px;
    text-shadow: 0 0 5px rgba(56, 189, 248, 0.5);
}

.palette-box {
    height: 90%;
    min-height: 400px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: 8px;
}

.diagram-main-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.diagram-box {
    flex-grow: 1;
    width: 100%;
    background-color: #050911;
    background-image: linear-gradient(rgba(56, 189, 248, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 189, 248, 0.15) 1px, transparent 1px);
    background-size: 25px 25px;
    border-radius: 12px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    border: 1px solid var(--neon-blue);
    min-height: 500px;
}

#simulationMessage {
    margin-top: 15px;
    color: var(--neon-green);
    font-weight: 600;
    text-shadow: 0 0 3px rgba(16, 185, 129, 0.5);
}

/* SAVED PROJECTS UI (GOLD / LUX THEME) */
.saved-diagrams-list-section {
    margin-top: 40px;
}

.saved-diagrams-list-section h2 {
    font-size: 1.8rem;
    color: var(--lux-gold-start);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    padding-bottom: 10px;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    text-align: center;
}

.saved-diagrams-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.saved-diagram-card {
    position: relative;
    background: linear-gradient(145deg, #121212, #000000);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.card-glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.15) 0%, transparent 50%);
    opacity: 0.5;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.saved-diagram-card:hover .card-glow-effect {
    opacity: 1;
    transform: rotate(45deg);
}

.saved-diagram-card:hover {
    transform: translateY(-8px);
    border-color: var(--lux-gold-start);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(245, 158, 11, 0.2);
}

.card-content-wrapper {
    position: relative;
    z-index: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.saved-diagram-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-green), var(--lux-gold-start));
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
    z-index: 5;
}

.diagram-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    letter-spacing: 0.5px;
    text-align: center;
}

.diagram-meta {
    font-size: 0.9rem;
    color: #a3a3a3;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.diagram-meta i {
    color: var(--lux-gold-start);
}

.diagram-actions {
    margin-top: auto;
    display: flex;
    gap: 15px;
}

.diagram-actions button {
    flex: 1;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.load-btn {
    border: none;
    background: linear-gradient(90deg, var(--lux-gold-mid), var(--lux-gold-start));
    color: #000;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.load-btn:hover {
    background: linear-gradient(90deg, #fff, var(--lux-gold-start));
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
    transform: translateY(-2px);
}

.delete-btn {
    background: transparent;
    border: 1px solid #333;
    color: #666;
}

.delete-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.btn-danger {
    background-color: var(--neon-red);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}
.btn-danger:hover {
    background-color: #b91c1c;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
}

/* FOOTER */
.main-footer {
    width: 100%;
    height: 80px;
    background-color: #020617;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
    margin-top: 60px;
    position: relative;
    z-index: 100;
    border-top: none;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-green), var(--neon-blue));
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.footer-left {
    display: flex;
    align-items: center;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-separator {
    margin: 0 15px;
    color: var(--neon-purple);
}

.footer-tagline {
    font-style: italic;
    color: #64748b;
}

.footer-center {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-link {
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #94a3b8;
    font-size: 1.2rem;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link:hover {
    color: #fff;
    background: var(--neon-purple);
    border-color: var(--neon-purple);
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

.footer-version {
    font-size: 0.85rem;
    color: #94a3b8;
    border: 1px solid #334155;
    padding: 6px 12px;
    border-radius: 15px;
    background: #0f172a;
}

.footer-right {
    display: flex;
    align-items: center;
}

.system-status {
    display: flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--neon-green);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: var(--neon-shadow-green);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--neon-green);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px var(--neon-green);
    animation: pulse 2s infinite;
}

.status-text {
    color: var(--neon-green);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
    .main-footer {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 15px;
        text-align: center;
    }
    .footer-left, .footer-center, .footer-right {
        justify-content: center;
        flex-wrap: wrap;
    }
    .footer-tagline { display: none; }
}

.config-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.config-modal {
    background: #1e293b;
    border: 1px solid var(--neon-blue);
    width: 450px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
    color: white;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #334155;
    padding-bottom: 10px;
}

.close-modal {
    background: none; border: none; color: #94a3b8; font-size: 1.5rem; cursor: pointer;
}
.close-modal:hover { color: var(--neon-red); }

.input-group { margin-bottom: 15px; }
.input-group label { display: block; margin-bottom: 5px; color: #cbd5e1; font-size: 0.9rem; }
.input-group input {
    width: 100%; padding: 10px; background: #0f172a; border: 1px solid #334155;
    color: white; border-radius: 6px; outline: none;
}
.input-group input:focus { border-color: var(--neon-blue); }

.btn-save-cfg {
    width: 100%; padding: 10px; background: var(--neon-green); border: none;
    border-radius: 6px; font-weight: bold; cursor: pointer; color: #0f172a;
}
.btn-save-cfg:hover { background: #059669; }

.routing-table-wrapper {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
}

#routingTableUI {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

#routingTableUI th {
    text-align: left;
    color: var(--neon-blue);
    padding: 5px;
    border-bottom: 1px solid #334155;
}

#routingTableUI td { padding: 5px; }

.tbl-input-dest, .tbl-input-hop {
    width: 100%;
    background: #1e293b;
    border: 1px solid #475569;
    color: #fff;
    padding: 5px;
    border-radius: 4px;
    outline: none;
}

.tbl-input-dest:focus, .tbl-input-hop:focus {
    border-color: var(--neon-purple);
}

.btn-del-row {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-del-row:hover {
    background: #ef4444;
    color: white;
}

.btn-add-route {
    width: 100%;
    margin-top: 10px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px dashed var(--neon-blue);
    color: var(--neon-blue);
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}

.btn-add-route:hover {
    background: rgba(56, 189, 248, 0.2);
    border-style: solid;
}

/* --- MODAL INPUTS & ANIMATIONS --- */

#saveProjectModal input {
    font-size: 1.1rem;
    padding: 12px;
    border-color: var(--neon-blue);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.progress-circle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.progress-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(var(--neon-purple) 0deg, #1e293b 0deg);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    transition: background 0.1s linear;
}

/* Danger (Red) variant for delete progress */
.progress-circle.danger {
    background: conic-gradient(var(--neon-red) 0deg, #1e293b 0deg);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 85px;
    height: 85px;
    background-color: #1e293b;
    border-radius: 50%;
    z-index: 1;
}

#saveProgressText, #deleteProgressText {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 0 10px var(--neon-purple);
}
.progress-circle.danger #deleteProgressText {
    text-shadow: 0 0 10px var(--neon-red);
}

/* Success States */
.progress-complete .progress-circle {
    box-shadow: 0 0 30px var(--neon-green);
}
.progress-complete span {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}