:root {
    --primary: #00E676;
    --primary-hover: #00c865;
    --bg: #121212;
    --card: #1E1E1E;
    --input-bg: #2C2C2C;
    --text: #ffffff;
    --text-muted: #aaaaaa;
    --danger: #ff4444;
    --warning: #ff9800;
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    height: 100vh;
    display: flex;
}

/* Utils */
.text-green { color: var(--primary); }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.mt-2 { margin-top: 10px; }
.mb-4 { margin-bottom: 20px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Auth Layout */
.auth-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg);
}

.auth-box {
    background: var(--card);
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    position: relative;
}

.auth-title {
    color: var(--primary);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: var(--input-bg);
    border: 1px solid #333;
    border-radius: 4px;
    color: var(--text);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
}

.btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--card);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.brand span { color: var(--primary); }

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text);
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 5px;
    background: var(--primary);
    color: #000;
    font-weight: 500;
    cursor: pointer;
}

.nav-item:hover {
    opacity: 0.9;
}

.nav-item.logout {
    margin-top: auto;
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px;
    width: calc(100% - var(--sidebar-width));
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
}

/* Buttons Grid */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* Table */
.table-container {
    background: var(--card);
    border-radius: 8px;
    overflow: hidden;
}

.table-header {
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #2C2C2C;
}

th {
    color: var(--text-muted);
    font-weight: normal;
}

.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge-approved {
    background: var(--primary);
    color: #000;
}

.badge-pending {
    background: var(--warning);
    color: #000;
}

.badge-cancelled {
    background: var(--danger);
    color: white;
}

.badge-deposit { color: var(--primary); }
.badge-withdrawal { color: var(--danger); }

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--card);
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    text-align: center;
    width: 100%;
}

.close-modal {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    position: absolute;
    right: 20px;
    top: 15px;
}

.warning-box {
    background: var(--warning);
    color: #000;
    padding: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-top: 20px;
}

.warning-title {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.credential-list {
    list-style: none;
    margin-top: 10px;
}

.credential-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.credential-list li::before {
    content: '•';
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
}