/**
 * ARESFIXER — Constellation v9 Styles
 * Extracted from constellation.js for separation of concerns
 * Contains: Fullscreen Container, Warp Suspension Card, Control Panel
 */

/* ====================== CONSTELLATION CONTAINER ====================== */
#constellation-container {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden;
    z-index: -1;
    /* Place securely behind all Epic UI */
    pointer-events: none;
    /* Let clicks pass through */
    background: transparent;
}

#constellation-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ====================== WARP SUSPENSION CARD ====================== */
#warp-suspension-card {
    position: fixed;
    top: 16px;
    right: 16px;
    background: rgba(10, 8, 5, 0.85);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    z-index: 999999;
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    min-width: 240px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .4s, transform .4s;
    pointer-events: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

#warp-suspension-card.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.wsc-header {
    font-weight: 700;
    color: #dc2626;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.wsc-effects {
    margin-bottom: 8px;
}

.wsc-effect {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
}

.wsc-effect .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #dc2626;
    margin-right: 6px;
    opacity: 0.6;
}

.wsc-effect .status {
    color: rgba(255, 255, 255, 0.35);
    font-size: 9px;
}

.wsc-timer-row {
    margin-bottom: 10px;
}

.wsc-timer-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.wsc-secs {
    color: #dc2626;
    font-weight: 700;
}

.wsc-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.wsc-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #ff6666);
    border-radius: 2px;
    transition: width .3s linear;
}

.wsc-buttons {
    display: flex;
    gap: 6px;
}

.wsc-btn {
    flex: 1;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 9px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    font-family: inherit;
    pointer-events: all;
    position: relative;
    z-index: 1;
}

.wsc-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(220, 38, 38, 0.4);
}

.wsc-btn-on {
    border-color: rgba(16, 185, 129, 0.3);
}

.wsc-btn-on:hover {
    background: rgba(16, 185, 129, 0.15);
}

.wsc-btn-off {
    border-color: rgba(220, 38, 38, 0.3);
}

.wsc-btn-off:hover {
    background: rgba(220, 38, 38, 0.15);
}

/* ====================== CONTROL PANEL ====================== */
#cp {
    position: fixed;
    bottom: 80px;
    right: 16px;
    background: rgba(10, 8, 5, 0.96);
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: 12px;
    z-index: 99999;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    width: 280px;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
}

#cp::-webkit-scrollbar {
    width: 3px;
}

#cp::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.3);
    border-radius: 3px;
}

#cp .h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
    position: sticky;
    top: 0;
    background: rgba(10, 8, 5, 0.98);
    z-index: 2;
    border-radius: 12px 12px 0 0;
}

#cp .h .t {
    font-weight: 800;
    color: #dc2626;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

#cp .fps {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
    font-family: monospace;
}

#cp.collapsed .secs,
#cp.collapsed .ft {
    display: none;
}

#cp.collapsed {
    width: auto;
}

#cp .sec {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#cp .sh {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 14px;
    cursor: pointer;
    user-select: none;
    transition: background .2s;
}

#cp .sh:hover {
    background: rgba(220, 38, 38, 0.08);
}

#cp .sl {
    font-weight: 600;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: .8px;
}

#cp .sa {
    color: rgba(255, 255, 255, 0.3);
    font-size: 9px;
    transition: transform .2s;
}

#cp .sec.open .sa {
    transform: rotate(90deg);
}

#cp .sb {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

#cp .sec.open .sb {
    max-height: 800px;
}

#cp .preset {
    padding: 4px 14px 6px;
}

#cp .preset select,
#cp .row select {
    width: 100%;
    background: #0f0c09;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #fff;
    padding: 5px 8px;
    font-size: 10px;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23dc2626'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 22px;
}

#cp select option {
    background: #141210;
    color: #e0d8d0;
}

#cp select option:checked {
    background: #2a1010;
    color: #ff6666;
    font-weight: 700;
}

#cp select option:disabled {
    color: #444;
    font-style: italic;
}

#cp .row select {
    width: auto;
    min-width: 70px;
}

#cp .row {
    display: flex;
    align-items: center;
    padding: 3px 10px 3px 14px;
    gap: 4px;
}

#cp .row .rl {
    flex: 1;
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
}

#cp .row .rst {
    width: 14px;
    height: 14px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-size: 10px;
    padding: 0;
    flex-shrink: 0;
    transition: color .2s;
}

#cp .row .rst:hover {
    color: #dc2626;
}

#cp .si {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

#cp .si .b {
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    user-select: none;
    font-family: monospace;
    font-weight: 700;
    padding: 0;
}

#cp .si .b:first-child {
    border-radius: 3px 0 0 3px;
}

#cp .si .b:last-child {
    border-radius: 0 3px 3px 0;
}

#cp .si .b:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.4);
    color: #fff;
}

#cp .si input[type=number] {
    width: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    border-right: none;
    color: #fff;
    padding: 3px 2px;
    font-size: 11px;
    font-family: monospace;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

#cp .si input::-webkit-outer-spin-button,
#cp .si input::-webkit-inner-spin-button {
    appearance: none;
    -webkit-appearance: none;
}

#cp .si input:focus {
    outline: none;
    border-color: rgba(220, 38, 38, 0.4);
}

#cp .row input[type=color] {
    width: 30px;
    height: 22px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    background: none;
    cursor: pointer;
    padding: 1px;
}

#cp .row .tgl {
    position: relative;
    width: 34px;
    height: 18px;
    flex-shrink: 0;
}

#cp .row .tgl input {
    opacity: 0;
    width: 0;
    height: 0;
}

#cp .row .tgl span {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    cursor: pointer;
    transition: .3s;
}

#cp .row .tgl span:before {
    content: '';
    position: absolute;
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: .3s;
}

#cp .row .tgl input:checked+span {
    background: #dc2626;
}

#cp .row .tgl input:checked+span:before {
    transform: translateX(16px);
}

#cp .ft {
    padding: 8px 14px;
    position: sticky;
    bottom: 0;
    background: rgba(10, 8, 5, 0.98);
    border-top: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 6px;
}

#cp .ft .btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .8px;
    transition: all .2s;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

#cp .ft .btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

#cp .ft .be {
    background: rgba(220, 38, 38, 0.15);
}

.cp-ttip {
    position: fixed;
    background: #dc2626;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    pointer-events: none;
    z-index: 100000;
    opacity: 0;
    transition: opacity .15s;
    white-space: nowrap;
}

.cp-ttip.show {
    opacity: 1;
}

#cp .tabs {
    display: flex;
    position: sticky;
    top: 38px;
    z-index: 2;
    background: rgba(10, 8, 5, 0.98);
    border-bottom: 1px solid rgba(220, 38, 38, 0.15);
}

#cp .tabs .tab {
    flex: 1;
    padding: 7px 0;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all .25s;
    border-bottom: 2px solid transparent;
    user-select: none;
}

#cp .tabs .tab:hover {
    color: rgba(255, 255, 255, 0.6);
    background: rgba(220, 38, 38, 0.05);
}

#cp .tabs .tab.active {
    color: #dc2626;
    border-bottom-color: #dc2626;
    background: rgba(220, 38, 38, 0.06);
}

#cp.collapsed .tabs {
    display: none;
}