@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    font-size: 14px;
}

/* Utility Classes */
.text-cyan { color: #00ffff; }
.text-white { color: #ffffff; }
.text-gray { color: #cccccc; }
.text-success { color: #28a745; }
.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }
.text-info { color: #17a2b8; }

.bg-dark { background-color: #1a1a1a; }
.bg-darker { background-color: #0d0d0d; }
.bg-cyan { background-color: #00ffff; }

.font-mono {
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Layout */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-right: 2px solid #00ffff;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.sidebar-header h3 {
    color: #00ffff;
    font-weight: 700;
    font-size: 18px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: #333;
    color: #00ffff;
    border-left-color: #00ffff;
}

.sidebar-menu i {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: linear-gradient(90deg, #1a1a1a, #0d0d0d);
    border-bottom: 2px solid #00ffff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-title h1 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 500;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-balance {
    background: #333;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #00ffff;
}

.user-balance .balance {
    color: #00ffff;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.user-menu-btn:hover {
    background-color: #333;
}

/* Content */
.content {
    padding: 30px;
    flex: 1;
    background-color: #0d0d0d;
}

/* Cards */
.card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.card-header {
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-title {
    color: #00ffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.card-body {
    color: #cccccc;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #1a1a1a, #333);
    border: 2px solid #00ffff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 40px;
    color: #00ffff;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
}

.stat-label {
    color: #cccccc;
    font-size: 14px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #00ffff;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.2);
}

.form-control::placeholder {
    color: #888;
}

/* Buttons */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(45deg, #00ffff, #0088aa);
    color: #000000;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #00cccc, #006688);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #20963c);
    color: #ffffff;
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: #ffffff;
}

.btn-warning {
    background: linear-gradient(45deg, #ffc107, #e0a800);
    color: #000000;
}

.btn-secondary {
    background: linear-gradient(45deg, #666, #555);
    color: #ffffff;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 12px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
}

/* Tables */
.table {
    width: 100%;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.table th {
    background-color: #333;
    color: #00ffff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.table td {
    color: #cccccc;
}

.table tr:hover {
    background-color: #222;
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success { background-color: #28a745; color: #fff; }
.badge-danger { background-color: #dc3545; color: #fff; }
.badge-warning { background-color: #ffc107; color: #000; }
.badge-info { background-color: #17a2b8; color: #fff; }
.badge-secondary { background-color: #666; color: #fff; }

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    border-left-color: #28a745;
    color: #d4edda;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    border-left-color: #dc3545;
    color: #f8d7da;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.2);
    border-left-color: #ffc107;
    color: #fff3cd;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.2);
    border-left-color: #17a2b8;
    color: #d1ecf1;
}

/* Notifications */
.notification {
    background: #333;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.notification.unread {
    border-left: 4px solid #00ffff;
    background: rgba(0, 255, 255, 0.1);
}

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

.notification-title {
    color: #00ffff;
    font-weight: 600;
}

.notification-time {
    color: #888;
    font-size: 12px;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000000, #1a1a1a);
}

.login-card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 2px solid #00ffff;
    border-radius: 12px;
    padding: 40px;
    width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.login-header h2 {
    color: #00ffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-header p {
    color: #cccccc;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
    
    .header {
        padding: 10px 20px;
    }
    
    .content {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header {
        padding: 10px 15px;
    }
    
    .header-title h1 {
        font-size: 20px;
    }
    
    .content {
        padding: 15px;
    }
    
    .login-card {
        width: 90%;
        padding: 30px 20px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 50%;
    border-top-color: #00ffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    margin: 5% auto;
    padding: 30px;
    border: 2px solid #00ffff;
    border-radius: 12px;
    width: 80%;
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.modal-title {
    color: #00ffff;
    font-size: 20px;
    font-weight: 600;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #00ffff;
}
