/* assets/css/style.css */
:root {
    --bg-main: #f8fafc;
    --sidebar-bg: #1e293b;
    --sidebar-text: #94a3b8;
    --sidebar-active: #ffffff;
    --sidebar-hover: #334155;
    --header-bg: #ffffff;
    --text-color: #334155;
    --border-color: #e2e8f0;
    --primary: #3b82f6;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-color);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Layout Utama */
.wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-brand {
    padding: 24px 20px;
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    border-bottom: 1px solid #334155;
    text-align: center;
}

.sidebar-brand span {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: normal;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-menu {
    list-style: none;
    padding: 15px 0;
    overflow-y: auto;
    flex-grow: 1;
}

.menu-header {
    padding: 15px 20px 5px 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #475569;
    font-weight: bold;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar-menu li a:hover {
    background-color: var(--sidebar-hover);
    color: var(--sidebar-active);
    padding-left: 25px;
}

.sidebar-menu li.active > a {
    color: var(--sidebar-active);
    background-color: #0f172a;
    border-left: 4px solid var(--primary);
    font-weight: 600;
}

/* Panel Konten Kanan */
.main-panel {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
    overflow: hidden;
}

/* Top Navbar Header */
.main-header {
    height: 60px;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    flex-shrink: 0;
}

.header-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.user-box {
    font-size: 14px;
    color: #64748b;
}

/* Wadah Konten Utama */
.content-container {
    padding: 30px;
    flex-grow: 1;
    overflow-y: auto;
    background-color: var(--bg-main);
}

/* Komponen Card Box */
.card-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    margin-bottom: 20px;
}

/* Footer */
.main-footer {
    height: 50px;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #94a3b8;
    flex-shrink: 0;
}

/* Utility Class untuk Badge Enkripsi */
.badge-crypto {
    background-color: #f1f5f9;
    color: #0284c7;
    font-family: 'Courier New', Courier, monospace;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    word-break: break-all;
}