/* [change] base admin layout styles (sidebar/header/content) referenced from dp-app layout structure */

:root {
    --bg: #f5f7fa;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --sidebar-bg: #1f2937;
    --sidebar-bg-2: #111827;
    --sidebar-border: #374151;
    --primary: #667eea;
    --control-height: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 220px;
    background: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.10);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    background: var(--sidebar-bg-2);
    color: #fff;
    border-bottom: 1px solid var(--sidebar-border);
}

.logo {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
}

.logo img {
    width: 24px;
    height: 24px;
}

.sidebar-menu {
    padding: 12px 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: var(--sidebar-bg);
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.menu-section {
    margin-bottom: 16px;
}

.menu-section-title {
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-item {
    display: block;
    padding: 12px 20px;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    font-size: 14px;
}

.menu-item:hover {
    background: #374151;
    color: #fff;
    border-left-color: var(--primary);
}

.menu-item.active {
    background: #374151;
    color: #fff;
    border-left-color: var(--primary);
}

.main-wrapper {
    margin-left: 220px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

.header {
    background: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--control-height);
    padding: 0 12px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 0;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
}

.header-btn:hover {
    background: #e5e7eb;
}

.header-btn-black {
    background: #4b5563;
    border-color: #4b5563;
    color: #fff;
}

.header-btn-black:hover {
    background: #374151;
}

.header-btn-blue {
    background: #2563eb;
    border-color: #1d4ed8;
    color: #fff;
}

.header-btn-blue:hover {
    background: #1d4ed8;
}

.header-btn-green {
    background: #16a34a;
    border-color: #15803d;
    color: #fff;
}

.header-btn-green:hover {
    background: #15803d;
}

.header-btn-red {
    background: #dc2626;
    border-color: #b91c1c;
    color: #fff;
}

.header-btn-red:hover {
    background: #b91c1c;
}

.header-btn-amber {
    background: #d97706;
    border-color: #b45309;
    color: #fff;
}

.header-btn-amber:hover {
    background: #b45309;
}

.container {
    flex: 1;
    padding: 20px;
    min-width: 0;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 16px;
    min-width: 0;
}

.muted {
    color: var(--muted);
}

.alert {
    padding: 12px 14px;
    border-radius: 0;
    border: 1px solid;
    margin: 12px 0;
    font-size: 13px;
    white-space: pre-wrap;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #7f1d1d;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 0;
    background: #fff;
    max-width: 100%;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

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

.table th {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: #374151;
    background: #f9fafb;
}

.table td {
    padding: 10px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    color: #111827;
    vertical-align: top;
}

.table th,
.table td {
    white-space: nowrap;
}

/* Guest pages (login) */
.guest-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 24px;
}

.form-group {
    margin-bottom: 12px;
}

.label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #374151;
    font-weight: 600;
}

.input {
    width: 100%;
    height: var(--control-height);
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 0;
    font-size: 14px;
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.btn-primary {
    width: 100%;
    height: var(--control-height);
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    background: #111827;
    color: #fff;
    cursor: pointer;
}

.btn-primary:hover {
    background: #0b1220;
}


