/* ================= BODY & NEBULA ================= */
body {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    background: url('../images/nebula_bg.jpg') center/cover no-repeat fixed;
    color: #66ffcc;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    pointer-events: none;
    z-index: -9;
}

/* ================= HEADER & LOGO ================= */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 60px 20px;
}
header h1 {
    font-size: 3em;
    text-shadow: 0 0 20px #00ff99;
    margin: 0;
}
header .logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}
.subtitle {
    font-size: 1.2em;
    text-align: center;
    color: #00ff99;
    text-shadow: 0 0 10px #00ff99;
    margin: 5px 0 0 0;
}

.tagline {
    font-size: 1.3em;
    margin-top: 10px;
    margin-bottom: 0;
    color: #00ff99;
    font-weight: normal;
}

/* Logo styles */
.logo {
    width: 100px; /* Set the desired width */
    height: auto; /* Keep aspect ratio intact */
    margin-right: 15px; /* Space between the logo and the title */
    vertical-align: middle; /* Align the logo in the middle of the title */
}
/* Top right admin button */
.top-admin {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1000;
}

.top-admin .btn {
    padding: 6px 14px;
    font-size: 0.9em;
}

/* ================= ADMIN BUTTON ================= */
.admin-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    padding: 8px 12px;
    border-radius: 5px;
    background: rgba(0,255,204,0.15);
    border: 1px solid #00ff99;
    color: #00ff99;
    cursor: pointer;
    z-index: 999;
}
.admin-btn:hover { background: #00ff99; color: black; }

/* ================= STARFIELD ================= */
.stars {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -8;
    pointer-events: none;
    overflow: hidden;
}
.star {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    transform-origin: center center;
}

/* ================= BORG CUBE ================= */
.cube-container {
    position: fixed;
    top: 15%;
    right: 5%;
    width: 220px;
    height: 220px;
    perspective: 1200px;
    z-index: -1;
}
.cube {
    width: 220px;
    height: 220px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateTiltCube 15s linear infinite;
    transition: transform 0.3s ease-out;
}
.face {
    position: absolute;
    width: 220px;
    height: 220px;
    background-image: url('../images/borg_texture.jpg');
    background-size: cover;
    background-position: center;
    backface-visibility: hidden;
}
.face::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,255,0,0.02), rgba(0,255,0,0.06), rgba(0,255,0,0.02));
    mix-blend-mode: screen;
    animation: surfacePulse 1.8s infinite alternate;
}
.face::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(0deg, rgba(255,255,255,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridFlicker 1.5s infinite alternate;
}
.face:nth-child(1) { transform: rotateY(0deg) translateZ(110px); }
.face:nth-child(2) { transform: rotateY(90deg) translateZ(110px); }
.face:nth-child(3) { transform: rotateY(180deg) translateZ(110px); }
.face:nth-child(4) { transform: rotateY(-90deg) translateZ(110px); }
.face:nth-child(5) { transform: rotateX(90deg) translateZ(110px); }
.face:nth-child(6) { transform: rotateX(-90deg) translateZ(110px); }

@keyframes rotateTiltCube {
  0%   { transform: rotateX(8deg) rotateY(0deg); }
  25%  { transform: rotateX(-8deg) rotateY(90deg); }
  50%  { transform: rotateX(5deg) rotateY(180deg); }
  75%  { transform: rotateX(-5deg) rotateY(270deg); }
  100% { transform: rotateX(8deg) rotateY(360deg); }
}
.cube:hover { animation: rotateTiltCubeFast 6s linear infinite; }
@keyframes rotateTiltCubeFast {
  0%   { transform: rotateX(10deg) rotateY(0deg); }
  25%  { transform: rotateX(-12deg) rotateY(90deg); }
  50%  { transform: rotateX(8deg) rotateY(180deg); }
  75%  { transform: rotateX(-8deg) rotateY(270deg); }
  100% { transform: rotateX(10deg) rotateY(360deg); }
}
@keyframes gridFlicker { 0% { opacity: 0.03; } 50% { opacity: 0.06; } 100% { opacity: 0.03; } }
@keyframes surfacePulse { 0% { opacity: 0.02; } 50% { opacity: 0.05; } 100% { opacity: 0.02; } }

/* ================= SOCIAL BUTTONS ================= */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* ================= FLEET COMMAND FOCUS ================= */
.fleet-focus {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}
.focus-entry {
    background: rgba(0, 30, 15, 0.7);
    border: 1px solid #00ff99;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,255,153,0.2);
}
.focus-entry strong { color: #00ff99; }

/* ================= UI PANELS & BUTTONS ================= */
.section {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(0,20,10,0.85);
    border: 1px solid rgba(102,255,204,0.4);
    box-shadow: 0 0 20px rgba(102,255,204,0.2);
    border-radius: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    margin: 8px;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    background: rgba(0,255,204,0.15);
    border: 1px solid #00ff99;
    color: #00ff99;
    transition: 0.3s;
}
.btn:hover { background: #00ff99; color: black; }

/* Log entries */
.log-entry { background: #001a10; padding: 15px; margin: 15px 0; border: 1px solid #00ff99; cursor: pointer; }
.log-content { display: none; padding-top: 10px; color: #66ffcc; }

/* Admin page enhancements */
.large-textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    font-size: 1em;
    border-radius: 8px;
    border: 1px solid #00ff99;
    background: rgba(0,20,10,0.85);
    color: #66ffcc;
    resize: vertical;
    margin-bottom: 10px;
}
.large-input {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border-radius: 8px;
    border: 1px solid #00ff99;
    background: rgba(0,20,10,0.85);
    color: #66ffcc;
}

/* Collapsible sections */
.collapsible {
    background: rgba(0,20,10,0.85);
    border: 1px solid #00ff99;
    padding: 12px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1.1em;
    margin-bottom: 10px;
}
.content-collapsible {
    max-height: 0;
    overflow: auto;
    transition: max-height 0.3s ease-out;
    margin-bottom: 15px;
}
.content-collapsible.open { max-height: 800px; }

/* Uniform Save/Delete buttons */
.uniform-btn {
    padding: 8px 18px;
    font-size: 1em;
    background-color: #00ff99;
    border: 2px solid #00ff99;
    color: #001010;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
.uniform-btn:hover {
    background-color: #001010;
    color: #00ff99;
}