/**
 * Hippynet 2025 Theme - Clean & Modern
 * Inspired by minimalist design principles
 */

/* ========================================
   1. CSS VARIABLES
   ======================================== */

:root {
    /* Hippynet Brand Colors */
    --hippynet-primary: #1E6BFF;
    --hippynet-secondary: #0B1C8C;
    --hippynet-tertiary: #1B3A5F;
    --hippynet-dark: #3C3C3B;
    --hippynet-contrast: #FFD319;
    
    /* Semantic Colors */
    --hippynet-light: #F8F9FC;
    --hippynet-text: #2C3E50;
    --hippynet-text-muted: #6C757D;
    
    /* Grays */
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
}

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

/* ========================================
   2. RESET & BASE STYLES
   ======================================== */

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

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--gray-800);
    background: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

a {
    color: var(--hippynet-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--hippynet-secondary);
}

p {
    margin-bottom: 1rem;
}

/* ========================================
   3. LAYOUT COMPONENTS
   ======================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: var(--space-sm);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* ========================================
   4. HEADER & NAVIGATION
   ======================================== */

/* Header Container */
.header {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.98);
}

/* Top Bar (when logged in) */
.topbar {
    background: var(--hippynet-light);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.topbar .btn {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
}

/* Main Navbar */
.navbar {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
}

.navbar-light {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--hippynet-primary) !important;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand .logo-img {
    height: 42px;
    width: auto;
}

/* Header Quick Actions */
.header-quick-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-quick-actions .btn,
.navbar-nav.toolbar .btn {
    font-weight: 500;
    padding: 0.375rem 1rem;
    transition: all 0.2s;
}

.btn-outline-primary {
    border-color: var(--hippynet-primary);
    color: var(--hippynet-primary);
}

.btn-outline-primary:hover {
    background: var(--hippynet-primary);
    border-color: var(--hippynet-primary);
    color: white;
    transform: translateY(-1px);
}

/* Navigation Menu */
.main-navbar-wrapper {
    background: #fff;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    color: var(--hippynet-text) !important;
    font-weight: 500;
    padding: 0.875rem 1rem !important;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.navbar-nav .nav-link i {
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.navbar-nav .nav-link:hover {
    color: var(--hippynet-primary) !important;
}

.navbar-nav .nav-link:hover i {
    opacity: 1;
}

/* Clean underline effect */
.navbar-nav .nav-item:not(.dropdown) .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background: var(--hippynet-primary);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.navbar-nav .nav-item:hover .nav-link::after {
    transform: scaleX(1);
}

/* Removed search bar styles - no longer needed */

/* Cart Button */
.cart-btn {
    position: relative;
    color: var(--hippynet-text) !important;
    padding: 0.5rem !important;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    background: var(--gray-50);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-btn:hover {
    background: var(--hippynet-primary);
    color: white !important;
    transform: scale(1.05);
}

.cart-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--hippynet-contrast);
    color: var(--hippynet-dark);
    font-weight: 700;
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile Menu Button */
.navbar-toggler,
.navbar-nav.toolbar button[data-toggle="collapse"] {
    border: 1px solid var(--gray-200);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    background: white;
    transition: all 0.2s;
}

.navbar-toggler:hover,
.navbar-nav.toolbar button[data-toggle="collapse"]:hover {
    background: var(--gray-50);
    border-color: var(--hippynet-primary);
}

/* Notifications button (logged in users) */
#accountNotifications {
    background: transparent;
    border: none;
    color: var(--hippynet-text);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

#accountNotifications:hover {
    color: var(--hippynet-primary);
}

#accountNotifications .badge {
    background: var(--hippynet-contrast);
    color: var(--hippynet-dark);
    padding: 0.2rem 0.4rem;
    margin-left: 0.25rem;
    font-weight: 600;
    border-radius: 10px;
}

/* Active client display */
.active-client {
    background: var(--hippynet-light);
    border-radius: var(--radius-md);
    padding: 0.25rem;
}

.btn-active-client {
    background: white;
    border: 1px solid var(--gray-200);
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--hippynet-text);
    font-size: 0.875rem;
}

.btn-active-client:hover {
    border-color: var(--hippynet-primary);
    color: var(--hippynet-primary);
}

