/*css and designing is here wow's*/
:root {
        --bg-dark: #050505;
        --bg-panel: #101010;
        --bg-panel-light: #1a1a1a;
        --primary: #3b82f6;
        --primary-glow: rgba(59, 130, 246, 0.5);
        --accent: #8b5cf6;
        --text-main: #f3f4f6;
        --text-muted: #9ca3af;
        --border: #333333;
        --success: #10b981;
        --danger: #ef4444;
        --font-stack: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    *{
        box-sizing: border-box;
        outline: none;
        user-select: none;
    }
    /* lets do it quick yay*/
    body{
        margin:0;
        padding: 0; /* these has become rituals to follow in css for me */
        background-color: var(--bg-dark);
        color: var(--text-main);
        font-family: var(--font-stack);
        height: 100vh;
        width: 100vw;
        display: flex;
        overflow: hidden;
        flex-direction: column;
    }
    /* my goal is to NOT make CSS CODE MESSY */
    @keyframes fadein {
        from {
            opacity: 0;
            transform: translateY(10px);
        } to {
            opacity: 1;
            transform: translateY(0);
        }
    }
     @keyframes pulse {
         0% { 
            box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
         } 
            70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); 
            } 
        }
    @keyframes slideRight {
         from { 
            transform: translateX(-20px); opacity: 0;
         }
          to { 
            transform: translateX(0); opacity: 1; 
        } 
        }
        .app-header{
            height:60px;
            background: rgba(16,16,16,0.8);
            backdrop-filter: blur(10px); /* is this necessary nah but i added for nice ui yay*/
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border);
            z-index: 50;
            padding: 0 25px;
        }
        .logo-area{
            display:flex;
            align-items: center;
            gap: 12px;
        }
        .logo-icon{
            width: 24px;
            height: 24px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            border-radius: 6px;
            box-shadow: 0 0 15px var(--primary-glow);
        }
        .logo-text{
            font-size:18px;
            font-weight: 700;
            letter-spacing: -0.5px;
            background: linear-gradient(90deg, #fff, #bbb);
            -webkit-background-clip:text;
            -webkit-text-fill-color: transparent;
        }
        .header-actions{
            display: flex;
            gap: 10px;
        }
        .btn-small{
            background: var(--bg-panel-light);
            border: 1px solid var(--border);
            color: var(--text-muted);
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
            transition: 0.2s;
        }
        .btn-small:hover{
            background: var(--border);
            color: white;
        }
        .layout-grid{
          display: grid;
          height: calc(100vh - 60px);/* ah using calc for 4th time */
          overflow: hidden;
          grid-template-columns: 320px 1fr 300px;
        }
        .sidebar {
            background: var(--bg-panel);
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }
        .sidebar-section{
            padding: 20px;
            border-bottom: 1px solid var(--border);
            animation: slideRight 0.4s ease-out;
        }
        .section-title{
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            margin-bottom: 15 px;
        }
        .section-title::after{
            content: '';
            flex: 1;
            background: var(--border);
            height: 1px;
        }
        .dist-grid{
            display: grid;
            grid-template-columns: 1fr 1fr;/* i guess this will make it look good*/
            gap: 8px;
        }
        .dist-card{
            background: var(--bg-panel-light);
            cursor: pointer;
            text-align: center;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 12px;
            transition: all 0.2s;
        }
        .dist-card:hover{
            border-color: var(--primary);
            transform: translateY(-2px);
        }
        .dist-card:active{
            background: rgba(59, 130, 246, 0.2);
            border-color: var(--primary);
            color: white;
        }
        .dist-card-icon{
            font-size: 16px;
            margin-bottom: 5px;
            font-family: serif;
            color: var(--accent);
            font-style: italic;
        }
        .dist-name{
            font-size: 11px;
            font-weight: 500;
        }
        .slider-group{
            margin-bottom: 20px;
        }
        .slider-header{
            display: flex;
            margin-bottom: 8px;
            font-size: 13px;
            justify-content: space-between;
            color: #ddd;
        }
        .slider-val{
            font-family: 'Courier New', monospace;
            color: var(--primary);
            background: rgba(59, 130, 246, 0.1);
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 12px;
        }
        input[type=range]{
            -webkit-appearance: none;
            width: 100%;
            background: transparent;
            margin: 0;
        }
        input[type=range]::-webkit-slider-runnable-track {
            width: 100%;
            height: 4px;
            background: var(--border);
            border-radius: 2px;
            transition: 0.2s;
        }
        input[type=range]::-webkit-slider-thumb{
            -webkit-appearance: none;
            height: 16px;
            width: 16px;
            border-radius: 50%;
            background: #fff;
            cursor: pointer;
            margin-top: -6px;
            border: 2px solid var(--primary);
            transition: 0.2s;
        }
        input[type=range]::hover::-webkit-slider-thumb{
            transform: scale(1.1);
            background: var(--primary);
        }
        /* boringgggg */
        .stage-area{
            position: relative;
            background: #080808;
            display: flex;
            flex-direction: column;
        }
        .stage-tabs{
            height: 40px;
            background: var(--bg-panel);
            border-bottom: 1px solid var(--border);
            display: flex;
        }
        .tab{
            padding: 0 20px;
            display: flex;
            align-items: center;
            color: var(--text-muted);
            cursor: pointer;
            font-size: 13px;
            border-right: 1px solid var(--border);
            transition: 0.2s;
        }
        .tab:hover{
            color: white;
            background: var(--bg-panel-light);
        }
        .tab:active{
            color: var(--primary);
            background: #080808;
            border-bottom: 2px solid var(--primary);
        }
        .canvas-container{
            flex: 1;
            overflow: hidden;
            position: relative;
        }
        canvas{
            display: block;
            cursor: crosshair;
        }
        .tooltip{
            position: absolute;
            background: rgba(20, 20, 20, 0.9);
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 8px 12px;
            font-size: 12px;
            pointer-events: none;
            z-index: 10;
            opacity: 0;
            transition: opacity 0.1s;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        }
        .tooltip-row{
            display: flex;
            gap: 15px;
            margin-bottom: 2px;
            justify-content: space-between;
        }
        .tooltip-label{
            color: var(--text-muted);
        }
        .tooltip-val{
            color: var(--primary);
            font-family: monospace;
        }
        .info-panel{
            background: var(--bg-panel);
            border-left: 1px solid var(--border);
            display: flex;
            flex-direction: column;;
        }
        .stat-card{
            background: var(--bg-panel-light);
            padding: 15px;
            margin-bottom: 10px;
            border-radius: 8px;
            border: 1px solid var(--border);
        }
        .stat-big{
            font-size: 24px;
            font-weight: 700;
            font-family: monospace;
            color: white;
        }
        .stat-desc{
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 4px;
        }
        .formula-display{
            font-family: 'Times New Roman', serif;
            font-style: italic; /* i am first time umaking the font italic loll */
            font-size: 16px;
            padding: 15px;
            text-align: center;
            color: #fff;
            line-height: 1.4;
        }
        .calc-box{
            background: rgba(0, 0, 0, 0.2);
            padding: 15px;
            border-radius: 8px;
            margin-top: 10px;
        }
        .calc-input{
            width: 100%;
            background: var(--bg-dark);
            border: 1px solid var(--border);
            padding: 8px;
            color: white;
            border-radius: 4px;
            font-family: monospace;
            margin: 5px 0;
        }
        .calc-res{
            margin-top: 10px;
            text-align: right;
            color: var(--success);
            font-weight: bold;
            font-family: monospace;
        }
        .data-table-view{
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: var(--bg-dark);
            overflow: auto;
            padding: 20px;
            display: none;
        }
        .data-table-view.show{
            display: block;
        }
        table{
            width: 100%;
            border-collapse: collapse;
            font-size: 13px; /* looks good? */
        }
        th{
            text-align: left;
            padding: 10px;
            border-bottom: 2px solid var(--border);
            color: var(--text-muted);
            top: 0;
            position: sticky;
            background: var(--bg-dark);
        }
        td{
            padding: 8px 10px;
            border-bottom: 1px solid var(--border);
            font-family: monospace;
        }
        tr:hover td{
            background: rgba(255, 255, 255, 0.05);
        }
        .toast{
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: var(--primary);
            color: white;
            padding: 12px 24px;
            color: white;
            border-radius: 6px;
            font-size: 14px;
            transform: translateY(100px);
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 100;
        }
        .back{
            display: flex;
            align-items: center;
        }
        a{
            text-decoration: none;
            color: var(--primary);
        }
        /*completed finnally*/

        