﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #0f0f1e;
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
    min-height: 100vh;
    overflow-x: hidden;
}

.Particlescontainer {
    position: relative;
    width: 100%;
    height: 100vh;
}


canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 1rem;
    text-align: center;
    background: rgba(15, 15, 30, 0.15); /* Reduced opacity for better particle visibility */
    backdrop-filter: blur(var(--blur-amount, 0px)); /* Default to 0px */
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

    h1 span {
        font-weight: 300;
        background: linear-gradient(90deg, #ff9a9e 0%, #fad0c4 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #aaa;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.03); /* Reduced opacity for better visibility */
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(2px); /* Reduced blur from 5px to 2px */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
    position: relative;
    z-index: 10; /* Ensure controls are above particles */
}

label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #ddd;
    letter-spacing: 1px;
    cursor: default;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    margin: 10px 0; /* Add margin to expand clickable area */
    cursor: pointer;
}

    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 20px; /* Larger thumb for better usability */
        height: 20px; /* Larger thumb for better usability */
        border-radius: 50%;
        background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid rgba(255, 255, 255, 0.5); /* Add border for better visibility */
        box-shadow: 0 0 5px rgba(56, 249, 215, 0.3); /* Add subtle shadow */
    }

        input[type="range"]::-webkit-slider-thumb:hover {
            transform: scale(1.15);
            box-shadow: 0 0 10px rgba(56, 249, 215, 0.5);
        }

    input[type="range"]:focus {
        outline: none;
    }

.code-container {
    width: 90%;
    max-width: 800px;
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    background: rgba(15, 15, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

    .code-container:hover {
        transform: translateY(-5px);
    }

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(30, 30, 50, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-buttons {
    display: flex;
    gap: 5px;
}

.tab-btn {
    background: rgba(15, 15, 30, 0.5);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .tab-btn:hover {
        background: rgba(56, 249, 215, 0.1);
        color: #ddd;
    }

    .tab-btn.active {
        background: rgba(56, 249, 215, 0.15);
        color: #38f9d7;
        border-color: rgba(56, 249, 215, 0.3);
    }

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

    .tab-pane.active {
        display: block;
    }

#copyCodeBtn {
    background: none;
    border: none;
    color: #38f9d7;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #copyCodeBtn:hover {
        background: rgba(56, 249, 215, 0.1);
        transform: scale(1.1);
    }

.code-block {
    padding: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Source Code Pro', monospace;
    line-height: 1.5;
    font-size: 0.9rem;
    color: #ddd;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

    .code-block::-webkit-scrollbar {
        width: 6px;
    }

    .code-block::-webkit-scrollbar-track {
        background: transparent;
    }

    .code-block::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 6px;
    }

/* Syntax highlighting */
.keyword {
    color: #ff79c6;
}

.comment {
    color: #6272a4;
}

.string {
    color: #f1fa8c;
}

.number {
    color: #bd93f9;
}

.function {
    color: #50fa7b;
}

.operator {
    color: #ff79c6;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(56, 249, 215, 0.9);
    color: #0f0f1e;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(56, 249, 215, 0.4);
}

    .toast.show {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

@keyframes glow {
    from {
        text-shadow: 0 0 5px rgba(79, 172, 254, 0.3), 0 0 10px rgba(79, 172, 254, 0.2);
    }

    to {
        text-shadow: 0 0 10px rgba(79, 172, 254, 0.6), 0 0 20px rgba(79, 172, 254, 0.4), 0 0 30px rgba(79, 172, 254, 0.2);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .controls {
        padding: 1rem;
    }

    .control-group {
        min-width: 120px;
    }

    .code-container {
        width: 95%;
    }

    .code-block {
        font-size: 0.8rem;
        padding: 1rem;
    }
}



/* REMOVE METRONIC LOGIN CARD */
.login.login-5 .login-form {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* REMOVE ANY LOGIN WRAPPER OVERLAY */
.login.login-5 {
    background: transparent !important;
}

    /* STOP METRONIC CENTER PANEL FROM BLOCKING BG */
    .login.login-5 .flex-row-fluid {
        background: transparent !important;
    }

    /* OPTIONAL: move form slightly for aesthetics */
    .login.login-5 .login-form {
        max-width: 420px;
    }

    /* INPUTS FLOAT OVER BACKGROUND */
    .login.login-5 input.form-control {
        background: rgba(255,255,255,0.08) !important;
        border: 1px solid rgba(255,255,255,0.18) !important;
        color: #fff !important;
    }

    /* BUTTON */
    .login.login-5 .btn-primary {
        background: linear-gradient(135deg,#6a5cff,#9a7cff) !important;
        border: none !important;
    }

/* REMOVE ANY BLUR FROM PARENTS */
.login *,
.login *::before,
.login *::after {
    backdrop-filter: none !important;
}


#particleCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.Particlescontainer .flex-root,
.Particlescontainer #kt_login,
.Particlescontainer .login-form {
    position: relative;
    z-index: 5;
}

.Particlescontainer::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1; /* above canvas, below content */
    background: rgba(15, 15, 30, 0.35);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    pointer-events: none;
}
.content {
    display: none;
}

#kt_login {
    min-height: 100vh;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login.login-5 .login-form {
    width: 100%;
    max-width: 450px;
}

@media (max-width: 575.98px) {
    .login.login-5 .login-form {
        max-width: 100%;
        padding: 0 8px;
    }

        .login.login-5 .login-form .py-4 {
            padding-top: 12px !important;
            padding-bottom: 12px !important;
        }

        .login.login-5 .login-form .px-8 {
            padding-left: 16px !important;
            padding-right: 16px !important;
        }