/* Clean Black and White Minimalistic CSS */
:root {
    --bg-color: #ffffff;
    --text-primary: #000000;
    --text-secondary: #555555;
    --border-color: #e5e5e5;
    --black: #000000;
    --white: #ffffff;
    --hover-bg: #f9f9f9;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    box-sizing: border-box;
}

.glass-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: none; /* Removed glassmorphism and shadows */
}

h1, h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text-primary);
}

p.title {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.98rem;
}

p.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.80rem;
}

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

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

select, input {
    width: 100%;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

select:focus, input:focus {
    border-color: var(--black);
}

.btn {
    width: 100%;
    padding: 14px;
    background: var(--black);
    color: var(--white);
    border: 1px solid var(--black);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

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

.payment-options {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.network-badge {
    flex: 1;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Loader */
.loader {
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--black);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Admin Styles */
.admin-container {
    max-width: 900px;
    margin-top: 40px;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

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

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    background-color: var(--hover-bg);
}

td {
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

.status-success { color: var(--black); font-weight: 600; }
.status-failed { color: var(--text-secondary); text-decoration: line-through; }
.status-pending { color: var(--text-secondary); font-style: italic; }

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal.active {
    display: flex;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    width: auto;
}

/* Sidebar Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    width: 250px;
    background: var(--white);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    box-sizing: border-box;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding: 0 1rem;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
}

.sidebar-link:hover, .sidebar-link.active {
    background: var(--black);
    color: var(--white);
}

.admin-content {
    flex: 1;
    padding: 2rem;
    max-width: 100%;
    box-sizing: border-box;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--black);
    padding: 0;
}

@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        z-index: 100;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    .sidebar.open { left: 0; }
    .admin-content { padding: 1rem; width: 100%; }
    .mobile-menu-btn { display: block; }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .header-actions { flex-wrap: wrap; }
}
