/* Tech-Noir / Cyberpunk Shared Styles for Master Admin */
/* Based on login.html aesthetic */

@import url("/static/company_site/css/fonts.60b065829835.css");  /* self-hosted */

:root {
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-red: #ff003c;
    --neon-green: #39ff14;
    --neon-orange: #ffaa00;
    --dark-bg: #050510;
    --panel-bg: rgba(10, 15, 30, 0.85);
    --grid-color: rgba(0, 243, 255, 0.1);
    --border-color: rgba(0, 243, 255, 0.3);
}

/* Override main content background with grid pattern */
.main-content.tech-noir {
    background-color: var(--dark-bg) !important;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px) !important;
    background-size: 30px 30px !important;
}

/* Scanline overlay effect */
.main-content.tech-noir::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 1;
}

.tech-noir .content-area {
    position: relative;
    z-index: 2;
}

/* Tech Card - Angular container with clip-path */
.tech-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    position: relative;
    padding: 2.5rem 2rem;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
    backdrop-filter: blur(5px);
    clip-path: polygon(
        0 0, 
        100% 0, 
        100% calc(100% - 20px), 
        calc(100% - 20px) 100%, 
        0 100%
    );
}

/* Decorative corner elements */
.tech-card::before, .tech-card::after {
    content: '';
    position: absolute;
    width: 10px; height: 10px;
    transition: all 0.3s ease;
}
.tech-card::before {
    top: -1px; left: -1px;
    border-top: 2px solid var(--neon-blue);
    border-left: 2px solid var(--neon-blue);
}
.tech-card::after {
    bottom: -1px; right: -1px;
    border-bottom: 2px solid var(--neon-blue);
    border-right: 2px solid var(--neon-blue);
}

/* System Title */
.system-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.5rem;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #fff, var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

/* Tech Table */
.tech-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Rajdhani', sans-serif;
}

.tech-table thead th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--neon-blue);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 15px;
    border-bottom: 2px solid var(--border-color);
    font-family: 'Share Tech Mono', monospace;
}

.tech-table tbody td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ccc;
}

.tech-table tbody tr:hover td {
    background: rgba(0, 243, 255, 0.05);
}

/* Status Badges */
.status-badge {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    padding: 4px 10px;
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.status-active {
    color: var(--neon-green);
    border-color: var(--neon-green);
    background: rgba(57, 255, 20, 0.1);
}

.status-inactive {
    color: var(--neon-red);
    border-color: var(--neon-red);
    background: rgba(255, 0, 60, 0.1);
}

.status-pending {
    color: var(--neon-orange);
    border-color: var(--neon-orange);
    background: rgba(255, 170, 0, 0.1);
}

/* Tech Buttons */
.btn-tech {
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    padding: 10px 20px;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Form Controls */
.tech-noir .form-control,
.tech-noir .form-select,
.tech-noir textarea {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid #334 !important;
    color: var(--neon-blue) !important;
    font-family: 'Share Tech Mono', monospace !important;
    border-radius: 0 !important;
}

.tech-noir .form-control:focus,
.tech-noir .form-select:focus,
.tech-noir textarea:focus {
    background: rgba(0, 243, 255, 0.05) !important;
    border-color: var(--neon-blue) !important;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2) !important;
    color: #fff !important;
}

/* Loading Bar Animation */
.loading-bar {
    height: 2px;
    width: 100%;
    background: #111;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; height: 100%; width: 50%;
    background: var(--neon-blue);
    animation: load 2s infinite linear;
}

@keyframes load {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Pulse Animation */
@keyframes pulse {
    0% { text-shadow: 0 0 10px var(--neon-blue); opacity: 1; }
    50% { text-shadow: 0 0 20px var(--neon-blue), 0 0 30px var(--neon-blue); opacity: 0.8; }
    100% { text-shadow: 0 0 10px var(--neon-blue); opacity: 1; }
}

.tech-icon-pulse {
    animation: pulse 2s infinite;
}

/* Stat Cards */
.stat-card-tech {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
}

.stat-card-tech::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 3px; height: 100%;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

.stat-title-tech {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value-tech {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--neon-blue);
    margin-top: 0.5rem;
}

/* Monospace text */
.mono {
    font-family: 'Share Tech Mono', monospace;
}
