:root {
    --bg: #E8F6EF;
    --bg-white: #FFF;
    --border: #D1D5DB;
    --text: #000;
    --font-family: 'JetBrains Mono', monospace;
	--table-column-names: #E8F6EF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}

html, body {
    background-color: var(--bg);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px;
    display: grid;
    gap: 8px;
}

.block {
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 8px;
    display: grid;
    gap: 8px;
}

.text-xl { font-size: 18px; }
.text-lg { font-size: 16px; }
.text-base { font-size: 14px; }
.text-sm { font-size: 12px; }
.font-normal { font-weight: 400; }
.mb-2 { margin-bottom: 8px; }
.border-b { border-bottom: 1px solid var(--border); }

.grid {
    display: grid;
    gap: 8px;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

.form-element {
    height: 30px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    border: 1px solid var(--border);
    background: var(--bg-white);
    font-family: var(--font-family);
    vertical-align: middle;
}

.select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5H7z" fill="%236B7280"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 24px;
	padding-left: 24px;
	cursor: pointer;
}

.select:hover {
    background-color: var(--bg);
}

.input {
    padding: 0 8px;
	cursor: pointer;
}

.input:focus {
    background-color: var(--bg-white);
}

.button {
    cursor: pointer;
}

.for-text {
    text-align: center;
}

.input:focus, .select:focus, .button:focus {
    outline: none;
    box-shadow: none;
    background: var(--bg-white);
}

.button:hover, .select:hover, .input:hover
{
    background: var(--bg);
}

.like-a-button {
 background-color: var(--bg);
}

.like-a-button:hover {
 background-color: var(--bg-white);
}

.like-a-button:focus {
 background-color: var(--bg);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 0;
    vertical-align: middle;
    text-align: center;
    border: 1px solid var(--border);
    height: 30px;
    color: var(--text);
}

.table th {
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    background: var(--table-column-names);
}

.textarea {
    width: 100%;
    height: 300px;
    padding: 5px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    white-space: pre;
    overflow: auto;
    resize: vertical;
    font-family: var(--font-family);
    font-size: 12px;
    color: var(--text);
    font-variant-ligatures: none;
}

.textarea:focus {
    outline: none;
}

.server-block {
    border: 1px solid var(--border);
    padding: 8px;
    display: grid;
    gap: 8px;
}

.full-width {
    width: 100%;
    text-align: center;
}

.no-border {
    border: none !important;
}

.block[hidden] {
    display: none !important;
}

.button[hidden], .button.hidden {
    display: none !important;
}

.red,
.log-tag.error { 
color: #721c24; 
}

.blue,
.log-tag.debug { 
color: #004085; 
}

.green,
.log-tag.info { 
color: #155724; 
}

.toast-container {
    position: fixed;
    top: 10px;
    right: 10px;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    z-index: 1000;
    pointer-events: none;
}

.toast {
    padding: 5px;
    border-radius: 3px;
    font-size: 11px;
    animation: slideIn 0.3s ease-out;
    max-width: 100%;
    word-break: break-word;
    pointer-events: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.toast.info {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.toast.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.button:disabled, 
.button.disabled {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #d1d5db;
    cursor: not-allowed;
    opacity: 0.7;
}

.button:disabled:hover,
.button:disabled:focus,
.button.disabled:hover,
.button.disabled:focus {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #d1d5db;
}