/* Dropdown Menus */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    font-size: 0.9rem;
    color: var(--hippynet-text);
}

.dropdown-item:hover {
    background: var(--hippynet-light);
    color: var(--hippynet-primary);
    transform: translateX(2px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
    opacity: 0.7;
}

.dropdown-divider {
    margin: 0.5rem;
    border-color: var(--gray-200);
}

/* Dropdown toggle arrow */
.dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
    opacity: 0.5;
    transition: transform 0.2s;
}

.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* ========================================
   5. BREADCRUMB
   ======================================== */

.master-breadcrumb {
    background: var(--hippynet-light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb-item {
    color: var(--hippynet-text-muted);
}

.breadcrumb-item.active {
    color: var(--hippynet-text);
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--hippynet-text-muted);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--hippynet-primary);
}

/* ========================================
   6. HOMEPAGE HERO
   ======================================== */

/* Remove gap between navigation and hero */
#main-body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

header.bg-gradient-to-br {
    margin-top: 0 !important;
    /* Adjust height to account for navigation - 100vh minus nav height */
    min-height: calc(100vh - 80px) !important;
}

/* Prevent page scroll jump on load */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Ensure page starts at top */
html, body {
    scroll-padding-top: 0;
}

#main-body {
    scroll-margin-top: 0;
}

.hero-section {
    background: linear-gradient(135deg, var(--hippynet-primary) 0%, var(--hippynet-secondary) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated background pattern */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: drift 20s infinite linear;
}

@keyframes drift {
    0% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(30px) translateY(-30px); }
    100% { transform: translateX(0) translateY(0); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

/* Hero Buttons */
.btn-hero-primary {
    background: var(--hippynet-primary);
    color: white;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s;
}

.btn-hero-primary:hover {
    background: var(--hippynet-secondary);
    color: white;
    transform: translateY(-2px);
}

.btn-hero-outline {
    background: transparent;
    color: var(--hippynet-primary);
    border: 2px solid var(--hippynet-primary);
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s;
}

.btn-hero-outline:hover {
    background: var(--hippynet-primary);
    color: white;
}

/* ========================================
   7. TRUST BAR
   ======================================== */

.trust-bar {
    background: white;
    padding: 2.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    z-index: 1;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-lg);
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--hippynet-primary);
}

.trust-label {
    font-size: 0.875rem;
    color: var(--hippynet-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ========================================
   8. SERVICES SECTION
   ======================================== */

.services-section {
    background: linear-gradient(180deg, var(--hippynet-light) 0%, white 100%);
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.service-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hippynet-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: var(--space-md);
}

.service-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.service-link i {
    font-size: 0.875rem;
    transition: transform 0.2s;
}

.service-card:hover .service-link i {
    transform: translateX(4px);
}

/* ========================================
   9. FEATURES SECTION
   ======================================== */

.features-section {
    padding: 5rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.feature {
    display: flex;
    gap: var(--space-md);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    color: var(--hippynet-primary);
    font-size: 1.25rem;
}

.feature h4 {
    margin-bottom: var(--space-xs);
}

.feature p {
    color: var(--gray-600);
    margin: 0;
}

/* ========================================
   10. QUICK ACTIONS
   ======================================== */

.quick-actions {
    background: var(--hippynet-light);
    padding: 4rem 0;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.action-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: all 0.2s;
    color: var(--gray-800);
}

.action-card:hover {
    border-color: var(--hippynet-primary);
    color: var(--hippynet-primary);
    transform: translateX(4px);
}

.action-card i {
    font-size: 1.5rem;
    color: var(--hippynet-primary);
}

.action-card span {
    font-weight: 600;
}

/* ========================================
   11. CTA SECTION
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--hippynet-primary) 0%, var(--hippynet-secondary) 100%);
    color: white;
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--space-sm);
}

.cta-section p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.btn-cta-primary {
    background: var(--hippynet-contrast);
    color: var(--hippynet-dark);
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: inline-block;
    transition: all 0.2s;
}

.btn-cta-primary:hover {
    background: #FFE666;
    color: var(--hippynet-dark);
    transform: translateY(-2px);
}

.btn-cta-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s;
}

.btn-cta-outline:hover {
    background: white;
    color: var(--hippynet-primary);
}

/* ========================================
   12. SUPPORT SECTION
   ======================================== */

.support-section {
    background: white;
    padding: 4rem 0;
    border-top: 1px solid var(--gray-200);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.support-card {
    background: var(--hippynet-light);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--hippynet-text);
}

.support-card:hover {
    background: white;
    border-color: var(--hippynet-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--hippynet-text);
}

.support-card i {
    font-size: 2rem;
    color: var(--hippynet-primary);
    margin-bottom: var(--space-md);
}

.support-card h4 {
    margin-bottom: var(--space-xs);
    color: var(--gray-900);
}

.support-card p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.875rem;
}

/* ========================================
   13. BUTTONS (Bootstrap Overrides)
   ======================================== */

.btn {
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 10px 24px;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--hippynet-primary);
    border-color: var(--hippynet-primary);
}

.btn-primary:hover {
    background: var(--hippynet-secondary);
    border-color: var(--hippynet-secondary);
}

.btn-secondary {
    background: var(--gray-600);
    border-color: var(--gray-600);
}

.btn-success {
    background: var(--hippynet-contrast);
    border-color: var(--hippynet-contrast);
    color: var(--hippynet-dark);
}

.btn-success:hover {
    background: #FFE666;
    border-color: #FFE666;
    color: var(--hippynet-dark);
}

/* ========================================
   14. CARDS (Bootstrap Overrides)
   ======================================== */

.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: none;
    transition: all 0.2s;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.card-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
}

