@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Custom Properties / Design Tokens */
:root {
    --bg-main: #0b0f19;
    --bg-card: rgba(30, 41, 59, 0.45);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-card-hover: rgba(6, 182, 212, 0.3);
    
    --primary: #06b6d4;      /* Cyan */
    --primary-hover: #0891b2;
    --primary-glow: rgba(6, 182, 212, 0.15);
    
    --secondary: #8b5cf6;    /* Violet */
    --secondary-hover: #7c3aed;
    
    --success: #10b981;      /* Emerald */
    --warning: #f59e0b;      /* Amber */
    --danger: #ef4444;       /* Rose */
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --glass-blur: blur(12px);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-inter);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-outfit);
    color: var(--text-main);
    font-weight: 700;
}

/* Background Gradients & Glow Effects */
.bg-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-1 {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    filter: blur(80px);
}

.glow-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    filter: blur(80px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Card Utility */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-card-hover);
    box-shadow: 0 8px 32px 0 rgba(6, 182, 212, 0.05);
}

/* Typography & Visual Accents */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Nav Menu / Layout Header */
header {
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-outfit);
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* LANDING PAGE SPECIFIC */
.hero-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    padding: 5rem 0;
}

@media (max-width: 968px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 0;
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 550px;
}

/* WhatsApp Simulator Container */
.simulator-container {
    width: 100%;
    max-width: 400px;
    height: 520px;
    background: #075e54; /* Classic WA deep green */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 8px rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.simulator-header {
    background: #128c7e; /* WA green */
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.sim-avatar {
    width: 40px;
    height: 40px;
    background: #eceff1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #546e7a;
    font-weight: bold;
    font-size: 1.1rem;
    overflow: hidden;
}

.sim-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sim-status {
    flex: 1;
}

.sim-status h4 {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

.sim-status p {
    font-size: 0.75rem;
    opacity: 0.8;
}

.sim-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    margin-right: 4px;
}

.simulator-body {
    flex: 1;
    background: #e5ddd5; /* Standard WA chat background */
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.6rem 0.8rem;
    border-radius: 8.5px;
    font-size: 0.85rem;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

.bubble-received {
    background: white;
    color: #303030;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.bubble-sent {
    background: #dcf8c6; /* Classic WA sent message green */
    color: #303030;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.bubble-time {
    display: block;
    text-align: right;
    font-size: 0.65rem;
    color: #727272;
    margin-top: 0.25rem;
}

.simulator-input-area {
    background: #f0f0f0;
    padding: 0.5rem 0.75rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.sim-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    border: none;
    font-size: 0.9rem;
    outline: none;
}

.sim-send {
    width: 38px;
    height: 38px;
    background: #128c7e;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.sim-send:hover {
    background: #075e54;
    transform: scale(1.05);
}

/* Features Grid */
.features-section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* ADMIN PANEL LAYOUT */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        display: none; /* In production, you'd add a toggle hamburger */
    }
}

.admin-sidebar {
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid var(--border-card);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-logo {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-logo h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

.sidebar-logo span {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-menu li.active a, .sidebar-menu a:hover {
    color: white;
    background: rgba(6, 182, 212, 0.15);
    border-left: 3px solid var(--primary);
}

.admin-content {
    padding: 2.5rem;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Dashboard Summary Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-info h5 {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-info h2 {
    font-size: 2.2rem;
    font-weight: 800;
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.8;
}

/* Calendar Styling */
.calendar-section {
    margin-bottom: 2.5rem;
}

.calendar-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .calendar-week-grid {
        grid-template-columns: 1fr;
    }
}

.calendar-day-col {
    background: rgba(30, 41, 59, 0.25);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    min-height: 250px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.calendar-day-col.today {
    border-color: var(--primary);
    background: rgba(6, 182, 212, 0.05);
}

.day-header {
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-header h4 {
    font-size: 1rem;
    font-weight: 600;
}

.day-header span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.calendar-bookings-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.booking-item-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    transition: var(--transition);
}

.booking-item-card:hover {
    background: rgba(15, 23, 42, 0.8);
    transform: translateX(2px);
}

.booking-time-badge {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.15rem;
    font-size: 0.75rem;
    display: block;
}

.booking-client {
    font-weight: 500;
    color: white;
}

.booking-master {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-top: 0.15rem;
}

.no-bookings {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: auto 0;
    font-style: italic;
}

/* Master Cards / Ratings */
.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.master-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.master-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.master-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.master-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--warning);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.star-icon {
    font-size: 1rem;
}

/* Tables style */
.table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    border-bottom: 2px solid var(--border-card);
    padding: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}

td {
    border-bottom: 1px solid var(--border-card);
    padding: 1rem;
    font-size: 0.9rem;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Badges */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* Alert Notifications */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}
