/* Kokan Wallet Admin Theme Stylesheet */
:root {
    --bg-main: #0B0F19;
    --bg-sidebar: #0F172A;
    --bg-card: #1E293B;
    --border-color: rgba(51, 65, 85, 0.5);
    
    --primary: #00C853;
    --primary-dark: #009624;
    --primary-light: #69F0AE;
    
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;
    
    --sidebar-width: 260px;
    --header-height: 70px;
    --transition-speed: 0.25s;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-primary);
    overflow-x: hidden;
}

/* Layout Container */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* 1. Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    height: var(--header-height);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-light);
}

.logo-text {
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.badge-role {
    background-color: rgba(0, 200, 83, 0.1);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.menu-item i {
    margin-right: 12px;
    width: 18px;
    height: 18px;
}

.menu-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.menu-item.active {
    color: var(--primary);
    background-color: rgba(0, 200, 83, 0.08);
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background-color: var(--primary);
    border-radius: 0 4px 4px 0;
}

.badge-count {
    background-color: var(--error);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
}

.user-status {
    font-size: 11px;
    color: var(--success);
}

/* 2. Main Content Layout */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-header {
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-sidebar);
}

.header-title h1 {
    font-size: 20px;
    font-weight: 700;
}

.header-title .subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.quick-stats {
    display: flex;
    gap: 16px;
}

.stat-pill {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-pill .label {
    color: var(--text-secondary);
}

.stat-pill .value {
    font-weight: 700;
    color: var(--primary);
}

.view-container {
    padding: 32px;
    flex: 1;
}

.page-view {
    display: none;
}

.page-view.active {
    display: block;
}

/* 3. Cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    margin-bottom: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* 4. Forms */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-row {
    display: flex;
    gap: 16px;
}

.col-6 {
    flex: 1;
}

input[type="text"],
input[type="number"],
input[type="url"],
textarea,
select {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-speed);
}

input:focus,
textarea:focus {
    border-color: var(--primary);
}

.type-selector {
    display: flex;
    gap: 12px;
}

.radio-label {
    flex: 1;
    cursor: pointer;
}

.radio-label input {
    display: none;
}

.radio-button {
    display: block;
    text-align: center;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-speed);
}

.radio-label input:checked + .radio-button {
    background-color: rgba(0, 200, 83, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 10px;
}

.color-picker-wrapper input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    background: none;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch {
    border: 1px solid var(--border-color);
    border-radius: 50%;
}

.color-hex {
    font-size: 13px;
    font-family: monospace;
    font-weight: 700;
}

.align-selector {
    display: flex;
    gap: 10px;
    max-width: 200px;
}

.align-btn .radio-button {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.align-btn input:checked + i {
    color: var(--primary);
}

.input-note {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.note-icon {
    width: 12px;
    height: 12px;
}

.input-prefix-wrapper {
    position: relative;
    display: flex;
}

.input-prefix-wrapper .prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-weight: 700;
}

.input-prefix-wrapper input {
    padding-left: 36px;
    width: 100%;
}

/* 5. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background-color: var(--primary-dark);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary);
    box-shadow: 0 0 12px rgba(0, 200, 83, 0.3);
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-error {
    background-color: var(--error);
    color: white;
}

.btn-error:hover {
    background-color: #DC2626;
}

.btn-icon {
    padding: 8px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-icon:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-icon.delete:hover {
    background-color: rgba(239, 68, 68, 0.15);
    border-color: var(--error);
    color: var(--error);
}

/* 6. Phone Preview Frame */
.phone-frame {
    width: 330px;
    height: 640px;
    background-color: #000;
    border-radius: 40px;
    padding: 12px;
    border: 4px solid #334155;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.phone-notch {
    width: 140px;
    height: 18px;
    background-color: #000;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 12px 12px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #0B0F19;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.mock-status-bar {
    height: 36px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.mock-status-bar .icons {
    display: flex;
    gap: 6px;
}

.icon-small {
    width: 12px;
    height: 12px;
}

.mock-toolbar {
    height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mock-toolbar .logo {
    font-weight: 800;
    letter-spacing: 0.8px;
    font-size: 16px;
    color: var(--text-primary);
}

.mock-bell {
    position: relative;
}

.mock-bell .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: red;
    color: white;
    font-size: 8px;
    font-weight: 700;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-content {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-banner {
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.banner-text-preview {
    font-size: 13px;
    line-height: 1.4;
    padding: 16px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: pre-line;
}

.banner-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mock-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.mock-dots .dot {
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.mock-dots .dot.active {
    background-color: var(--primary);
    width: 12px;
    border-radius: 2px;
}

.wireframe-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
}

.wireframe-card.text-green {
    border-color: rgba(0, 200, 83, 0.2);
}

.wireframe-card.bg-card {
    background-color: var(--bg-card);
}

.wf-title {
    font-size: 8px;
    font-weight: 700;
    color: var(--primary);
}

.wf-main {
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
}

.wf-progress-bar {
    height: 3px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 8px;
}

.wf-label {
    font-size: 7px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.wf-balance {
    font-size: 16px;
    font-weight: 900;
    margin-top: 2px;
}

.wf-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

.wf-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8px;
}

.wf-row .label {
    color: var(--text-secondary);
}

.wf-row .val {
    font-weight: 700;
}

.wf-circle-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.wf-circle-btn i {
    width: 10px;
    height: 10px;
}

/* 7. Tables */
.table-container {
    overflow-x: auto;
    margin-top: 12px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr {
    transition: background-color var(--transition-speed);
}

.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.table-image-preview {
    width: 60px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.table-text-preview {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

/* Status Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.badge-status.pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-status.approved {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-status.rejected {
    background-color: rgba(239, 104, 104, 0.1);
    color: var(--error);
}

/* Modal Popup Dialog */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 70vh;
}

.review-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.detail-row .lbl {
    color: var(--text-secondary);
}

.screenshot-display-container {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-display-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-speed);
    cursor: zoom-in;
}

.screenshot-display-container img:hover {
    transform: scale(1.5);
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Helpers */
.hidden {
    display: none !important;
}

.margin-top-md {
    margin-top: 16px;
}

.margin-top-lg {
    margin-top: 32px;
}

.text-green {
    color: var(--primary) !important;
}

.text-yellow {
    color: var(--warning) !important;
}

.text-error {
    color: var(--error) !important;
}

.placeholder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 40px;
    color: var(--text-secondary);
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.placeholder-card h2 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.placeholder-card p {
    font-size: 13px;
    max-width: 400px;
}

/* Login Screen Styles */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, #0F2A19 0%, #0B0F19 100%);
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    font-family: var(--font-secondary);
}

.login-wrapper.hidden {
    display: none !important;
}

.login-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 4px solid var(--primary);
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    padding: 48px 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 200, 83, 0.05);
    animation: loginReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

.login-header .logo-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.login-header .logo-dot {
    width: 14px;
    height: 14px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary);
}

.login-header .logo-text {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.login-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 700;
    margin-top: 10px;
}

.login-card .form-group {
    margin-bottom: 20px;
}

.login-card .form-group label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.login-card input[type="text"],
.login-card input[type="password"] {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    width: 100%;
    outline: none;
    transition: all var(--transition-speed) ease;
}

.login-card input:focus {
    border-color: var(--primary);
    background-color: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.15);
}

.login-card .btn-primary {
    background-color: var(--primary-dark);
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 150, 36, 0.3);
}

.login-card .btn-primary:hover {
    background-color: var(--primary);
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4);
    transform: translateY(-1px);
}

.login-card .text-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error);
    padding: 10px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 12px;
    text-align: center;
}

