/* eeasy.in Ad Server - Admin CSS
   Theme: Navy #0a1628 + Gold #C9A84C (matches Elite Assured) */

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f4f6f9;
    color: #2a2a2a;
    line-height: 1.5;
}

/* ==== LOGIN PAGE ==== */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1628 0%, #1a2942 100%);
}
.login-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-brand { text-align: center; margin-bottom: 30px; }
.login-brand h1 { color: #0a1628; margin: 0; font-size: 32px; }
.login-brand h1 span { color: #C9A84C; }
.login-brand p { color: #888; margin: 8px 0 0; font-size: 14px; }
.login-footer { text-align: center; color: #999; font-size: 12px; margin-top: 30px; }

/* ==== TOP BAR ==== */
.topbar {
    background: #0a1628;
    color: #fff;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 60px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.brand { font-size: 18px; }
.brand strong { color: #fff; }
.brand strong span { color: #C9A84C; }
.brand small { display: block; font-size: 10px; color: #C9A84C; letter-spacing: 1px; text-transform: uppercase; }
.nav { display: flex; margin-left: 40px; gap: 4px; flex: 1; }
.nav a {
    color: #ccc;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}
.nav a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav a.active { background: #C9A84C; color: #0a1628; font-weight: 600; }
.user-info { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.btn-logout {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

/* ==== MAIN ==== */
.main-content { max-width: 1200px; margin: 0 auto; padding: 30px 24px; }
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.page-header h1 { margin: 0; color: #0a1628; font-size: 24px; }
.footer { text-align: center; padding: 30px; color: #888; font-size: 12px; }
.footer a { color: #0a1628; }

/* ==== ALERTS ==== */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-error { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.alert-info { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }

/* ==== STATS GRID ==== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.stat-card {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.stat-num { font-size: 36px; font-weight: 700; color: #0a1628; }
.stat-label { color: #888; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card.tracking-disabled { background: #fff8e8; }
.stat-card small { display: block; margin-top: 8px; color: #aaa; font-size: 11px; }

/* ==== SLOTS GRID ==== */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.slot-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e8ec;
}
.slot-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.slot-head h3 { margin: 0; color: #0a1628; font-size: 16px; }
.slot-head code { background: #f4f6f9; padding: 2px 6px; border-radius: 3px; font-size: 11px; color: #666; }
.slot-desc { color: #888; font-size: 13px; margin-bottom: 12px; }
.slot-stats { display: flex; gap: 16px; font-size: 13px; color: #666; margin-bottom: 12px; }
.slot-stats strong { color: #0a1628; }
.slot-actions { display: flex; gap: 8px; }

/* ==== TABLES ==== */
.filter-bar { margin-bottom: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.filter {
    background: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    border: 1px solid #e5e8ec;
}
.filter.active, .filter:hover { background: #0a1628; color: #C9A84C; border-color: #0a1628; }

.ads-table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ads-table th {
    background: #0a1628;
    color: #C9A84C;
    text-align: left;
    padding: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ads-table td { padding: 12px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.ads-table tr:hover { background: #f9fafb; }
.ads-table .actions { white-space: nowrap; }
.status-toggle {
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.status-toggle.on { background: #d4edda; color: #155724; }
.status-toggle.off { background: #f1f3f5; color: #6c757d; }

/* ==== FORMS ==== */
.ad-form, .card form { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #2a2a2a;
}
.form-group input[type=text],
.form-group input[type=url],
.form-group input[type=email],
.form-group input[type=password],
.form-group input[type=number],
.form-group input[type=date],
.form-group input[type=file],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d5dae0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #C9A84C;
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-group small { display: block; margin-top: 4px; color: #888; font-size: 12px; }
.form-group input:disabled { background: #f4f6f9; color: #999; }

/* ==== BUTTONS ==== */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}
.btn-primary { background: #0a1628; color: #C9A84C; }
.btn-primary:hover { background: #1a2942; }
.btn-secondary { background: #f1f3f5; color: #2a2a2a; }
.btn-secondary:hover { background: #e2e6ea; }
.btn-danger { background: #dc3545; color: #fff; }
.btn-danger:hover { background: #c82333; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-block { width: 100%; display: block; }

/* ==== CARDS / BOXES ==== */
.info-box {
    background: #fff8e8;
    border-left: 4px solid #C9A84C;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}
.info-box h3 { margin-top: 0; color: #0a1628; }
.empty-state { text-align: center; padding: 60px 20px; background: #fff; border-radius: 8px; }
.preview-box { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 20px; }
.preview-frame { background: #f4f6f9; padding: 20px; border-radius: 6px; text-align: center; }
.card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ==== CODE BLOCKS ==== */
.embed-card { background: #fff; padding: 24px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.embed-card h2 { margin-top: 0; color: #0a1628; }
.embed-card h2 small { font-weight: normal; color: #888; font-size: 12px; }
.embed-card h4 { color: #0a1628; margin-top: 20px; margin-bottom: 8px; }
.code-block {
    background: #0a1628;
    color: #c9d1d9;
    padding: 14px;
    border-radius: 6px;
    overflow-x: auto;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    margin: 8px 0;
}
.code-block code { color: #C9A84C; background: transparent; }

/* ==== MOBILE ==== */
@media (max-width: 768px) {
    .topbar { flex-wrap: wrap; height: auto; padding: 12px; }
    .nav { margin-left: 0; margin-top: 8px; width: 100%; flex-wrap: wrap; }
    .form-row { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .ads-table { font-size: 12px; }
    .ads-table th, .ads-table td { padding: 8px; }
}
