/* ============================================================
   🎨 SHARED STYLES — Sab Pages Ke Liye
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Arial, sans-serif; }
body { background: #f0f4f8; }

/* ===== NAVBAR ===== */
.navbar {
    background: #fff;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 8px;
}
.navbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    color: #0f172a;
}
.navbar .brand img { height: 35px; width: auto; border-radius: 6px; }
.navbar .brand span { color: #3b82f6; }
.navbar .nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.navbar .nav-links a {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: 0.3s;
}
.navbar .nav-links a:hover { background: #f1f5f9; color: #0f172a; }
.navbar .nav-links a.active { background: #0f172a; color: #fff; }
.navbar .right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-primary { background: #3b82f6; color: #fff; }
.btn-primary:hover { background: #2563eb; }
.btn-success { background: #22c55e; color: #fff; }
.btn-success:hover { background: #16a34a; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-secondary { background: #64748b; color: #fff; }
.btn-secondary:hover { background: #475569; }
.btn-warning { background: #f59e0b; color: #fff; }
.btn-warning:hover { background: #d97706; }
.btn-sm { padding: 4px 12px; font-size: 12px; min-width: auto; }

/* ===== CARDS ===== */
.card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 18px 20px;
    margin-bottom: 20px;
}
.card h3 {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card h3 i { color: #3b82f6; }

/* ===== TEXT ===== */
.text-muted { color: #64748b; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: #fff;
    border-radius: 20px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 32px;
    animation: fadeUp 0.3s ease;
}
.modal-box .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.modal-box .modal-header h2 { font-size: 18px; }
.modal-box .modal-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
}
.modal-box .modal-close:hover { background: #e2e8f0; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== FORM ===== */
.form-group { margin-bottom: 12px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    margin-bottom: 4px;
}
.form-group label .required { color: #dc2626; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: #3b82f6;
}

/* ===== MSG BOX ===== */
.msg-box {
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    display: none;
    font-size: 14px;
}
.msg-box.success { display: block; background: #dcfce7; color: #15803d; }
.msg-box.error { display: block; background: #fef2f2; color: #b91c1c; }
.msg-box.info { display: block; background: #eff6ff; color: #1e40af; }

/* ===== GRID ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid-2 p { font-size: 13px; }
.grid-2 p strong { color: #0f172a; }

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.stat-card {
    background: #fff;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}
.stat-card .label { font-size: 12px; color: #64748b; font-weight: 500; }
.stat-card .value { font-size: 20px; font-weight: 800; color: #0f172a; }

/* ===== SOCIAL LINKS ===== */
.social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}
.social-grid .btn-social {
    padding: 10px 20px;
    font-size: 13px;
    min-width: 140px;
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
}
.social-grid .btn-social:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.social-grid .btn-social.whatsapp { background: #25d366; }
.social-grid .btn-social.telegram { background: #26a5e4; }
.social-grid .btn-social.linkedin { background: #0a66c2; }
.social-grid .btn-social.google { background: #ea4335; }
.social-grid .btn-social.youtube { background: #ff0000; }
.social-grid .btn-social.instagram { background: #e4405f; }
.social-grid .btn-social.facebook { background: #1877f2; }
.social-grid .btn-social.coming-soon { background: #94a3b8; cursor: not-allowed; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .navbar .brand img { height: 28px; }
    .navbar .brand { font-size: 15px; }
    .grid-2 { grid-template-columns: 1fr; }
    .modal-box { padding: 20px 16px; }
}