/* Sector 2: Kuat Yards (Enhanced Imperial Theme) */

/* Page Header & Footer */
.page-header {
    background: #050505;
    border-bottom: 2px solid var(--primary-color);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-header);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

.brand-logo {
    color: var(--primary-color);
    font-size: 1.2em;
    letter-spacing: 2px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo::before {
    content: "◈";
    /* Imperial logo placeholder symbol */
    font-size: 1.5em;
}

.top-nav {
    font-family: var(--font-mono);
    font-size: 0.8em;
    color: #888;
}

.page-footer {
    background: #050505;
    border-top: 1px solid #333;
    padding: 10px;
    text-align: center;
    font-size: 0.7em;
    color: #444;
    font-family: var(--font-mono);
    position: fixed;
    bottom: 0;
    width: 100%;
}

.container {
    max-width: 800px;
    margin: 40px auto 80px auto;
    /* Added bottom margin for footer */
    padding: 20px;
}

/* Standard Imperial Panel with Tech Grid Background */
.panel {
    background: #111;
    background-image:
        linear-gradient(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;
    border: 1px solid #444;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    border-top: 5px solid var(--primary-color);
}

/* Decorative Corner Accents */
.panel::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 20px;
    height: 5px;
    background: var(--accent-color);
}

.panel::after {
    content: "";
    position: absolute;
    top: -5px;
    right: 0;
    width: 20px;
    height: 5px;
    background: var(--accent-color);
}

/* Header Styling (Panel Internal) */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.header-title {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.5em;
    letter-spacing: 2px;
}

.header-meta {
    font-family: var(--font-mono);
    color: #666;
    font-size: 0.8em;
    text-align: right;
}

/* Standard Buttons */
.btn {
    background: #333;
    color: #fff;
    border: 1px solid #666;
    padding: 10px 25px;
    font-family: var(--font-header);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1em;
}

.btn:hover {
    background: #444;
    border-color: #888;
}

.btn-primary {
    background: #660000;
    /* Imperial Red */
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #990000;
}

/* Form Inputs */
input[type="text"] {
    background: #000;
    border: 1px solid #555;
    color: #fff;
    padding: 12px;
    width: 70%;
    font-family: var(--font-mono);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1em;
    letter-spacing: 1px;
}

input[type="text"]:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.3);
}

/* System Log Box */
.terminal-log {
    background: #000;
    border: 1px solid #333;
    padding: 15px;
    font-family: var(--font-mono);
    font-size: 0.8em;
    color: #999;
    text-align: left;
    height: 100px;
    overflow-y: auto;
    margin-top: 30px;
}

.log-entry {
    margin-bottom: 5px;
}

.log-entry.success {
    color: #0f0;
}

.log-entry.error {
    color: #f00;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Footer Status Line */
.status-line {
    border-top: 1px solid #333;
    padding-top: 15px;
    margin-top: 20px;
    font-size: 0.8em;
    color: #666;
    display: flex;
    justify-content: space-between;
}

/* --- Added for Trash Compactor Theme --- */

/* Pressure Gauge */
.pressure-container {
    width: 80%;
    margin: 20px auto;
    text-align: left;
}

.pressure-bar-bg {
    height: 30px;
    background: #333;
    border: 2px solid #555;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.pressure-bar-fill {
    height: 100%;
    width: 95%; /* Default to critical */
    background: linear-gradient(90deg, #0f0 0%, #ff0 60%, #f00 100%);
    transition: width 0.5s ease-out;
}

/* Animations */
.blink-danger {
    animation: blink-red 1s infinite;
    color: #f00;
    font-weight: bold;
}

.blink-safe {
    animation: blink-green 1s infinite;
    color: #0f0;
    font-weight: bold;
}

@keyframes blink-red {
    50% { opacity: 0.5; }
}

@keyframes blink-green {
    50% { opacity: 0.5; }
}

@keyframes pulse-critical {
    0% { width: 94%; }
    100% { width: 96%; }
}