@font-face {
    font-family: "Fixedsys";
    src: local("Fixedsys Excelsior 3.01"), local("Fixedsys");
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: none !important;
    -moz-osx-font-smoothing: unset !important;
    text-rendering: optimizeSpeed !important;
}

body {
    font-family: "Fixedsys", "Terminal", "Courier New", "Courier", monospace;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0px;
    background: #111315;
    color: #e4e7eb;
    overflow: hidden;
    user-select: none;
}

/* Marketing Page Enhancements */
.status-chip-value.green {
    color: #10b981;
}

.status-chip-value.yellow {
    color: #f59e0b;
}

.status-chip-value.red {
    color: #ef4444;
}

button:hover {
    opacity: 0.9;
    cursor: pointer;
    transform: translateY(-1px);
    transition: all 0.2s;
}

.toolbar-stats button {
    transition: all 0.2s;
}

.toolbar-stats button:hover {
    background: rgba(16, 185, 129, 0.1);
}

.panel-content a {
    color: #10b981;
    text-decoration: underline;
}

.panel-content a:hover {
    color: #059669;
}

/* Pulse Animation for Status Indicator */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-indicator {
    animation: pulse 2s ease-in-out infinite;
}

/* Gradient Text Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-text {
    background: linear-gradient(90deg, #10b981, #06b6d4, #3b82f6, #10b981);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

/* Hover Effects for Cards */
.panel-content > div:hover {
    transform: translateY(-2px);
    transition: transform 0.2s;
}

/* Icon Spin on Hover */
.toolbar-btn:hover .toolbar-icon,
.menu-item:hover {
    transform: scale(1.1);
    transition: transform 0.2s;
}

/* Glow Effect for Primary Buttons */
button:active {
    transform: scale(0.98);
}

.panel-content button:hover {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Border Glow Animation */
@keyframes border-glow {
    0%, 100% {
        border-color: #10b981;
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.3);
    }
    50% {
        border-color: #06b6d4;
        box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
    }
}

/* Fade in animation for panels */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel {
    animation: fadeIn 0.3s ease-in-out;
}

/* Social Icon Hover Effects */
[data-lucide="linkedin"]:hover,
[data-lucide="github"]:hover,
[data-lucide="dribbble"]:hover,
[data-lucide="mail"]:hover {
    transform: scale(1.3);
    transition: transform 0.2s;
}

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-chip-value {
    animation: countUp 0.5s ease-out;
}

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111315;
    z-index: 1000;
}

.login-screen.hidden {
    display: none;
}

.login-container {
    background: #23272b;
    border: 1px solid #374151;
    border-radius: 2px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.login-container h1 {
    margin: 0 0 24px 0;
    font-size: 14px;
    font-weight: bold;
    color: #e5e7eb;
    text-align: center;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #4b5563;
    border-radius: 2px;
    background: #2b3036;
    color: #e4e7eb;
    font-size: 12px;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
}

.login-btn {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #4b5563;
    border-radius: 2px;
    background: #059669;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    margin-top: 8px;
}

.login-btn:hover {
    background: #047857;
}

.error-message {
    margin-top: 12px;
    padding: 8px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    border-radius: 2px;
    color: #ef4444;
    font-size: 11px;
    text-align: center;
}

.error-message.hidden {
    display: none;
}

/* Top Title Bar */
.title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 32px;
    background: #1e2124;
    border-bottom: 1px solid #000;
    padding: 0 8px;
}

.title-bar-left {
    display: flex;
    align-items: center;
    height: 100%;
}

.title-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: #9ca3af;
    flex-shrink: 0;
}

.title-text {
    font-size: 12px;
    font-weight: bold;
    color: #d1d5db;
    margin-right: 32px;
    letter-spacing: 0.5px;
}

.menu-bar {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 4px;
}

.menu-item {
    padding: 0 12px;
    font-size: 12px;
    color: #9ca3af;
    background: transparent;
    border: none;
    cursor: pointer;
    height: 100%;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
}

.menu-item:hover {
    background: #374151;
    color: #10b981;
}

.menu-item.active {
    color: #10b981;
    background: #374151;
    font-weight: bold;
}

.menu-item i {
    vertical-align: middle;
}

.title-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.date-time {
    font-size: 12px;
    color: #9ca3af;
}

