/* True LCARS Star Trek TNG Palette & Styles */
:root {
    /* LCARS Core Panel Colors based on references */
    --lcars-blue: #6A8BB0;     /* Teal/Blue-Grey */
    --lcars-gold: #E4A35B;     /* Pale Gold/Tan */
    --lcars-mauve: #B686AC;    /* Pale Mauve/Purple */
    --lcars-orange: #C76231;   /* Burnt Orange */
    
    /* Display Colors */
    --display-bg: #000000;     /* Pure Black for screens */
    --text-light: #FF9933;     /* Standard LCARS text is often orange/yellow, but we'll use a mix */
    
    /* Bridge Environment Colors */
    --bridge-tan: #D1BA9C;     /* The beige/tan of the bridge bulkheads */
    --bridge-red: #803038;     /* The maroon carpet */
    --bridge-wood: #5C3A21;    /* The wooden arch */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* Create the bridge environment background */
    background: linear-gradient(to bottom, var(--bridge-tan) 0%, var(--bridge-tan) 75%, var(--bridge-red) 75%, var(--bridge-red) 100%);
    background-attachment: fixed;
    font-family: 'Antonio', sans-serif;
    padding: 3vw;
    min-height: 100vh;
}

/* Typography Classes */
.text-center { text-align: center; }
.text-black { color: #000 !important; }
.lcars-light-text { color: #E0E0E0; font-family: sans-serif; font-size: 1rem; letter-spacing: 0.5px; }
.lcars-blue-text { color: var(--lcars-blue); }
.lcars-gold-text { color: var(--lcars-gold); }
.lcars-mauve-text { color: var(--lcars-mauve); }
.lcars-orange-text { color: var(--lcars-orange); }

h1, h2, h3, label, button, .lcars-header-text, .lcars-divider-text, .lcars-sidebar-block {
    text-transform: uppercase;
    font-weight: 400;
}

h1 { font-size: 3.5rem; line-height: 1; margin-bottom: 0.5rem; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.subtitle { font-size: 1.5rem; margin-bottom: 2rem; }

/* The Black Console Screen */
.lcars-console {
    background-color: var(--display-bg);
    border-radius: 40px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 10px 30px rgba(0,0,0,0.6);
    border: 8px solid var(--bridge-wood); /* Mimics the wooden tactical arch enclosing the screen */
}

/* LCARS Layout System */
.lcars-layout {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

/* Left Sidebar Graphic */
.lcars-sidebar {
    display: flex;
    flex-direction: column;
    width: 120px;
    gap: 5px;
}

.lcars-elbow-top-left {
    height: 60px;
    border-radius: 30px 0 0 0;
    margin-bottom: 5px;
}

.lcars-elbow-bottom-left {
    height: 100%;
    min-height: 60px;
    border-radius: 0 0 0 30px;
    margin-top: 5px;
}

.lcars-sidebar-block {
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 10px;
    font-size: 1.2rem;
    color: #000;
}

/* Main Content Area */
.lcars-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Sweeping Top Header */
.lcars-header {
    height: 40px;
    border-radius: 0 20px 20px 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 20px;
    margin-bottom: 20px;
}

.lcars-header-text {
    color: #000;
    font-size: 1.5rem;
}

/* Horizontal Dividers */
.lcars-divider {
    height: 25px;
    border-radius: 12.5px;
    margin: 30px 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 15px;
}

.lcars-divider-text {
    color: #000;
    font-size: 1.2rem;
}

.content-area {
    padding: 0 20px 20px 20px;
}

/* Color Background Helpers */
.lcars-blue-bg { background-color: var(--lcars-blue); }
.lcars-gold-bg { background-color: var(--lcars-gold); }
.lcars-mauve-bg { background-color: var(--lcars-mauve); }
.lcars-orange-bg { background-color: var(--lcars-orange); }

/* Buttons */
.btn-lcars {
    cursor: pointer;
    border: none;
    border-radius: 20px; /* Classic pill shape */
    padding: 10px 30px;
    font-size: 1.5rem;
    font-family: 'Antonio', sans-serif;
    transition: opacity 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.btn-lcars:hover:not(:disabled) {
    opacity: 0.8;
}

.btn-lcars:disabled {
    background-color: #333 !important;
    cursor: not-allowed;
    color: #666 !important;
}

.btn-full {
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

input[type="text"], select {
    width: 100%;
    padding: 12px;
    background-color: #111;
    color: var(--lcars-blue);
    border: 2px solid var(--lcars-blue);
    border-radius: 20px; /* Pill shaped inputs */
    font-family: sans-serif;
    font-size: 1rem;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--lcars-gold);
}

/* Grid Layouts */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.registry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.registry-item {
    border: 2px solid var(--lcars-blue);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.registry-item.claimed {
    opacity: 0.4;
    border-color: #333;
}

.error { color: var(--lcars-orange); margin-top: 10px; font-size: 1.2rem; }
.success-message { font-size: 1.5rem; margin-top: 15px; text-align: center; }
.manual-entry { margin-top: 30px; }
.manual-entry input { width: auto; display: inline-block; margin-right: 10px; margin-bottom: 10px; }

@media (max-width: 768px) {
    .lcars-sidebar { display: none; /* Simplify on mobile by hiding the massive graphic sidebar */ }
    .details-grid { grid-template-columns: 1fr; }
    .manual-entry input { width: 100%; }
    .lcars-header { border-radius: 20px; justify-content: center; padding: 0; }
    body { padding: 10px; }
}
