@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
}

/* Premium Dark Gradient Background */
.premium-dark {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    min-height: 100vh;
}

/* Loaders */
.loader-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}
.loader-spinner.dark-spin {
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-top: 3px solid #333;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.fullscreen-loader {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #1a1a2e;
    color: white;
}
.big-spinner {
    border: 5px solid rgba(255,255,255,0.1);
    border-top: 5px solid #e94560;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.btn-primary { background: #e94560; color: white; }
.btn-primary:hover { background: #d03a52; }
.btn-success { background: #28a745; color: white; }
.btn-danger { background: #dc3545; color: white; }
.btn-outline { background: transparent; border: 2px solid #e94560; color: #e94560; }
.btn-outline:hover { background: #e94560; color: white; }
.btn-block { width: 100%; display: block; }

/* Forms */
.form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 14px; }
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(0,0,0,0.2);
    color: #fff;
    font-size: 15px;
}
.form-control:focus { outline: none; border-color: #e94560; }
.form-control.light-input { background: #fff; color: #333; border: 1px solid #ccc; }
.form-control.light-input:focus { border-color: #e94560; }

/* Status Box */
.status-box {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    color: #333;
    display: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* High Priority Toast */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.premium-toast {
    background: #111;
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    border-left: 5px solid;
    animation: slideDown 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}
.premium-toast.success { border-left-color: #00E676; }
.premium-toast.error { border-left-color: #FF1744; }
.premium-toast i { font-size: 24px; }
.premium-toast.success i { color: #00E676; }
.premium-toast.error i { color: #FF1744; }
.toast-msg { font-weight: 500; font-size: 15px; flex: 1; }
@keyframes slideDown { 0% { top: -100px; opacity: 0; } 100% { top: 20px; opacity: 1; } }
@keyframes fadeOut { 0% { opacity: 1; } 100% { opacity: 0; margin-top: -50px; } }

/* Admin Layout */
.admin-nav {
    background: #1a1a2e;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-nav a { color: #fff; text-decoration: none; margin: 0 15px; font-weight: 500; }
.admin-nav a.active { color: #e94560; border-bottom: 2px solid #e94560; padding-bottom: 5px; }
.admin-container { padding: 30px; }
.total-shape {
    background: linear-gradient(to right, #00b4db, #0083b0);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: fit-content;
    margin: 0 auto 30px auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.total-shape h2 { font-size: 28px; margin-top: 10px; }

/* Table */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f8f9fa; font-weight: 600; color: #333; }
tr:hover { background: #fdfdfd; }
.eye-icon { color: #e94560; cursor: pointer; font-size: 20px; transition: 0.3s; }
.eye-icon:hover { color: #1a1a2e; }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    color: #333;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}
.modal-close:hover { color: #dc3545; }
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.detail-row strong { color: #555; }
.modal-actions { margin-top: 20px; display: flex; gap: 15px; }

/* Wallet UI */
.wallet-ui { color: #28a745; font-weight: bold; }