.time-display {
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background: #000;
    padding: 2px 8px;
    border-radius: 2px;
    border: 1px solid #374151;
}

.window-controls {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}

.window-btn {
    width: 20px;
    height: 20px;
    padding: 2px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    font-size: 10px;
}

.window-btn:hover {
    background: #374151;
}

.window-btn.close {
    background: #dc2626;
    color: #fff;
}

.window-btn.close:hover {
    background: #b91c1c;
}

/* Toolbar */
.toolbar {
    display: flex;
    align-items: center;
    height: 64px;
    background: #23272b;
    border-bottom: 1px solid #000;
    padding: 4px 4px;
    gap: 4px;
}

.toolbar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 100%;
    padding: 4px 8px;
    border-right: 1px solid #374151;
    color: #d1d5db;
    background: transparent;
    border-left: none;
    border-top: none;
    border-bottom: none;
    cursor: pointer;
    font-family: inherit;
    position: relative;
}

.toolbar-btn:hover {
    background: rgba(55, 65, 81, 0.5);
}

.toolbar-btn.active {
    background: rgba(55, 65, 81, 0.7);
    color: #fff;
}

.toolbar-icon {
    width: 18px;
    height: 18px;
    margin-bottom: 4px;
    color: #9ca3af;
    flex-shrink: 0;
}

.toolbar-btn.active .toolbar-icon,
.toolbar-btn:hover .toolbar-icon {
    color: #fff;
}

.toolbar-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toolbar-btn:hover .toolbar-label {
    color: #fff;
}

.toolbar-divider {
    height: 100%;
    width: 1px;
    background: #374151;
    margin: 0 8px;
}

.toolbar-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.stat-btn {
    display: flex;
    align-items: center;
    padding: 4px 16px;
    background: #2b3036;
    border: 1px solid #4b5563;
    border-radius: 2px;
    font-size: 12px;
    color: #d1d5db;
    cursor: pointer;
    font-family: inherit;
    gap: 8px;
}

.stat-btn:hover {
    background: #374151;
}

.stat-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Command Bar */
.command-bar {
    background: #1e2124;
    padding: 4px;
    border-bottom: 1px solid #000;
}

