/**
 * Terminal-themed Panel Components
 * Reusable panel styles with phosphor green accents and CRT effects
 * Panels represent terminal windows/containers in the retro computing aesthetic
 */

/* Base Panel Styles */
.panel {
    background: #0d120d !important;
    border: 2px solid rgba(0, 255, 65, 0.4) !important;
    border-radius: 0 !important;
    color: var(--phosphor-green) !important;
    margin-bottom: 2rem;
    box-shadow:
        0 0 15px rgba(0, 255, 65, 0.1),
        inset 0 0 30px rgba(0, 255, 65, 0.03) !important;
    transition: var(--transition-slow) !important;
}

.panel:hover {
    box-shadow: var(--box-shadow-glow-strong) !important;
    border-color: var(--phosphor-green) !important;
}

/* Panel Header (like terminal window title bar) */
.panel-header {
    background: #0a0e0a !important;
    border-bottom: 2px solid rgba(0, 255, 65, 0.4) !important;
    color: var(--phosphor-green) !important;
    font-weight: bold !important;
    letter-spacing: 0.1em !important;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
    padding: 1rem 1.5rem;
}

.panel-title,
.panel-title-centered {
    color: var(--phosphor-green);
    font-family: "Courier New", Courier, monospace;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Add terminal-style brackets around centered titles */
.panel-title-centered::before {
    content: "[ ";
    color: var(--phosphor-green);
    letter-spacing: normal;
}

.panel-title-centered::after {
    content: " ]";
    color: var(--phosphor-green);
    letter-spacing: normal;
}

.panel-title-centered {
    text-align: center;
    flex: 1;
}

/* Header Layouts */
.header-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.header-left,
.header-right {
    flex: 1;
}

.header-right {
    text-align: right;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

/* Panel Body */
.panel-body {
    background: linear-gradient(180deg, rgba(0, 255, 65, 0.03), transparent) #0d120d !important;
    color: var(--text-secondary) !important;
    padding: 1.5rem;
    font-family: "Courier New", Courier, monospace;
    font-size: var(--font-size-base);
}

/* Panel Footer */
.panel-footer {
    background: rgba(0, 0, 0, 0.3) !important;
    border-top: 1px solid var(--border-medium) !important;
    padding: 1rem 1.5rem;
}

/* Panel Variants */
.panel-info {
    border-color: rgba(0, 174, 255, 0.4);
}

.panel-info:hover {
    border-color: rgba(0, 174, 255, 0.6);
    box-shadow: 0 0 30px rgba(0, 174, 255, 0.2);
}

.panel-warning {
    border-color: rgba(255, 193, 7, 0.4);
}

.panel-warning:hover {
    border-color: rgba(255, 193, 7, 0.6);
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.2);
}

.panel-danger {
    border-color: rgba(220, 53, 69, 0.4);
}

.panel-danger:hover {
    border-color: rgba(220, 53, 69, 0.6);
    box-shadow: 0 0 30px rgba(220, 53, 69, 0.2);
}

/* Mini Panels (for dashboard widgets) */
.panel-mini {
    margin-bottom: 1rem;
}

.panel-mini .panel-header {
    padding: 0.75rem 1rem;
}

.panel-mini .panel-title {
    font-size: 0.95rem;
}

.panel-mini .panel-body {
    padding: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-flex-container {
        gap: 0.5rem;
    }

    .panel-title-centered {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

    .header-left,
    .header-right {
        width: auto;
    }

    .header-actions {
        justify-content: flex-end;
    }
}