/*!*******************************************************************
 * COMPONENTS.CSS - SoulsInfoTech Dimensional UI Components
 * 
 * Copyright (c) 2025 Souls InfoTech. All rights reserved.
 * Author: SoulsInfoTech Development Team
 * Website: https://soulsinfotech.com
 * 
 * This software is the proprietary property of Souls InfoTech.
 * Unauthorized copying, modification, distribution, or use of this
 * software, via any medium, is strictly prohibited without prior
 * written permission from Souls InfoTech.
 * 
 * Licensed under proprietary license.
 * For licensing inquiries, contact: info@soulsinfotech.com
 * 
 * Description: Panels, HUD, modals, 3D widgets, buttons, inputs,
 * and all UI components for the SoulsInfoTech Dimensional UI.
 * 
 * Version: 1.0.0
 * Last Updated: 2025-11-28
 *******************************************************************!*/

/* ========== BUTTONS ========== */
.btn {
    padding: 12px 25px;
    margin: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.25s;
    font-size: 14px;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 0 8px var(--secondary);
}

.btn-primary:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(39, 247, 215, 0.3);
}

.btn-outline:hover {
    background: var(--accent);
    color: #000;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
    border: 1px solid rgba(39, 247, 215, 0.25);
}

.btn-ghost:hover {
    background: rgba(39, 247, 215, 0.2);
    color: #000;
}

.btn-holo {
    padding: 14px 28px;
    background: var(--secondary);
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    box-shadow:
        0 0 10px var(--secondary),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

.btn-holo:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent);
}

/* ========== INPUT FIELDS ========== */
.input {
    width: 300px;
    padding: 12px 15px;
    background: var(--glass);
    border: 1px solid rgba(39, 247, 215, 0.3);
    border-radius: 6px;
    color: var(--accent);
    outline: none;
    margin-top: 10px;
    font-size: 15px;
    transition: 0.3s;
}

.input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* ========== TOGGLE SWITCH ========== */
.toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 26px;
    margin: 10px;
}

.toggle input {
    display: none;
}

.slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(39, 247, 215, 0.3);
    cursor: pointer;
    transition: 0.4s;
}

.slider:before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 2px;
    top: 1.5px;
    background: var(--secondary);
    border-radius: 50%;
    transition: 0.4s;
}

input:checked+.slider {
    background: rgba(39, 247, 215, 0.3);
}

input:checked+.slider:before {
    transform: translateX(32px);
    background: var(--accent);
}

/* ========== ALERTS ========== */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid;
    background: rgba(255, 255, 255, 0.06);
}

.alert-info {
    border-color: var(--accent);
    color: var(--accent);
}

.alert-error {
    border-color: var(--secondary);
    color: var(--secondary);
}

.alert-success {
    border-color: #1aff75;
    color: #1aff75;
}

/* ========== BADGES (CHIPS) ========== */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    margin: 5px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
}

.badge-accent {
    background: var(--accent);
    color: #000;
}

.badge-danger {
    background: var(--secondary);
    color: #fff;
}

.badge-glass {
    background: var(--glass);
    border: 1px solid rgba(39, 247, 215, 0.3);
    color: var(--accent);
}

/* ========== CARDS ========== */
.card {
    width: 300px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(39, 247, 215, 0.2);
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 0 20px rgba(39, 247, 215, 0.12);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(39, 247, 215, 0.25);
}

.card h3 {
    margin-top: 0;
    letter-spacing: 2px;
    text-shadow: 0 0 5px var(--accent);
}

/* ========== TABS ========== */
.tabs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    border: 1px solid rgba(39, 247, 215, 0.2);
    transition: 0.25s;
}

.tab.active {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent);
}

.tab:hover:not(.active) {
    background: rgba(39, 247, 215, 0.2);
}

/* ========== TOOLTIP ========== */
.tooltip {
    position: relative;
    display: inline-block;
    margin: 20px;
    cursor: pointer;
    color: var(--accent);
}

.tooltip .tiptext {
    visibility: hidden;
    width: 160px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--accent);
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid rgba(39, 247, 215, 0.3);
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
}

.tooltip:hover .tiptext {
    visibility: visible;
    box-shadow: 0 0 20px var(--accent);
}

/* ========== HOLOGRAPHIC PANELS ========== */
.panel {
    max-width: 1100px;
    margin: 50px auto;
    padding: 40px;
    background: var(--panel-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    box-shadow:
        0 0 25px rgba(39, 247, 215, 0.14),
        inset 0 0 25px rgba(0, 0, 0, 0.5);
}

.holo-block {
    background: var(--glass);
    border: 1px solid rgba(39, 247, 215, 0.3);
    padding: 20px;
    margin-top: 25px;
    border-radius: 6px;
    box-shadow:
        0 0 12px rgba(39, 247, 215, 0.2),
        inset 0 0 15px rgba(39, 247, 215, 0.1);
}

/* ========== USER HUD / AVATAR ========== */
.hud {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.hud .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.hud .status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
    animation: pulse 2s infinite;
}

.icon-hud {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 6px;
    margin: 0 6px;
    box-shadow: 0 0 8px var(--accent);
    cursor: pointer;
    transition: 0.2s;
}

.icon-hud:hover {
    background: var(--secondary);
    box-shadow: 0 0 15px var(--secondary);
}

/* ========== MODAL COMPONENTS ========== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-backdrop.active {
    display: flex;
}

.modal {
    width: 450px;
    max-width: 90%;
    background: var(--glass);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(39, 247, 215, 0.3);
    box-shadow: 0 0 25px rgba(39, 247, 215, 0.2);
    text-align: center;
    position: relative;
}

.modal h2 {
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.modal p {
    margin: 15px 0;
}

.modal .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 25px;
    height: 25px;
    background: var(--secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
    line-height: 25px;
    text-align: center;
    transition: 0.3s;
}

.modal .close-btn:hover {
    background: var(--accent);
    color: #000;
}

/* ========== TERMINAL PROMPT ========== */
.terminal-prompt {
    width: 100%;
    max-width: 600px;
    background: #020202;
    border: 1px solid rgba(39, 247, 215, 0.25);
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    box-shadow: inset 0 0 20px rgba(39, 247, 215, 0.1);
    margin: 25px 0;
}

.terminal-prompt .line {
    margin: 6px 0;
    color: var(--accent);
}

/* ========== HOLOGRAPHIC OVERLAY ========== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(39, 247, 215, 0.15), rgba(216, 8, 40, 0.15));
    backdrop-filter: blur(10px);
    display: none;
    z-index: 998;
    pointer-events: none;
}

.overlay.active {
    display: block;
}