.command-row {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.command-label {
    font-size: 12px;
    font-weight: bold;
    color: #9ca3af;
    width: 80px;
    text-align: right;
    margin-right: 8px;
}

.command-input {
    flex: 1;
    background: #2b3036;
    border: 1px solid #4b5563;
    border-radius: 2px;
    padding: 4px 8px;
    font-size: 12px;
    color: #e4e7eb;
    font-family: inherit;
}

.command-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.command-help {
    width: 32px;
    height: 32px;
    padding: 4px;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 2px;
    margin-left: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.command-help:hover {
    background: #4b5563;
}

.command-usage {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    padding-left: 88px;
}

/* System Status Bar */
.status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 24px;
    background: #15171a;
    border-top: 1px solid #1f2937;
    border-bottom: 1px solid #1f2937;
    padding: 0 8px;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 0;
}

.status-label {
    font-size: 10px;
    font-weight: bold;
    color: #9ca3af;
    margin-right: 8px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    margin-right: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-online {
    font-size: 10px;
    font-weight: bold;
    color: #10b981;
    letter-spacing: 1px;
}

.status-chip {
    display: flex;
    align-items: center;
    font-size: 12px;
    padding: 0 12px;
    border-left: 1px solid #374151;
}

.status-chip-label {
    font-weight: bold;
    color: #9ca3af;
    margin-right: 4px;
}

.status-chip-value {
    font-weight: bold;
}

.status-chip-value.red {
    color: #ef4444;
}

.status-chip-value.green {
    color: #10b981;
}

.status-chip-value.yellow {
    color: #f59e0b;
}

.status-right {
    display: flex;
    align-items: center;
    font-size: 10px;
    color: #6b7280;
}

/* Main Content */
.main-content {
    flex: 1;
    background: #16191c;
    padding: 4px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Panel */
.panel {
    display: flex;
    flex-direction: column;
    background: #23272b;
    border: 1px solid #374151;
    border-radius: 2px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1f2226;
    padding: 4px 8px;
    border-bottom: 1px solid #374151;
    height: 32px;
}

.panel-title {
    font-size: 12px;
    font-weight: bold;
    color: #e5e7eb;
    display: flex;
    align-items: center;
}

.panel-count {
    margin-left: 4px;
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.panel-btn {
    padding: 2px 8px;
    background: #059669;
    border: 1px solid #4b5563;
    border-radius: 2px;
    font-size: 10px;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
}

.panel-btn:hover {
    background: #047857;
}

.panel-btn.secondary {
    background: #374151;
    color: #d1d5db;
}

.panel-btn.secondary:hover {
    background: #4b5563;
}

.panel-close {
    width: 14px;
    height: 14px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.panel-close:hover {
    color: #fff;
}

.panel-content {
    padding: 8px;
    font-size: 12px;
}

/* Table */
.table-header {
    display: flex;
    background: #1a1d21;
    border-bottom: 1px solid #374151;
    font-size: 10px;
    font-weight: bold;
    color: #d1d5db;
    text-transform: uppercase;
    padding: 4px 0;
}

.table-col {
    padding: 0 8px;
    border-right: 1px solid rgba(55, 65, 81, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-col:last-child {
    border-right: none;
}

.table-row {
    display: flex;
    font-size: 11px;
    font-weight: 500;
    border-bottom: 1px solid #1f2937;
    background: #23272b;
    color: #d1d5db;
    padding: 4px 0;
    cursor: pointer;
}

.table-row:hover {
    background: #2c3136;
}

.table-row.alert {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

.table-cell {
    padding: 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-right: 1px solid rgba(55, 65, 81, 0.3);
}

.table-cell:last-child {
    border-right: none;
}

.table-body {
    max-height: 400px;
    overflow-y: auto;
}

.table-body::-webkit-scrollbar {
    width: 8px;
}

.table-body::-webkit-scrollbar-track {
    background: #23272b;
}

.table-body::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}

/* Footer */
.footer {
    height: 24px;
    background: #1a1d21;
    border-top: 1px solid #374151;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 10px;
    color: #9ca3af;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-divider {
    border-left: 1px solid #374151;
    padding-left: 16px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-indicator {
    background: #2b3036;
    border: 1px solid #374151;
    padding: 2px 4px;
    border-radius: 2px;
    color: #6b7280;
}

/* Layout */
.admin-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.admin-container.hidden {
    display: none;
}

/* Widths for table columns */
.w-8 { width: 32px; }
.w-12 { width: 48px; }
.w-16 { width: 64px; }
.w-20 { width: 80px; }
.w-24 { width: 96px; }
.w-32 { width: 128px; }
.w-64 { width: 256px; }
.flex-1 { flex: 1; }

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-backdrop.hidden {
    display: none !important;
}

.modal {
    width: 440px;
    max-width: 90vw;
    background: #23272b;
    border: 1px solid #374151;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 8px 12px;
    border-bottom: 1px solid #374151;
    background: #1f2226;
}

.modal-header h2 {
    margin: 0;
    font-size: 12px;
    font-weight: bold;
    color: #e5e7eb;
}

.modal-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-body p {
    margin: 0;
    color: #9ca3af;
    font-size: 11px;
}

.modal-body textarea,
.modal-body input {
    resize: none;
    border-radius: 2px;
    border: 1px solid #4b5563;
    padding: 6px 8px;
    background: #2b3036;
    color: #e4e7eb;
    font-family: inherit;
    font-size: 12px;
}

.modal-body textarea:focus,
.modal-body input:focus {
    outline: none;
    border-color: #3b82f6;
}

.modal-body textarea::placeholder,
.modal-body input::placeholder {
    color: #6b7280;
}

.modal-duration {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-duration.hidden {
    display: none;
}

.modal-duration label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: bold;
}

.modal-footer {
    padding: 8px 12px;
    border-top: 1px solid #374151;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: #1f2226;
}

.modal-footer button {
    border-radius: 2px;
    border: 1px solid #4b5563;
    padding: 4px 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 11px;
    font-family: inherit;
}

.modal-footer button:not(.primary) {
    background: #374151;
    color: #d1d5db;
}

.modal-footer button:not(.primary):hover {
    background: #4b5563;
}

.modal-footer button.primary {
    background: #059669;
    color: #fff;
}

.modal-footer button.primary:hover {
    background: #047857;
}