/* ========================================
   15. FORMS (Bootstrap Overrides)
   ======================================== */

.form-control {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--hippynet-primary);
    box-shadow: 0 0 0 3px rgba(30, 107, 255, 0.1);
}

/* ========================================
   16. TABLES (Bootstrap Overrides)
   ======================================== */

.table {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table thead th {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* ========================================
   17. FOOTER
   ======================================== */

.footer {
    background: linear-gradient(180deg, var(--hippynet-light) 0%, white 100%);
    border-top: 1px solid var(--gray-200);
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.footer .container {
    text-align: center;
}

.footer .nav {
    justify-content: center;
    margin-bottom: 2rem;
}

.footer .nav-link {
    color: var(--hippynet-text-muted);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer .nav-link:hover {
    color: var(--hippynet-primary);
}

.footer .list-inline {
    justify-content: center;
    margin-bottom: 2rem;
}

.footer .list-inline-item {
    margin: 0 0.5rem;
}

.footer .copyright {
    color: var(--hippynet-text-muted);
    font-size: 0.875rem;
    margin: 0;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

/* ========================================
   18. CLIENT AREA ADJUSTMENTS
   ======================================== */

.tiles .tile {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all 0.2s;
}

.tiles .tile:hover {
    border-color: var(--hippynet-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.tile-stat {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hippynet-primary);
}

.tile-title {
    color: var(--gray-600);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   19. PAGE TRANSITIONS
   ======================================== */

#main-body {
    min-height: 60vh;
}

/* Smooth transitions between pages */
section {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   20. RESPONSIVE
   ======================================== */

@media (max-width: 1199px) {
    /* Hide text on smaller screens, show only icons */
    .header-quick-actions .btn span,
    .navbar-nav.toolbar .btn span {
        display: none !important;
    }
    
    .header-quick-actions .btn i,
    .navbar-nav.toolbar .btn i {
        margin: 0 !important;
    }
}

@media (max-width: 991px) {
    .header {
        position: relative;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-brand .logo-img {
        height: 35px;
    }
    
    #mainNavbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--gray-200);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 1rem;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: var(--radius-md);
    }
    
    .navbar-nav .nav-link:hover {
        background: var(--hippynet-light);
    }
    
    .navbar-nav .nav-item:not(.dropdown) .nav-link::after {
        display: none;
    }
    
    .dropdown-menu {
        position: static !important;
        box-shadow: none;
        border: 1px solid var(--gray-200);
        margin: 0.5rem 0 0 2rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .trust-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   21. WHMCS DEV LICENSE BANNER
   ======================================== */

/* Hide development license warning banner for design work */
div[style*="background-color:#ffffd2"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

div[style*="background-color: #ffffd2"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Additional targeting */
div[style*="#ffffd2"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ========================================
   22. UTILITIES
   ======================================== */

.text-muted {
    color: var(--gray-600) !important;
}

.bg-light {
    background: var(--gray-50) !important;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.shadow {
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.shadow-lg {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* ========================================
   23. HIDE WHMCS BRANDING
   ======================================== */

/* Hide "Powered by WHMCompleteSolution" footer links */
p[style*="text-align:center"] a[href*="whmcs.com"],
p[style*="text-align:center"]:has(a[href*="whmcs.com"]),
p[style*="text-align: center"] a[href*="whmcs.com"],
p[style*="text-align: center"]:has(a[href*="whmcs.com"]),
.copyright a[href*="whmcs.com"],
.footer-copyright a[href*="whmcs.com"] {
    display: none !important;
    visibility: hidden !important;
}

/* Hide parent paragraph if it only contains WHMCS link */
p:has(> a[href*="whmcs.com"]:only-child) {
    display: none !important;
}

/* Additional WHMCS branding removal */
a[href*="whmcs.com"][target="_blank"] {
    display: none !important;
}

footer p:has(a[href*="whmcs.com"]) {
    display: none !important;
}
/* Hide breadcrumbs site-wide */
nav[aria-label="breadcrumb"],
.breadcrumb,
ol.breadcrumb,
nav.breadcrumb,
nav.tw-bg-white.tw-border-b {
    display: none !important;
    visibility: hidden !important;
}

/* ========================================
   FORCE WHITE TEXT ON DARK BACKGROUNDS
   ======================================== */

/* DISABLED: Blanket white text rules - causes white text on white backgrounds
   Now using explicit .text-white classes for better control */

/*
.bg-gradient-to-br h1,
.bg-gradient-to-br h2,
.bg-gradient-to-br h3,
.bg-gradient-to-br h4,
.bg-gradient-to-br h5,
.bg-gradient-to-br h6,
section[class*="from-gray-900"] h1,
section[class*="from-gray-900"] h2,
section[class*="from-gray-900"] h3,
section[class*="from-blue-900"] h1,
section[class*="from-blue-900"] h2,
section[class*="from-blue-900"] h3,
section[class*="bg-gray-900"] h1,
section[class*="bg-gray-900"] h2,
section[class*="bg-gray-900"] h3 {
    color: white !important;
}

.bg-gradient-to-br p,
.bg-gradient-to-br span,
section[class*="from-gray-900"] p,
section[class*="from-blue-900"] p,
section[class*="bg-gray-900"] p {
    color: rgba(255, 255, 255, 0.9) !important;
}
*/

/* Only apply white to elements that explicitly have .text-white class */
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6,
.text-white p,
.text-white span {
    color: white !important;
}

/* Links on dark backgrounds - DISABLED to allow per-element color control */
/*
.bg-gradient-to-br a,
section[class*="from-gray-900"] a,
section[class*="from-blue-900"] a {
    color: rgba(255, 255, 255, 0.95) !important;
}
*/

/* Only apply white to links that explicitly have text-white class */
.bg-gradient-to-br a.text-white,
section[class*="from-gray-900"] a.text-white,
section[class*="from-blue-900"] a.text-white {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Specific text-white class should always work */
.text-white,
.text-white * {
    color: white !important;
}

/* ========================================
   MODERN TABLE STYLING - Invoices & Support Tickets
   ======================================== */

/* Enhanced table styling for invoices, tickets, and data tables */
.table,
table.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
}

/* Table headers - Clean minimal design */
.table thead th,
table.table thead th {
    background-color: #F9FAFB;
    color: #374151 !important;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #E5E7EB;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Table body cells */
.table tbody td,
table.table tbody td {
    padding: 0.875rem 1rem;
    color: #374151;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: middle;
}

/* Hover effect on table rows */
.table tbody tr:hover,
table.table tbody tr:hover {
    background-color: rgba(30, 107, 255, 0.02);
    transition: background-color 0.2s;
}

/* Striped rows (if used) */
.table-striped tbody tr:nth-of-type(odd),
table.table-striped tbody tr:nth-of-type(odd) {
    background-color: #F9FAFB;
}

.table-striped tbody tr:nth-of-type(odd):hover,
table.table-striped tbody tr:nth-of-type(odd):hover {
    background-color: rgba(30, 107, 255, 0.03);
}

/* Table footer */
.table tfoot td,
table.table tfoot td {
    background-color: #F9FAFB;
    font-weight: 600;
    color: #111827;
    padding: 1rem;
    border-top: 2px solid #E5E7EB;
}

/* Bordered tables */
.table-bordered,
table.table-bordered {
    border: 1px solid #E5E7EB;
}

.table-bordered th,
.table-bordered td,
table.table-bordered th,
table.table-bordered td {
    border: 1px solid #E5E7EB;
}

/* Responsive tables */
.table-responsive {
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Status badges in tables */
.table .badge,
table.table .badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Action buttons in tables */
.table .btn-sm,
table.table .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all 0.2s;
}

/* Links in tables - Hippynet blue */
.table a:not(.btn),
table.table a:not(.btn) {
    color: #1E6BFF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.table a:not(.btn):hover,
table.table a:not(.btn):hover {
    color: #0B5ED7;
    text-decoration: underline;
}

/* Empty state in tables */
.table tbody tr.no-records td,
table.table tbody tr.no-records td {
    text-align: center;
    padding: 2rem;
    color: #6B7280;
    font-style: italic;
}

/* Mobile responsive table adjustments */
@media (max-width: 768px) {
    .table thead th,
    table.table thead th {
        padding: 0.75rem;
        font-size: 0.75rem;
    }

    .table tbody td,
    table.table tbody td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}


/* ========================================
   FIX FLOATING FOOTER ON SHORT PAGES
   ======================================== */

/* Ensure content area has minimum height to push footer down */
.primary-content {
    min-height: calc(100vh - 250px);
}

#main-body {
    min-height: 100vh;
}

/* ========================================
   TICKET CONVERSATION - iMessage Style (Clean Version)
   ======================================== */

/* Container styling */
.view-ticket .card-body {
    background: transparent !important;
    padding: 1.5rem !important;
    border: none !important;
}

/* Each ticket reply bubble */
.ticket-reply {
    position: relative !important;
    margin: 2.5rem 0 !important;
    clear: both !important;
    max-width: 75% !important;
}

/* Metadata positioned ABOVE bubble */
.ticket-reply .posted-by {
    position: absolute !important;
    top: -1.5rem !important;
    left: 0 !important;
    background: none !important;
    padding: 0 0.5rem !important;
    margin: 0 !important;
    border: none !important;
    font-size: 0.75rem !important;
    color: #6B7280 !important;
    white-space: nowrap !important;
}

/* Staff replies - LEFT side, light blue border */
.ticket-reply.staff {
    float: left !important;
    background: white !important;
    border: 2px solid #1E6BFF !important;
    border-radius: 18px 18px 18px 4px !important;
    padding: 1rem !important;
}

.ticket-reply.staff .posted-by {
    text-align: left !important;
}

.ticket-reply.staff .posted-by-name {
    color: #1E6BFF !important;
    font-weight: 700 !important;
}

.ticket-reply.staff .requestor-badge {
    background: rgba(30, 107, 255, 0.15) !important;
    color: #1E6BFF !important;
    padding: 0.125rem 0.5rem !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 0.7rem !important;
}

.ticket-reply.staff .message,
.ticket-reply.staff .message * {
    color: #111827 !important;
}

/* Customer replies - RIGHT side, solid blue */
.ticket-reply:not(.staff) {
    float: right !important;
    background: #1E6BFF !important;
    border: none !important;
    border-radius: 18px 18px 4px 18px !important;
    padding: 1rem !important;
}

.ticket-reply:not(.staff) .posted-by {
    text-align: right !important;
    right: 0 !important;
    left: auto !important;
}

.ticket-reply:not(.staff) .posted-by,
.ticket-reply:not(.staff) .posted-by-name,
.ticket-reply:not(.staff) .posted-on,
.ticket-reply:not(.staff) .message,
.ticket-reply:not(.staff) .message * {
    color: white !important;
}

/* Message content */
.ticket-reply .message {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Clear floats */
.view-ticket .card-body::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* Remove lines between bubbles */
.view-ticket .card-body {
    border-bottom: none !important;
}
