/* Updated modern styles */
body { font-family: 'Inter', sans-serif; background: #f8fafc; margin: 0; padding: 0; color: #334155; }

/* Admin Nav */
.admin-nav { background: white; color: #334155; padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.admin-nav .logo-wrapper { display: flex; align-items: center; }

/* Buttons */
.btn { padding: 10px 18px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: all 0.2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.btn-danger { background: #ef4444; color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: #10b981; color: white; }
.btn-success:hover { background: #059669; }
.btn-primary { background: #3b82f6; color: white; }
.btn-primary:hover { background: #2563eb; }
.btn-warning { background: #f59e0b; color: white; }
.btn-warning:hover { background: #d97706; }

/* Login View */
.login-logo { margin-bottom: 10px; }
#admin-login-view { height: 100vh; display: flex; align-items: center; justify-content: center; background: #f1f5f9; }
.login-box { background: white; padding: 50px 40px; border-radius: 16px; width: 100%; max-width: 400px; text-align: center; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.login-box input { width: 100%; padding: 14px 16px; margin: 0 0 20px 0; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; outline: none; transition: border-color 0.2s; box-sizing: border-box;}
.login-box input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.password-wrapper { position: relative; margin-bottom: 20px; }
.password-wrapper input { margin-bottom: 0; padding-right: 45px; }
.toggle-password { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #94a3b8; transition: color 0.2s; }
.toggle-password:hover { color: #3b82f6; }

/* Dashboard View */
#admin-dashboard-view { display: none; padding-bottom: 50px; }
.dashboard-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }

/* Metrics Grid */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 35px; }
.metric-card { background: white; padding: 25px; border-radius: 16px; display: flex; align-items: center; gap: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transition: transform 0.2s; border: 1px solid #f1f5f9; }
.metric-card:hover { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); }
.mc-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mc-info p { margin: 0 0 5px 0; color: #64748b; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.mc-info h3 { margin: 0; font-size: 1.8rem; color: #0f172a; font-weight: 800; }

.tabs { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 25px; border-bottom: 2px solid #e2e8f0; padding-bottom: 10px; }
.tab { padding: 10px 20px; background: transparent; border-radius: 8px; cursor: pointer; font-weight: 600; color: #64748b; transition: all 0.2s; }
.tab:hover { background: #f1f5f9; color: #334155; }
.tab.active { background: #e0e7ff; color: #4f46e5; }

table { width: 100%; background: white; border-collapse: collapse; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
th, td { padding: 18px 20px; text-align: left; border-bottom: 1px solid #e2e8f0; }
th { background: #f8fafc; font-weight: 600; color: #475569; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
tbody tr:hover { background: #f8fafc; }
tbody tr:last-child td { border-bottom: none; }

/* Billing Modal */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); align-items: center; justify-content: center; backdrop-filter: blur(4px); z-index: 50;}
.modal-content { background: white; padding: 40px; border-radius: 16px; width: 450px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.modal-content h3 { margin-top: 0; font-size: 1.5rem; color: #1e293b; }
.modal-content label { display: block; font-weight: 600; color: #475569; margin: 15px 0 5px; font-size: 0.9rem; }
.modal-content input { width: 100%; padding: 12px 15px; border: 1px solid #cbd5e1; border-radius: 8px; box-sizing: border-box; outline: none; transition: border-color 0.2s; }
.modal-content input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }