/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&family=Roboto+Mono:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --accent-color: #f85427;
    --text-gray: #bababa;
    --background: #0d0d0d;
    --grid: #141414;
    --card-background: #131313;
    --card-border: #2c2c2c;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --border-width: 2px;
    --corner-size: 15px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Utility classes */
.unselectable {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.accent-text {
    color: var(--accent-color);
}

/* Standard Page Layout */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background);
    background-image: 
        linear-gradient(var(--grid) 2px, transparent 2px),
        linear-gradient(90deg, var(--grid) 2px, transparent 2px);
    background-size: 40px 40px;
    background-position: center center;
    min-height: 100vh;
    color: white;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.page-header {
    height: 40px;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

/* Dashboard header override for left-aligned navigation */
.dashboard-header {
    justify-content: flex-start;
    padding: 0 20px;
}

.page-header span {
    white-space: nowrap;
}

.page-main {
    flex: 1;
    padding: 20px;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}



.page-footer {
    height: 40px;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.page-footer span {
    white-space: nowrap;
}

.test-btn {
    background: black;
    color: var(--text-gray);
    border: none;

    border-radius: 0px;
    height: 100%;
    padding: 0 16px;
    cursor: pointer;

    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;

    transition: all 0.25s ease;
}

.test-btn:hover {
    background-color: #ffffff29;
    color: white;
}

.test-btn.active {
    background-color: var(--accent-color);
    color: black;
    cursor: default;
}

/* Navigation */
.dashboard-nav {
    display: flex;
    gap: 10px;
    height: 100%;
    align-items: center;
    color: var(--text-gray);
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-btn {
    background: transparent;
    color: var(--text-gray);
    border: none;

    border-radius: 0px;
    height: 100%;
    padding: 0 16px;
    cursor: pointer;

    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;

    transition: all 0.15s ease;
}

.nav-btn:hover {
    color: white;
}

.nav-btn.active {
    color: var(--accent-color);
    cursor: default;
}

/* Panel container - holds title and panel */
.panel-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Panel base styles - now just for content */
.panel {
    background: var(--card-background);
    border: var(--border-width) solid var(--card-border);
    box-shadow: 0 20px 40px var(--shadow-light);
    padding: 0;
    color: white;
    overflow: hidden;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Panel header - inside the panel */
.panel-header {
    border-bottom: 2px solid var(--card-border);
    padding: 0 20px;
    flex-shrink: 0;
    text-align: left;
    display: flex;
    align-items: center;
    min-height: 50px;
}

/* Panel title - positioned inside the header */
.panel-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0;
    line-height: 1.2;
    padding: 0;
    flex-shrink: 0;
    background: transparent;
    border-radius: 0px;
    display: inline-block;
    width: fit-content;
}

/* Panel content */
.panel-content {
    color: var(--text-gray);
    line-height: 1.5;
    font-family: 'Roboto Mono', monospace;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.panel-content p {
    margin: 0;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
    font-family: 'Roboto Mono', monospace;
}

/* Editable content styling */
.editable-content {
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: transparent;
    border: 2px solid var(--card-border);
    border-radius: 4px;
    padding: 12px;
    color: white;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    flex: 1;
}

.editable-content:focus {
    border-color: white;
}

.editable-content::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px); /* Account for header and footer */
    padding: 20px;
    flex: 1;
}

.login-card {
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: white;
    font-size: 28px;
    margin-bottom: 8px;
    font-family: 'Roboto Mono', monospace;
}

.login-header p {
    color: var(--text-gray);
    font-size: 16px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid var(--card-border);
    font-size: 16px;
    background: var(--background);
    color: white;
    font-family: 'Roboto Mono', monospace;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: white;
}

.login-btn {
    border: 2px solid var(--accent-color);
    background: var(--background);
    color: var(--accent-color);
    padding: 14px 24px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Roboto Mono', monospace;
    cursor: pointer;
    transition: 0.25s ease;
}

.login-btn:hover {
    background: var(--accent-color);
    color: var(--background);
    border: 2px solid var(--accent-color);
    transition: 0.25s ease;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    margin-top: 20px;
    text-align: center;
    border: 1px solid #fcc;
    font-family: 'Roboto Mono', monospace;
}

/* Reusable Bordered Box - used by login page */
.bordered-box {
    background: var(--card-background);
    border: var(--border-width) solid var(--card-border);
    box-shadow: 0 20px 40px var(--shadow-light);
    position: relative;
}

/* Bordered box corner brackets using pseudo-elements */
.bordered-box::before,
.bordered-box::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: var(--border-width) solid white;
    z-index: 1;
}

.bordered-box::before {
    top: calc(-1 * var(--border-width));
    left: calc(-1 * var(--border-width));
    border-right: none;
    border-bottom: none;
    box-shadow:
        calc(100% - var(--border-width)) 0 0 0 white,
        0 calc(100% - var(--border-width)) 0 0 white;
}

.bordered-box::after {
    bottom: calc(-1 * var(--border-width));
    right: calc(-1 * var(--border-width));
    border-left: none;
    border-top: none;
    box-shadow:
        calc(-100% + var(--border-width)) 0 0 0 white,
        0 calc(-100% + var(--border-width)) 0 0 white;
}

/* Additional corner brackets for bordered-box using child elements */
.bordered-box .corner-accent-top-right,
.bordered-box .corner-accent-bottom-left,
.bordered-box .corner-accent-bottom-right {
    position: absolute;
    width: 10px;
    height: 10px;
    z-index: 10;
}



.bordered-box .corner-accent-top-right {
    top: 0;
    right: 0;
}

.bordered-box .corner-accent-bottom-left {
    bottom: 0;
    left: 0;
}

.bordered-box .corner-accent-bottom-right {
    bottom: 0;
    right: 0;
}



/* Corner bracket styles using ::before pseudo-elements */
.bordered-box .corner-accent-top-right::before {
    content: '';
    position: absolute;
    top: calc(-1 * var(--border-width));
    right: calc(-1 * var(--border-width));
    width: 10px;
    height: 10px;
    border: var(--border-width) solid white;
    border-left: none;
    border-bottom: none;
    z-index: 1;
    box-shadow:
        calc(-100% + var(--border-width)) 0 0 0 white,
        0 calc(100% - var(--border-width)) 0 0 white;
}

.bordered-box .corner-accent-bottom-left::before {
    content: '';
    position: absolute;
    bottom: calc(-1 * var(--border-width));
    left: calc(-1 * var(--border-width));
    width: 10px;
    height: 10px;
    border: var(--border-width) solid white;
    border-right: none;
    border-top: none;
    z-index: 1;
    box-shadow:
        calc(100% - var(--border-width)) 0 0 0 white,
        0 calc(-100% + var(--border-width)) 0 0 white;
}

.bordered-box .corner-accent-bottom-right::before {
    content: '';
    position: absolute;
    bottom: calc(-1 * var(--border-width));
    right: calc(-1 * var(--border-width));
    width: 10px;
    height: 10px;
    border: var(--border-width) solid white;
    border-left: none;
    border-top: none;
    z-index: 1;
    box-shadow:
        calc(-100% + var(--border-width)) 0 0 0 white,
        0 calc(-100% + var(--border-width)) 0 0 white;
}

/* Dynamic Grid Styles */
.panel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 20px;
    height: 100%;
    width: 100%;
    flex: 1;
}

 