/* ============================================
   Be Insan Center - Main Stylesheet
   ============================================ */

:root {
    --primary: #2c7be5;
    --secondary: #6b48ff;
    --accent: #f6c90e;
    --dark: #1a1f36;
    --light-bg: #f8f9ff;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f8f9ff;
    color: #333;
    line-height: 1.7;
}

/* Navbar */
#mainNav {
    background: linear-gradient(135deg, #1a1f36 0%, #2c3e6b 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 12px 0;
}
#mainNav .navbar-brand { font-size: 1.6rem !important; letter-spacing: -0.5px; }
#mainNav .nav-link { font-weight: 600; padding: 8px 14px !important; transition: color 0.2s; }
#mainNav .nav-link:hover { color: #f6c90e !important; }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1f36 0%, #2c3e6b 60%, #6b48ff 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="30" fill="rgba(255,255,255,0.02)"/><circle cx="80" cy="70" r="50" fill="rgba(255,255,255,0.03)"/></svg>');
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
.hero .lead { font-size: 1.2rem; opacity: 0.85; }

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 35px rgba(0,0,0,0.12); }

/* Service Cards */
.service-card { border-top: 4px solid var(--primary); }
.service-card .service-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, #e8f1ff, #d0e4ff);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--primary);
    margin: 0 auto 1rem;
}

/* Specialist Cards */
.specialist-card .specialist-img {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.specialist-card .specialist-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: white;
    margin: 0 auto;
}

/* Stats */
.stat-box {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
}
.stat-box .stat-number {
    font-size: 3rem; font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); border: none; }
.btn-primary:hover { background: linear-gradient(135deg, #2567c7, #5a38e0); }
.btn-warning { color: #1a1f36; font-weight: 700; }

/* Section titles */
.section-title {
    position: relative; padding-bottom: 15px; margin-bottom: 2rem;
    font-weight: 800;
}
.section-title::after {
    content: '';
    position: absolute; bottom: 0; right: 0;
    width: 60px; height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 2px;
}
.section-title.text-center::after { right: 50%; transform: translateX(50%); }

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1f36 0%, #2c3e6b 100%);
    color: #adb5bd;
}
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #f6c90e; }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.1);
    color: white; border-radius: 50%;
    text-decoration: none; transition: background 0.2s;
}
.social-links a:hover { background: #f6c90e; color: #1a1f36; }

/* Forms */
.form-control, .form-select {
    border-radius: 10px; border: 2px solid #e8ecf0;
    padding: 10px 15px; font-family: 'Cairo', sans-serif;
    transition: border-color 0.3s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(44,123,229,0.1);
}

/* Badges */
.badge { font-family: 'Cairo', sans-serif; font-weight: 600; }

/* Admin Sidebar */
.admin-sidebar {
    width: 260px; min-height: 100vh;
    background: linear-gradient(180deg, #1a1f36 0%, #2c3e6b 100%);
    position: fixed; top: 0; right: 0; bottom: 0;
    overflow-y: auto; z-index: 1000;
    transition: transform 0.3s;
}
.admin-sidebar .sidebar-brand {
    padding: 20px; text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7); padding: 12px 20px;
    border-radius: 10px; margin: 2px 10px;
    font-weight: 600; transition: all 0.2s;
    display: flex; align-items: center; gap: 10px;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.15); color: white;
}
.admin-sidebar .nav-link i { width: 20px; text-align: center; }

.admin-content {
    margin-right: 260px; padding: 30px;
    min-height: 100vh; background: #f0f2f8;
}

/* Tables */
.table-custom { background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--card-shadow); }
.table-custom thead { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; }
.table-custom thead th { border: none; padding: 14px 16px; font-weight: 600; }
.table-custom tbody td { padding: 12px 16px; vertical-align: middle; }
.table-custom tbody tr:hover { background: #f8f9ff; }

/* Status badges */
.status-pending   { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d1e7dd; color: #0a3622; }
.status-cancelled { background: #f8d7da; color: #58151c; }
.status-completed { background: #cff4fc; color: #055160; }
.status-no_show   { background: #e2e3e5; color: #41464b; }

/* Calendar */
.calendar-wrapper { background: white; border-radius: 16px; box-shadow: var(--card-shadow); overflow: hidden; }
.calendar-header { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; padding: 20px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-day-header { background: #f0f2f8; text-align: center; padding: 10px; font-weight: 700; font-size: 0.85rem; }
.calendar-day {
    min-height: 90px; border: 1px solid #e8ecf0; padding: 8px;
    cursor: pointer; transition: background 0.2s;
}
.calendar-day:hover { background: #f8f9ff; }
.calendar-day.today { background: #e8f1ff; }
.calendar-day .day-num { font-weight: 700; font-size: 1rem; }
.calendar-event {
    font-size: 0.7rem; padding: 2px 6px; border-radius: 4px;
    margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Booking Steps */
.booking-step { display: none; }
.booking-step.active { display: block; }
.step-indicator { display: flex; justify-content: center; gap: 0; margin-bottom: 2rem; }
.step-item {
    display: flex; align-items: center; gap: 0;
}
.step-circle {
    width: 40px; height: 40px; border-radius: 50%;
    background: #e8ecf0; color: #aaa;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem; transition: all 0.3s;
}
.step-circle.active { background: var(--primary); color: white; }
.step-circle.done { background: #28a745; color: white; }
.step-line { width: 60px; height: 3px; background: #e8ecf0; transition: background 0.3s; }
.step-line.done { background: #28a745; }

/* Profile child */
.child-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: white; margin: 0 auto;
}
.profile-tab-content { background: white; border-radius: 0 0 16px 16px; padding: 25px; }

/* Package card */
.package-card {
    border: 2px solid #e8ecf0; border-radius: 12px; padding: 20px;
    transition: border-color 0.3s;
}
.package-card.active-pkg { border-color: #28a745; background: #f8fff9; }
.package-progress { height: 8px; border-radius: 4px; overflow: hidden; background: #e8ecf0; }
.package-progress-bar { height: 100%; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 4px; }

/* Responsive */
@media (max-width: 992px) {
    .admin-sidebar { transform: translateX(100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-content { margin-right: 0; padding: 15px; }
}
@media (max-width: 768px) {
    .hero { min-height: 70vh; }
    .hero h1 { font-size: 2rem; }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
