/* BMOS Web Hosting Stylesheet */
:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --secondary: #0f172a;
    --accent: #10b981;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
}

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

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Search Box */
.search-box {
    display: flex;
    max-width: 650px;
    margin: 0 auto;
    background: #ffffff;
    padding: 6px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    padding: 0.8rem 1.8rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Pricing Grid */
.pricing-section {
    padding: 1rem 0;
}

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

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

.section-title p {
    color: var(--text-muted);
}

/* Pricing Grid */
.pricing-section {
    padding: 4rem 0;
}

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

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

.section-title p {
    color: var(--text-muted);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Forces exactly 4 equal columns side-by-side */
    gap: 1.5rem;
    align-items: stretch;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on tablets/medium screens */
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr; /* Single column stack on mobile phones */
    }
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.pricing-card.popular {
    border: 2px solid var(--primary);
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent);
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.pricing-card .price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.pricing-card ul li {
    padding: 0.5rem 0;
    color: var(--text-main);
    border-bottom: 1px dashed var(--border-color);
}

.pricing-card ul li i {
    color: var(--accent);
    margin-right: 0.5rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.feature-card {
    background: var(--card-bg);
    padding: 1.8rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
}

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

/* Dynamic Page Content */
.content-box {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: #94a3b8;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-desc {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Admin Styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--secondary);
    color: #fff;
    padding: 1.5rem;
}

.admin-sidebar .brand-logo {
    color: #fff;
    margin-bottom: 2rem;
}

.admin-nav a {
    display: block;
    color: #94a3b8;
    padding: 0.8rem 1rem;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.admin-nav a:hover, .admin-nav a.active {
    background: var(--primary);
    color: #fff;
}

.admin-main {
    flex: 1;
    padding: 2rem;
    background: #f1f5f9;
}

.admin-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th, .table td {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.table th {
    background: #f8fafc;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 180px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 0.5rem 0;
    z-index: 1100;
    border: 1px solid var(--border-color);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.dropdown-menu a:hover, .dropdown-menu a.active {
    background: var(--bg-light);
    color: var(--primary);
}

.brand-logo .site-logo {
    height: 65px;
    width: auto;
    display: block;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: var(--secondary);
}

.slider-container {
    position: relative;
    width: 100%;
}

.slide {
    display: none;
    padding: 5rem 0;
    text-align: center;
    animation: fadeIn 0.8s ease-in-out;
}

.slide.active {
    display: block;
}

.slide-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

@keyframes fadeIn {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 2rem;
    }
}

/* Floating Client Login Button */
.floating-client-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--primary);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 9999;
    transition: var(--transition);
}

.floating-client-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(2, 132, 199, 0.5);
    color: #ffffff;
}

@media (max-width: 768px) {
    .floating-client-btn {
        bottom: 15px;
        right: 15px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}


/* Modal Overlay Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

/* Floating Client Button Styling */
.floating-client-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* Horizontal Side-by-Side Pricing Layout */
.workspace-horizontal-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.workspace-row-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 280px 1fr 200px;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.workspace-row-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.workspace-row-card.popular {
    border: 2px solid var(--primary);
}

.workspace-row-card .plan-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--secondary);
}

.workspace-row-card .plan-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.workspace-row-card .plan-pricing {
    text-align: left;
}

.workspace-row-card .plan-pricing .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.workspace-row-card .plan-pricing .price span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.workspace-row-card .plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
}

.workspace-row-card .plan-features li {
    font-size: 0.85rem;
    color: var(--text-main);
}

.workspace-row-card .plan-features li i {
    color: #10b981;
    margin-right: 6px;
}

@media (max-width: 992px) {
    .workspace-row-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: left;
    }
    .workspace-row-card .plan-features ul {
        grid-template-columns: 1fr;
    }
}

/* Flexible pricing grid that handles any number of plans perfectly */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

/* Prevent billing cycle from dropping to a weird new line */
.pricing-card .price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
    white-space: nowrap;
}

.pricing-card .price span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}


@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 1.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-color);
        gap: 1rem;
        text-align: left;
    }
    
    .nav-menu.show {
        display: flex !important;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        background: transparent;
    }
}


/* Modern Admin Dashboard Overhaul Styles */
:root {
    --admin-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

body {
    background-color: var(--admin-bg);
}

/* Dashboard Header & Metrics Row */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 1.75rem;
    color: var(--text-main);
    font-weight: 700;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-card i {
    font-size: 2rem;
    color: var(--primary);
    background: #e0f2fe;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
}

.metric-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.metric-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Content Panels */
.admin-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.panel-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.panel-header h2 {
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 600;
    margin: 0;
}

/* Modernized Tables */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.modern-table th {
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.modern-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.modern-table tr:last-child td {
    border-bottom: none;
}

.modern-table tr:hover {
    background: #f8fafc;
}

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

.badge-status.active {
    background: #dcfce7;
    color: #15803d;
}

.badge-category {
    background: #f1f5f9;
    color: #475569;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Buttons */
.btn-action {
    background: var(--primary);
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.btn-action:hover {
    background: var(--primary-hover);
    color: #fff;
}