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

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --success: #48bb78;
    --warning: #ed8936;
    --error: #f56565;
    --dark: #1a202c;
    --dark-lighter: #2d3748;
    --gray: #718096;
    --gray-light: #cbd5e0;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--white);
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Login Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 0.5s ease;
}

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

.login-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--gray-light);
    font-size: 14px;
}

.discord-login-btn {
    width: 100%;
    padding: 15px;
    background: #5865F2;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.discord-login-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
}

.requirements {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.requirements p {
    font-weight: 500;
    margin-bottom: 10px;
}

.requirements ul {
    list-style: none;
    padding-left: 0;
}

.requirements li {
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
}

.requirements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
}

/* Dashboard Styles */
.dashboard {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--dark);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 20px;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex: 1;
}

.sidebar-menu li {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-menu li:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-menu li.active {
    background: var(--primary);
}

.user-info {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

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

.logout-btn {
    padding: 5px 10px;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.logout-btn:hover {
    opacity: 0.8;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--glass);
    backdrop-filter: blur(10px);
}

.top-bar {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.top-bar h1 {
    margin-bottom: 20px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--gray-light);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
}

.stat-value.error {
    color: var(--error);
}

.content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.filters-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-select,
.search-input {
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    min-width: 150px;
}

.filter-select option {
    background: var(--dark);
}

.search-input {
    flex: 1;
}

.search-input::placeholder {
    color: var(--gray-light);
}

.filter-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

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

.logs-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

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

.logs-table thead {
    background: rgba(255, 255, 255, 0.1);
}

.logs-table th {
    padding: 15px;
    text-align: left;
    font-weight: 500;
}

.logs-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
}

.logs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.logs-table td {
    padding: 12px 15px;
    font-size: 14px;
}

.level-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.level-debug {
    background: rgba(128, 128, 128, 0.2);
    color: #9ca3af;
}

.level-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.level-warn {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.level-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.level-critical {
    background: rgba(220, 38, 38, 0.4);
    color: #dc2626;
}

.action-btn {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.pagination button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.chart-card h3 {
    margin-bottom: 20px;
}

/* Settings */
.settings-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
}

.settings-section {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.settings-section label {
    font-weight: 500;
    margin-top: 10px;
}

.copy-field {
    display: flex;
    gap: 10px;
}

.copy-field input {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
}

.copy-field button {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.copy-field button:hover {
    background: var(--primary-dark);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--dark);
    margin: 10% auto;
    padding: 30px;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    animation: slideIn 0.3s ease;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
}

.close:hover {
    color: var(--error);
}



/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .filters-bar {
        flex-direction: column;
    }
    
    .filter-select,
    .search-input,
    .filter-btn {
        width: 100%;
    }
}
/* Tokens View */
.tokens-header {
    margin-bottom: 20px;
}

.create-token-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-token-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.tokens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.token-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.token-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.token-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.token-name {
    font-size: 18px;
    font-weight: 600;
}

.token-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.token-status.active {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.token-status.inactive {
    background: rgba(245, 101, 101, 0.2);
    color: #f56565;
}

.token-info {
    margin-bottom: 15px;
}

.token-field {
    margin-bottom: 10px;
}

.token-label {
    font-size: 12px;
    color: var(--gray-light);
    margin-bottom: 4px;
}

.token-value {
    font-size: 14px;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 4px;
    word-break: break-all;
}

.token-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.token-stat {
    text-align: center;
}

.token-stat-label {
    font-size: 11px;
    color: var(--gray-light);
    text-transform: uppercase;
}

.token-stat-value {
    font-size: 18px;
    font-weight: bold;
    margin-top: 4px;
}

.token-actions {
    display: flex;
    gap: 10px;
}

.token-actions button {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.token-actions button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.token-actions button.danger {
    background: rgba(245, 101, 101, 0.2);
    border-color: rgba(245, 101, 101, 0.4);
}

.token-actions button.danger:hover {
    background: rgba(245, 101, 101, 0.3);
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

.form-group input::placeholder {
    color: var(--gray-light);
}

.form-group select option {
    background: var(--dark);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

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

.copy-value {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.copy-value input {
    flex: 1;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: white;
    font-family: monospace;
    font-size: 12px;
}

.copy-value button {
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.copy-value button:hover {
    background: var(--primary-dark);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --success: #48bb78;
    --warning: #ed8936;
    --error: #f56565;
    --dark: #1a202c;
    --dark-lighter: #2d3748;
    --gray: #718096;
    --gray-light: #cbd5e0;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--white);
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Login Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 0.5s ease;
}

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

.login-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--gray-light);
    font-size: 14px;
}

.discord-login-btn {
    width: 100%;
    padding: 15px;
    background: #5865F2;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.discord-login-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
}

.requirements {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.requirements p {
    font-weight: 500;
    margin-bottom: 10px;
}

.requirements ul {
    list-style: none;
    padding-left: 0;
}

.requirements li {
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
}

.requirements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
}

/* Dashboard Styles */
.dashboard {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--dark);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 20px;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex: 1;
}

.sidebar-menu li {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-menu li:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-menu li.active {
    background: var(--primary);
}

.user-info {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

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

.logout-btn {
    padding: 5px 10px;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.logout-btn:hover {
    opacity: 0.8;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--glass);
    backdrop-filter: blur(10px);
}

.top-bar {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.top-bar h1 {
    margin-bottom: 20px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--gray-light);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
}

.stat-value.error {
    color: var(--error);
}

.content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.filters-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-select,
.search-input {
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    min-width: 150px;
}

.filter-select option {
    background: var(--dark);
}

.search-input {
    flex: 1;
}

.search-input::placeholder {
    color: var(--gray-light);
}

.filter-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

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

.logs-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

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

.logs-table thead {
    background: rgba(255, 255, 255, 0.1);
}

.logs-table th {
    padding: 15px;
    text-align: left;
    font-weight: 500;
}

.logs-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
}

.logs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.logs-table td {
    padding: 12px 15px;
    font-size: 14px;
}

.level-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.level-debug {
    background: rgba(128, 128, 128, 0.2);
    color: #9ca3af;
}

.level-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.level-warn {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.level-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.level-critical {
    background: rgba(220, 38, 38, 0.4);
    color: #dc2626;
}

.action-btn {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.pagination button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.chart-card h3 {
    margin-bottom: 20px;
}

/* Settings */
.settings-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
}

.settings-section {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.settings-section label {
    font-weight: 500;
    margin-top: 10px;
}

.copy-field {
    display: flex;
    gap: 10px;
}

.copy-field input {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
}

.copy-field button {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.copy-field button:hover {
    background: var(--primary-dark);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--dark);
    margin: 10% auto;
    padding: 30px;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    animation: slideIn 0.3s ease;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
}

.close:hover {
    color: var(--error);
}

#logDetails {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    font-family: monospace;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .filters-bar {
        flex-direction: column;
    }
    
    .filter-select,
    .search-input,
    .filter-btn {
        width: 100%;
    }
}

/* Tokens View */
.tokens-header {
    margin-bottom: 20px;
}

.create-token-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-token-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.tokens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.token-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.token-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.token-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.token-name {
    font-size: 18px;
    font-weight: 600;
}

.token-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.token-status.active {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.token-status.inactive {
    background: rgba(245, 101, 101, 0.2);
    color: #f56565;
}

.token-info {
    margin-bottom: 15px;
}

.token-field {
    margin-bottom: 10px;
}

.token-label {
    font-size: 12px;
    color: var(--gray-light);
    margin-bottom: 4px;
}

.token-value {
    font-size: 14px;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 4px;
    word-break: break-all;
}

.token-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.token-stat {
    text-align: center;
}

.token-stat-label {
    font-size: 11px;
    color: var(--gray-light);
    text-transform: uppercase;
}

.token-stat-value {
    font-size: 18px;
    font-weight: bold;
    margin-top: 4px;
}

.token-actions {
    display: flex;
    gap: 10px;
}

.token-actions button {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.token-actions button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.token-actions button.danger {
    background: rgba(245, 101, 101, 0.2);
    border-color: rgba(245, 101, 101, 0.4);
}

.token-actions button.danger:hover {
    background: rgba(245, 101, 101, 0.3);
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

.form-group input::placeholder {
    color: var(--gray-light);
}

.form-group select option {
    background: var(--dark);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

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

.copy-value {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.copy-value input {
    flex: 1;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: white;
    font-family: monospace;
    font-size: 12px;
}

.copy-value button {
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.copy-value button:hover {
    background: var(--primary-dark);
}

/* ===================== */
/* PRIORITY STYLES (BELOW) */
/* ===================== */

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

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --success: #48bb78;
    --warning: #ed8936;
    --error: #f56565;
    --dark: #1a202c;
    --dark-lighter: #2d3748;
    --gray: #718096;
    --gray-light: #cbd5e0;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--white);
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 20px;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu li {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-menu li:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-menu li.active {
    background: var(--primary);
}

.user-info {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    padding: 5px 10px;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.logout-btn:hover {
    opacity: 0.8;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--glass);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.top-bar {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.top-bar h1 {
    margin-bottom: 20px;
    font-size: 24px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--gray-light);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
}

.stat-value.error {
    color: var(--error);
}

.content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view.active {
    display: block;
}

/* Filters Bar */
.filters-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-select,
.search-input {
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    min-width: 120px;
}

.filter-select option {
    background: var(--dark);
}

.search-input {
    flex: 1;
    min-width: 200px;
}

.search-input::placeholder {
    color: var(--gray-light);
}

.filter-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

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

/* Logs Table */
.logs-wrapper {
    position: relative;
}

.logs-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: auto;
    max-height: calc(100vh - 350px);
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.logs-table thead {
    background: rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logs-table th {
    padding: 15px;
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
}

.logs-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
}

.logs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.logs-table td {
    padding: 12px 15px;
    font-size: 14px;
}

.logs-table td:nth-child(4) {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mobile Log Cards */
.logs-cards {
    display: none;
}

.log-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.log-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.log-card-time {
    font-size: 12px;
    color: var(--gray-light);
}

.log-card-body {
    margin-bottom: 10px;
}

.log-card-message {
    margin: 10px 0;
    word-wrap: break-word;
}

.log-card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.log-card-meta-item {
    font-size: 12px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.log-card-actions {
    display: flex;
    gap: 10px;
}

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

.level-debug {
    background: rgba(128, 128, 128, 0.2);
    color: #9ca3af;
}

.level-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.level-warn {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.level-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.level-critical {
    background: rgba(220, 38, 38, 0.4);
    color: #dc2626;
}

.action-btn {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Tokens */
.tokens-header {
    margin-bottom: 20px;
}

.create-token-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-token-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.tokens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.token-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.token-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: var(--dark);
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 15px;
    animation: slideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

.log-modal-content {
    max-width: 800px;
}

.token-details-modal {
    max-width: 700px;
}

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

.modal-header h2 {
    font-size: 20px;
    margin: 0;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.close {
    font-size: 28px;
    cursor: pointer;
    line-height: 20px;
    padding: 0 5px;
}

.close:hover {
    color: var(--error);
}

#logDetails {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    word-wrap: break-word;
}

#logDetails strong {
    color: var(--primary);
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 5px;
}

#logDetails pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 12px;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

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

.copy-value {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.copy-value input,
.copy-value textarea {
    flex: 1;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: white;
    font-family: monospace;
    font-size: 12px;
}

.copy-value button {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .tokens-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .logs-table td:nth-child(4) {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 999;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .top-bar h1 {
        font-size: 20px;
        margin-left: 50px;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .filters-bar {
        flex-direction: column;
    }
    
    .filter-select,
    .search-input {
        width: 100%;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .filter-btn-text {
        display: inline;
    }
    
    /* Hide table on mobile, show cards */
    .logs-container {
        display: none;
    }
    
    .logs-cards {
        display: block;
    }
    
    .tokens-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .pagination {
        font-size: 14px;
    }
    
    .pagination button {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .content-area {
        padding: 10px;
    }
    
    .top-bar {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
}
