.default *, html, body {
    padding: 0;
    margin: 0;
    outline: none;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-size: 14px;
    background-color: #f1f5f9;
    color: #1e293b;
    line-height: 1.5;
}

a:active,
a:focus,
a {
    color: inherit;
}

/* ── Layout utilities ── */
.block { display: block; }
.inline { display: inline-block; vertical-align: middle; }
.table { display: table; width: 100%; }
.table-cell { display: table-cell; vertical-align: top; }
.table-row { display: table-row; }
.right { float: right !important; }
.left { float: left !important; }
.clear { clear: both; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.centered { text-align: center; }

/* ── Table row striping ── */
table tr:nth-child(even) { background: #f8fafc; }
table tr:nth-child(odd) { background: #fff; }

/* ── State classes ── */
.is_disabled {
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.is_hidden {
    display: none !important;
}

/* ── Validation ── */
.validation_border {
    border: 1px solid #ef4444 !important;
}
.validate_msg {
    color: #ef4444;
    font-size: 12px;
    margin-left: 10px;
    margin-top: 5px;
    float: left;
}
.error_msg {
    color: #ef4444;
    font-size: 12px;
    margin-left: 10px;
    margin-top: 5px;
}
.success_error_msg {
    display: none;
    color: #ef4444;
    font-size: 14px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 20px;
}
.success_error_msg:not(:empty) {
    display: block;
}

/* ── Global input styles ── */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
select,
textarea {
    font-family: inherit;
    font-size: 13px;
    padding: 7px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
textarea {
    resize: vertical;
    min-height: 60px;
}
select {
    cursor: pointer;
}

/* ── Global button styles ── */
button, .button, input[type="submit"], input[type="button"] {
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    color: #fff;
    background: #3b82f6;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
}
button:hover, .button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
button:active, .button:active, input[type="submit"]:active, input[type="button"]:active {
    transform: translateY(1px);
}
button:disabled, .button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button.btn-primary {
    background: #1d4ed8;
}
.button.btn-primary:hover {
    background: #1e40af;
}

/* ── .btn variants (Bootstrap-style) ── */
.btn {
    font-size: 13px;
    font-weight: 500;
    padding: 7px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    color: #fff;
    background: #3b82f6;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
}
.btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.btn:active {
    transform: translateY(1px);
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn-primary { background: #2563eb; }
.btn-primary:hover { background: #1d4ed8; }
.btn-success { background: #16a34a; }
.btn-success:hover:not(:disabled) { background: #15803d; }
.btn-danger { background: #dc2626; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-warning { background: #d97706; }
.btn-warning:hover:not(:disabled) { background: #b45309; }
.btn-info { background: #0891b2; }
.btn-info:hover:not(:disabled) { background: #0e7490; }
.btn-secondary { background: #64748b; }
.btn-secondary:hover:not(:disabled) { background: #475569; }
.btn-outline-danger {
    background: transparent;
    color: #dc2626;
    border: 1px solid #dc2626;
}
.btn-outline-danger:hover:not(:disabled) {
    background: #dc2626;
    color: #fff;
}
.btn-sm { padding: 4px 10px; font-size: 12px; }

/* ── Clickable object ── */
.f_objext {
    vertical-align: middle;
    color: #3b82f6;
    cursor: pointer;
    transition: color 0.15s;
}
.f_objext:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ── Loader overlay ── */
.loader {
    position: fixed;
    z-index: 5100;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    display: none;
}
.loader.is_active {
    display: block;
}
.loader .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -24px;
    margin-left: -24px;
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ── Form group (login, register) ── */
.form-group .field {
    margin-bottom: 12px;
}
.form-group .field .field-label {
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    margin-bottom: 4px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.form-group .field input {
    display: block;
    width: 100%;
    font-size: 14px;
    height: 38px;
    line-height: 38px;
    padding: 0 12px;
}
.form-group .buttons-content {
    text-align: center;
}
.form-group .submit-button {
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    padding: 8px 24px;
    background: #3b82f6;
}
.form-group .submit-button:hover {
    background: #2563eb;
}

/* ── Spinner keyframes ── */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Logo ── */
.logo-content a {
    width: 100%;
    display: inline-block;
}
.logo-content img {
    width: 230px;
}

/* ── Responsive ── */
@media screen and (max-width: 768px) {
    div#sidebar {
        overflow: hidden;
        display: none;
    }
    .wrapper-content .sidebar-cell {
        width: auto !important;
    }
    .center_burger {
        display: block;
    }
    .col-xs-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .login-content .form-group .submit-button,
    .login-content .form-group .button {
        display: block;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

div#browser_console_logs_container {
    display: inline-block;
    width: 100%;
    max-width: 1200px;
    overflow: auto;
}
