/* 
  MyPropertyGuru - Premium Design System
  Inspired by modern luxury real estate platforms
*/

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

:root {
    /* Color Palette */
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #020617;
    
    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(15, 23, 42, 0.8);
    
    /* Layout */
    --container: 1440px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--white);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5 {
    color: var(--primary);
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--secondary);
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--accent);
    color: white !important;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--primary);
    color: white !important;
}

.btn-dark:hover {
    background: var(--bg-dark);
    transform: translateY(-2px);
    color: white !important;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-success { background: var(--success); color: white !important; }
.btn-success:hover { background: #059669; transform: translateY(-2px); }

.btn-danger { background: var(--danger); color: white !important; }
.btn-danger:hover { background: #dc2626; transform: translateY(-2px); }

.btn-warning { background: var(--warning); color: white !important; }
.btn-warning:hover { background: #d97706; transform: translateY(-2px); }

.btn i { color: inherit; }

/* Navbar */
.navbar {
    height: var(--header-height);
    background: var(--glass);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* Hero Section */
.hero-premium {
    min-height: 100vh;
    padding-top: var(--header-height);
    background: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.7)), url('/Users/srichandskaushik/.gemini/antigravity/brain/775162ec-0c84-4247-a23a-b1b4cd5d12fd/luxury_mansion_hero_1776860251407.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
}

.hero-premium .container {
    position: relative;
    z-index: 2;
}

.hero-tag {
    background: rgba(37, 99, 235, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero-title-premium {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    max-width: 900px;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-subtitle-premium {
    font-size: 1.25rem;
    max-width: 600px;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.search-bar-premium {
    background: var(--white);
    padding: 0.5rem;
    border-radius: 100px;
    display: flex;
    max-width: 700px;
    box-shadow: var(--shadow-xl);
}

.search-bar-premium input {
    flex: 1;
    border: none;
    padding: 0 2rem;
    font-size: 1rem;
    outline: none;
    color: var(--primary);
}

/* Advantage Section */
.section-premium {
    padding: 8rem 0;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.advantage-card {
    padding: 3rem;
    background: var(--white);
    border-radius: 32px;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.advantage-icon {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    color: var(--accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.property-card {
    background: var(--white);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.4s;
    position: relative;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.property-image {
    height: 280px;
    width: 100%;
    object-fit: cover;
}

.property-tag {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.tag-sale { background: var(--accent); color: white; }
.tag-rent { background: var(--success); color: white; }

.property-content {
    padding: 2.5rem 2rem;
}

.property-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
}

.property-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.property-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--secondary);
    font-size: 0.875rem;
    margin-top: 1.5rem;
}

/* Pricing Grid */
.pricing-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.pricing-card-premium {
    background: var(--white);
    padding: 4rem 3rem;
    border-radius: 40px;
    border: 1px solid #f1f5f9;
    text-align: center;
    transition: all 0.4s;
}

.pricing-card-premium.featured {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-card-premium.featured .price, 
.pricing-card-premium.featured h3 {
    color: var(--white);
}

.pricing-card-premium h3 {
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.pricing-card-premium .price {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.pricing-card-premium ul {
    list-style: none;
    text-align: left;
    margin-bottom: 4rem;
}

.pricing-card-premium ul li {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.pricing-card-premium ul li i {
    color: var(--success);
}

/* Testimonial Section */
.testimonial-premium {
    background: var(--primary);
    padding: 10rem 0;
    color: var(--white);
    border-radius: 60px;
    margin: 8rem 0;
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 4rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.1);
}

/* Footer */
.footer-premium {
    padding: 8rem 0 4rem;
    border-top: 1px solid #f1f5f9;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    color: var(--secondary);
    font-size: 0.875rem;
}

/* Admin Sidebar Enhanced */
.sidebar {
    background: var(--bg-dark);
    width: 280px;
    height: 100vh;
    position: fixed;
    padding: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar-header {
    padding: 2.5rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-header .nav-logo {
    color: var(--white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.sidebar-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Keep it white for dark sidebar if needed, or remove if logo is colored */
}

.sidebar-menu {
    list-style: none;
    padding: 2rem 1rem;
    flex: 1;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s;
}

.sidebar-menu li a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-menu li a:hover, 
.sidebar-menu li a.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white) !important;
}

.sidebar-menu li a.active {
    background: var(--accent);
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.sidebar-footer {
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-info h4 {
    font-size: 0.875rem;
    margin: 0;
    color: white;
}

.user-info p {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
}

/* Dashboard Enhancements */
.chart-container {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    height: 400px; /* Cap the height */
    overflow: hidden;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

@media (max-width: 1024px) {
    .charts-grid { grid-template-columns: 1fr; }
}

/* Stats Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-card h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

/* General Layouts */
.main-content {
    padding: 3rem 0;
    min-height: calc(100vh - var(--header-height));
}

@media (min-width: 1025px) {
    .sidebar ~ .main-content {
        margin-left: 280px;
        padding: 3rem;
    }
}

/* For pages with top navbar */
.navbar ~ .main-content {
    padding-top: calc(var(--header-height) + 2rem);
}

/* Accordion Tables */
.accordion-row { cursor: pointer; transition: background 0.2s; }
.accordion-row:hover { background: #f8fafc !important; }
.details-row { display: none; background: #f8fafc !important; border-top: 1px solid #f1f5f9; }
.details-row.active { display: table-row; }
.details-container { padding: 1.5rem 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; border-left: 4px solid var(--accent); }
.detail-item label { display: block; font-size: 0.75rem; text-transform: uppercase; color: var(--secondary); margin-bottom: 0.5rem; font-weight: 700; letter-spacing: 0.5px; }
.detail-item span { font-weight: 500; color: var(--primary); font-size: 0.9375rem; }
.toggle-icon { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); color: var(--secondary); }
.toggle-icon.active { transform: rotate(180deg); color: var(--accent); }

.card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
}

.table {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.table th {
    background: transparent;
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 1rem 1.5rem;
}

.table tr td {
    background: white;
    padding: 1.5rem;
}

.table tr td:first-child { border-radius: 12px 0 0 12px; }
.table tr td:last-child { border-radius: 0 12px 12px 0; }

.badge {
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-weight: 700;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-active { background: #d1fae5; color: #065f46; }

/* Enhanced Form Styles */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.3s;
    background: #f8fafc;
    color: var(--primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.auth-header {
    text-align: center;
    margin-bottom: 3rem;
}

.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    font-weight: 500;
    font-size: 0.9375rem;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

@media (max-width: 1024px) {
    .pricing-grid-premium, .advantage-grid { grid-template-columns: 1fr; }
    .main-content { margin-left: 0; }
    .sidebar { display: none; }
}