/* Bold Corporate Design - Header 5 */

/* Override main.css with bold corporate styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
}

/* Corporate Navigation */
.corporate-nav {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-bottom: 3px solid #3b82f6;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 60px;
    height: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.corporate-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd, #60a5fa, #3b82f6);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.corporate-nav-container {
    max-width: none;
    margin: 0;
    padding: 0.4rem 1.4rem;
    min-height: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    flex-wrap: wrap;
}

/* Brand Section */
.corporate-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
    min-height: 40px;
}

.brand-logo-container {
    position: relative;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    position: relative;
    z-index: 2;
}

.brand-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 16px;
    opacity: 0.3;
    filter: blur(8px);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.5; }
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.corporate-brand-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.corporate-brand-title-wrap {
    word-wrap: break-word;
    hyphens: auto;
    max-width: 235px;
    min-width: 150px;
    padding-right: 0px;
}

/* Navigation Links */
.corporate-nav-links {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    flex: 1;
    justify-content: center;
    max-width: 800px;
    flex-wrap: wrap;
    min-height: 40px;
}

.corporate-nav-link {
    display: block;
    text-decoration: none;
    color: #cbd5e1;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.corporate-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.corporate-nav-link:hover::before {
    left: 100%;
}

.nav-link-content {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.875rem;
    position: relative;
    z-index: 2;
}

.corporate-nav-link:hover {
    color: white;
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    text-decoration: none;
}

.corporate-nav-link.active {
    color: white;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

/* Removed active nav indicator styling since indicator is hidden */

.nav-icon {
    font-size: 1.125rem;
    opacity: 0.9;
}

.nav-text {
    font-size: 0.9625rem; /* Increased by 10% from 0.875rem */
    font-weight: 600;
}

.nav-indicator {
    display: none; /* Removed the bright blue indicator bar */
}

.corporate-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    min-width: 20px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* User Section */
.corporate-user-section {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    min-height: 48px;
}

.corporate-user-dropdown {
    position: relative;
}

.corporate-user-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    backdrop-filter: blur(10px);
}

.corporate-user-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.user-avatar-container {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.user-status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* User info styles removed - now only showing avatar in toggle */

.dropdown-arrow {
    color: #94a3b8;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.corporate-user-toggle:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* User Menu */
.corporate-user-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.corporate-user-menu.show {
    display: block;
    animation: slideDownCorporate 0.3s ease;
}

@keyframes slideDownCorporate {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.menu-header {
    padding: 0.6rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
}

.menu-user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.menu-user-details {
    flex: 1;
}

.menu-name {
    font-size: 1.2375rem; /* Increased by 10% from 1.125rem */
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.menu-email {
    font-size: 0.9625rem; /* Increased by 10% from 0.875rem */
    color: #64748b;
    font-weight: 500;
}

.menu-section {
    padding: 0.3rem 0;
}

.menu-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 2rem 0.225rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.225rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.3rem 2rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #3b82f6;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.menu-item:hover::before {
    transform: scaleY(1);
}

.menu-item:hover {
    background: #f8fafc;
    color: #1e293b;
    text-decoration: none;
}

.menu-item.logout {
    color: #dc2626;
}

.menu-item.logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.menu-item.logout::before {
    background: #dc2626;
}

.menu-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.menu-item:hover .menu-item-icon {
    background: #e2e8f0;
    color: #3b82f6;
}

.menu-item.logout:hover .menu-item-icon {
    background: #fee2e2;
    color: #dc2626;
}

.menu-item-content {
    flex: 1;
}

.menu-item-title {
    font-size: 0.9625rem; /* Increased by 10% from 0.875rem */
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.menu-item-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
}

.logout-title {
    font-size: 1rem;
    font-weight: 700;
}

/* Main Content */
.corporate-main-content {
    margin-top: 150px; /* Set to exact header height to prevent jump */
    min-height: calc(100vh - 150px);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transition: margin-top 0.3s ease;
}

/* Prevent transition on initial load */
.corporate-main-content.loaded {
    transition: margin-top 0.3s ease;
}

.corporate-main-content.with-nav {
    margin-top: 150px; /* Set to exact header height to prevent jump */
}

.corporate-main-content.no-nav {
    margin-top: 0;
}

.corporate-content-area {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Breadcrumb */
.corporate-breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #64748b;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.breadcrumb-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #1e40af;
    text-decoration: none;
}

.breadcrumb-current {
    color: #1e293b;
    font-weight: 700;
}

.breadcrumb-separator {
    color: #cbd5e1;
    font-weight: 600;
}

/* Page Header - Reverted to Original Styling */
.corporate-page-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.5rem;
    margin: -1rem -1rem 1.5rem -1rem;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding-top: calc(1.5rem + 20px);
    padding-left: calc(1.5rem + 20px);
}

.page-header-background {
    display: none;
}

.page-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    color: inherit;
}

.page-title-section {
    flex: 1;
}

.page-header-credits {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    padding-left: 2rem;
}

.page-header-credits .credits-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.page-header-credits .credits-text {
    font-size: .9rem;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
    cursor: pointer;
}

.page-header-credits .credits-text:hover {
    color: #2563eb;
    text-decoration: underline;
}

.page-header-credits .credits-warning {
    font-size: .95rem;
    color: #f59e0b;
    font-weight: 500;
    margin-top: 0.25rem;
    white-space: nowrap;
    transition: color 0.2s ease;
    cursor: pointer;
}

.page-header-credits .credits-warning:hover {
    color: #d97706;
    text-decoration: underline;
}

.credits-banner {
    background: #fef3c7;
    border-bottom: 1px solid #fde68a;
    padding: 0.75rem 1.5rem;
    margin: 0 -1rem 1.5rem -1rem;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.credits-banner:hover {
    background: #fde68a;
}

.credits-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

.credits-banner-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.credits-banner-text {
    font-size: 0.95rem;
    color: #92400e;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.credits-banner:hover .credits-banner-text {
    color: #78350f;
}

.corporate-page-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.corporate-page-description {
    color: #6c757d;
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.corporate-page-actions {
    display: none;
}

/* Flash Messages */
.corporate-flash-message {
    position: fixed !important;
    top: 6rem !important; /* Moved down to avoid overlap with "Ready to Push" message */
    right: 1.5rem !important;
    left: auto !important;
    bottom: auto !important;
    max-width: 450px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000 !important;
    display: flex;
    /* Completely isolate from any parent element positioning */
    isolation: isolate !important;
    contain: layout style !important;
    transform: none !important;
    will-change: auto !important;
    backface-visibility: hidden !important;
    perspective: none !important;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    animation: slideInRightCorporate 0.4s ease;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.flash-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    z-index: 1;
}

.flash-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    position: relative;
    z-index: 2;
}

.flash-icon-container {
    flex-shrink: 0;
}

.flash-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.flash-text {
    flex: 1;
}

.flash-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.flash-message {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #64748b;
}

.corporate-flash-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.corporate-flash-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Flash Message Types */
.flash-success .flash-background {
    background: #10b981;
}

.flash-success .flash-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.flash-success .flash-title {
    color: #065f46;
}

.flash-success .flash-message {
    color: #047857;
}

.flash-error .flash-background {
    background: #ef4444;
}

.flash-error .flash-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.flash-error .flash-title {
    color: #991b1b;
}

.flash-error .flash-message {
    color: #dc2626;
}

.flash-warning .flash-background {
    background: #f59e0b;
}

.flash-warning .flash-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.flash-warning .flash-title {
    color: #92400e;
}

.flash-warning .flash-message {
    color: #d97706;
}

.flash-info .flash-background {
    background: #3b82f6;
}

.flash-info .flash-icon {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
}

.flash-info .flash-title {
    color: #1e40af;
}

.flash-info .flash-message {
    color: #2563eb;
}

@keyframes slideInRightCorporate {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1080px) {
    .corporate-nav-container {
        padding: 0.4rem 1.4rem;
    }
    
    .corporate-nav-links {
        gap: 0.25rem;
        flex-wrap: wrap;
    }
    
    .nav-link-content {
        padding: 0.3rem 0.7rem;
    }
    
    .corporate-brand-title {
        font-size: 1.25rem;
    }

    .corporate-brand-title-wrap {
        max-width: 200px;
    }
}



/* Desktop mode - hide tooltips */
@media (min-width: 1080px) {
    .corporate-nav-link::after {
        display: none !important;
    }
    
    /* Hide tooltip arrow but keep shimmer effect */
    .corporate-nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s ease;
        bottom: auto !important;
        transform: none !important;
        border: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}




/* Mobile Navigation Styles */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: #667eea;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-nav-toggle:hover .hamburger-line {
    background: #5a67d8;
}

.mobile-nav-toggle.mobile-nav-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.mobile-nav-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.mobile-nav-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 880px) {
    .corporate-nav {
        min-height: 72px;
        height: auto;
    }
    
    .corporate-nav-container {
        padding: 0.75rem 1rem;
        gap: 1rem;
        min-height: 72px;
    }
    
    .corporate-main-content {
        margin-top: 130px; /* Adjusted for mobile header height */
    }
    
    .corporate-main-content.with-nav {
        margin-top: 130px; /* Adjusted for mobile header height */
    }
    
    .corporate-brand-title {
        font-size: 1.15rem;
        transition: font-size 0.3s ease;
    }
    
    .corporate-brand-title-wrap {
        max-width: 150px;
    }
    
    /* Make app icon 20% smaller */
    .brand-logo svg {
        width: 32px !important; /* 20% smaller than 40px */
        height: 32px !important;
        transition: all 0.3s ease;
    }
    
    /* Make profile menu icon 20% smaller */
    .user-avatar {
        width: 32px !important; /* 20% smaller than 40px */
        height: 32px !important;
        transition: all 0.3s ease;
    }
    
    .menu-item-icon svg {
        width: 14px !important; /* 20% smaller than 17px */
        height: 14px !important;
        transition: all 0.3s ease;
    }
    
    /* Show hamburger menu on mobile */
    .mobile-nav-toggle {
        display: flex;
    }
    
    /* Mobile navigation dropdown */
    .corporate-nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0,0,0,0.1);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 0.09rem;
        gap: 0.15rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .corporate-nav-links.mobile-nav-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .corporate-nav-link {
        width: 100%;
        padding: 0.03rem 0.35rem;
        border-radius: 6px;
        transition: all 0.2s ease;
        color: #2d3748;
    }
    
    .corporate-nav-link:hover {
        background: rgba(102, 126, 234, 0.15);
        color: #1a202c;
    }
    
    .corporate-nav-link.active {
        background: rgba(102, 126, 234, 0.2);
        color: #1a202c;
        font-weight: 600;
    }
    
    .nav-link-content {
        justify-content: flex-start;
        gap: 0.5rem;
    }
    
    .nav-icon {
        font-size: 1.125rem;
        opacity: 0.8;
    }
    
    .corporate-nav-link:hover .nav-icon,
    .corporate-nav-link.active .nav-icon {
        opacity: 1;
    }
    
    .nav-text {
        display: block !important;
        font-size: 1rem;
        font-weight: 500;
        color: inherit;
    }
    
    .corporate-content-area {
        padding: 1.5rem 1rem;
    }
    
    .corporate-page-header {
        margin: -0.75rem -0.75rem 1rem -0.75rem;
        padding: 1rem;
        padding-top: calc(1rem + 20px);
        padding-left: calc(1rem + 20px);
    }
    
    .corporate-page-title {
        font-size: 1.5rem;
    }
    
    .corporate-flash-message {
        top: 5.5rem !important; /* Moved down to avoid overlap with "Ready to Push" message on mobile */
        right: 1rem !important;
        left: 1rem !important;
        bottom: auto !important;
        max-width: none;
        position: fixed !important;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .corporate-nav-container {
        padding: 0 0.75rem;
    }
    
    .corporate-content-area {
        padding: 1rem 0.75rem;
    }
    
    .corporate-page-title {
        font-size: 1.75rem;
    }
    
    .corporate-user-toggle {
        padding: 0.5rem;
    }
    
    .corporate-page-header {
        margin: -0.5rem -0.5rem 1rem -0.5rem;
        padding: 1rem;
        padding-top: calc(1rem + 20px);
        padding-left: calc(1rem + 20px);
        text-align: center;
    }
    
    .corporate-page-title {
        font-size: 1.5rem;
    }
    
    .corporate-page-description {
        font-size: 0.9rem;
    }
    
    .corporate-brand-title-wrap {
        max-width: 120px;
        font-size: 1.1rem;
    }
    
    .corporate-nav-links {
        gap: 0.2rem;
    }
}

/* ========================================
   DASHBOARD ENHANCEMENTS
   ======================================== */

/* Enhanced Dashboard Styling */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .main-content {
        order: -1;
    }
    
    .sidebar {
        order: 1;
        max-width: 400px; /* Prevent sidebar from getting too wide on narrow screens */
    }
}

@media (max-width: 868px) {
    .dashboard-grid {
        padding: 0 0.5rem;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .main-content {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .dashboard-grid {
        padding: 0 0.25rem;
    }
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
    padding-top: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

/* Enhanced Stat Card Styling */
.stat-card.clickable {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-card.clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.stat-card.clickable:hover::before {
    left: 100%;
}

.stat-card.clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

/* Enhanced Card Styling */
.sync-status-card,
.quick-actions-card,
.recent-activity-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.sync-status-card:hover,
.quick-actions-card:hover,
.recent-activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* Quick Actions Styling */
.quick-actions-card {
    margin-top: 1rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.quick-action-btn:hover::before {
    left: 100%;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: rgba(0,0,0,0.15);
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.quick-action-icon {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    width: 1.5rem;
    text-align: center;
}

.quick-action-text {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
    margin-left: 0;
    padding-left: 0;
}

/* Data Quality Score Enhancement */
.data-quality-score {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1;
}

.data-quality-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.quality-item {
    text-align: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.quality-item-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.quality-item-value {
    font-weight: 600;
    color: #333;
}

/* App Summary Enhancement */
.app-summary-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    font-weight: 400;
}

.app-summary-features {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.app-summary-features h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.app-summary-features ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #666;
}

.app-summary-features li {
    margin-bottom: 0.25rem;
}

/* Sync Animation Styles */
.sync-spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sync-button-disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Sync Progress Animation */
.sync-progress {
    color: #666;
    font-style: italic;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.sync-error {
    color: #dc3545;
    font-weight: 500;
}

/* Enhanced Status Badges */
.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.status-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.status-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529;
}

.status-error {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    color: white;
}

/* Enhanced Sync Button */
#sync-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

#sync-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#sync-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Sync message styling */
.sync-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.sync-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.sync-message-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sync-message-icon {
    font-size: 1rem;
}

.sync-message-text {
    font-weight: 500;
}

/* ========================================
   DASHBOARD ENHANCEMENTS - OVERRIDE VERSION
   ======================================== */

/* Enhanced Card Styling - Force Override */
.sync-status-card,
.quick-actions-card,
.recent-activity-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 2rem !important;
}

.sync-status-card:hover,
.quick-actions-card:hover,
.recent-activity-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15) !important;
}

/* Enhanced Stat Card Styling - Force Override */
.stat-card.clickable {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-card.clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.stat-card.clickable:hover::before {
    left: 100%;
}

.stat-card.clickable:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    text-decoration: none;
    color: inherit;
}

/* Quick Actions Styling - Force Override */
.quick-action-btn {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.quick-action-btn:hover::before {
    left: 100%;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
    border-color: rgba(0,0,0,0.15);
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Data Quality Score Enhancement - Force Override */
.data-quality-score {
    font-size: 3.5rem !important;
    font-weight: 700;
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1;
}

/* Enhanced Sync Button - Force Override */
#sync-button {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

#sync-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a67d8, #6b46c1) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Enhanced Status Badges - Force Override */
.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.status-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white;
}

.status-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
    color: #212529;
}

.status-error {
    background: linear-gradient(135deg, #dc3545, #e83e8c) !important;
    color: white;
}

/* ========================================
   DASHBOARD GRID LAYOUT - FROM ORIGINAL
   ======================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 2rem;
    grid-template-areas: 
        "sync stats"
        "actions recent"
        "actions recent";
    margin-bottom: 2rem;
    padding: 0;
}

.sync-status-card { grid-area: sync; }
.stats-grid { grid-area: stats; }
.quick-actions-card { grid-area: actions; }
.recent-activity-card { grid-area: recent; }

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-content: start;
}

/* ========================================
   STAT CARD STYLING - FROM ORIGINAL
   ======================================== */

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
}

.stat-icon {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea20, #764ba220);
    border-radius: 20px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-content .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.25rem 0;
    line-height: 1;
}

.stat-content .stat-label {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   CARD STYLING - FROM ORIGINAL
   ======================================== */

.card {
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
}

.card-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #2d3748;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-body {
    padding: 2rem;
}

.card-footer {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #f1f3f4;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   SYNC STATUS CARD - FROM ORIGINAL
   ======================================== */

.sync-status-card .card-header {
    background: linear-gradient(135deg, #667eea10, #764ba210);
    border-bottom: 1px solid #667eea20;
}

.sync-status-card .card-header h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
}

.sync-info {
    display: grid;
    gap: 1.5rem;
}

.sync-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.sync-item:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    transform: translateX(4px);
}

.sync-label {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sync-value {
    font-weight: 700;
    color: #2d3748;
    font-size: 1.1rem;
}

/* ========================================
   QUICK ACTIONS CARD - FROM ORIGINAL
   ======================================== */

.quick-actions-card .card-header {
    background: linear-gradient(135deg, #667eea10, #764ba210);
    border-bottom: 1px solid #667eea20;
}

.quick-actions-card .card-header h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #e9ecef;
    overflow: hidden;
    min-height: 120px;
}

.quick-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.quick-action:hover::before {
    transform: scaleY(1);
}

.quick-action:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: #667eea;
    text-decoration: none;
    color: inherit;
}

.quick-action-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea20, #764ba220);
    border-radius: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.quick-action:hover .quick-action-icon {
    background: linear-gradient(135deg, #667eea30, #764ba230);
    transform: scale(1.1);
}

.quick-action-content {
    flex: 1;
    position: relative;
}

.quick-action-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.quick-action-desc {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.quick-action-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    min-width: 24px;
    text-align: center;
}

/* ========================================
   RECENT ACTIVITY CARD - FROM ORIGINAL
   ======================================== */

.recent-activity-card .card-header {
    background: linear-gradient(135deg, #667eea10, #764ba210);
    border-bottom: 1px solid #667eea20;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-activity-card .card-header h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.card-header-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: rgba(102, 126, 234, 0.1);
}

.card-header-link:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #5a67d8;
    text-decoration: none;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-item:hover::before {
    opacity: 1;
}

.activity-item:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.activity-icon {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea20, #764ba220);
    border-radius: 12px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-description {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

.activity-description strong {
    color: #667eea;
    font-weight: 700;
}

.activity-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.activity-user {
    font-weight: 600;
    color: #495057;
}

.activity-time {
    color: #6c757d;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.4;
    background: linear-gradient(135deg, #667eea40, #764ba240);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-message {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #495057;
}

.empty-description {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
    color: #6c757d;
}

/* ========================================
   COMPREHENSIVE BUTTON STYLES - FROM ORIGINAL
   ======================================== */

/* Base Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Button Variants */
.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6268, #3d4043);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #1e7e34;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover:not(:disabled) {
    background: #e0a800;
}

/* Override for marked suggestion buttons - ensure they stay yellow */
.btn-warning.apply-suggested-btn,
.suggestion-item.suggestion-marked .btn-warning,
.suggestion-item.suggestion-marked .apply-suggested-btn.btn-warning {
    background: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #212529 !important;
}

.btn-warning.apply-suggested-btn:hover,
.suggestion-item.suggestion-marked .btn-warning:hover,
.suggestion-item.suggestion-marked .apply-suggested-btn.btn-warning:hover {
    background: #e0a800 !important;
    border-color: #d39e00 !important;
    color: #212529 !important;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
}

.btn-outline {
    background: transparent;
    border: 2px solid currentColor;
}

.btn-outline.btn-primary {
    color: #007bff;
}

.btn-outline.btn-primary:hover:not(:disabled) {
    background: #007bff;
    color: white;
}

.btn-outline-danger {
    background: transparent;
    border: 2px solid #dc3545;
    color: #dc3545;
}

.btn-outline-danger:hover:not(:disabled) {
    background: #dc3545;
    color: white;
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    font-size: 1.1em;
}

/* ========================================
   FORM STYLES - FROM ORIGINAL
   ======================================== */

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: auto;
}

/* ========================================
   ALERT STYLES - FROM ORIGINAL
   ======================================== */

/* Flash messages (temporary notifications) */
.corporate-flash-message,
.alert.flash-message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    /* Fixed positioning to prevent content displacement */
    position: fixed !important;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
    transition: all 0.3s ease;
}

/* Static alert boxes (page content) */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    /* Normal document flow positioning */
    position: static;
    max-width: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Flash message specific overrides */
.alert.flash-message.alert-info {
    /* Ensure fixed positioning is maintained and override any conflicting styles */
    position: fixed !important;
    top: 1.5rem !important;
    right: 1.5rem !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 1000 !important;
    transform: none !important;
    margin: 0 !important;
    /* Prevent any parent element transforms from affecting this element */
    will-change: auto !important;
    backface-visibility: hidden !important;
    perspective: none !important;
    /* Ensure this element is not affected by tooltip system */
    pointer-events: none !important;
    /* Prevent any JavaScript from manipulating this element's position */
    position: fixed !important;
    /* Completely isolate from any parent element positioning */
    isolation: isolate !important;
    contain: layout style !important;
}

.alert-icon {
    flex-shrink: 0;
}

/* ========================================
   TABLE STYLES - FROM ORIGINAL
   ======================================== */

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

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.table-striped tbody tr:nth-child(odd) {
    background: #f8f9fa;
}

/* ========================================
   MODAL STYLES - FROM ORIGINAL
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1060;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    min-width: 400px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* ========================================
   UTILITY CLASSES - FROM ORIGINAL
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-none { display: none; }

.flex-1 { flex: 1; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }

.text-muted { color: #6c757d; }
.text-primary { color: #007bff; }
.text-success { color: #28a745; }
.text-warning { color: #ffc107; }
.text-danger { color: #dc3545; }

/* ========================================
   PAGE HEADER & BREADCRUMB STYLES - FROM ORIGINAL
   ======================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.5rem;
    margin: -1rem -1rem 1.5rem -1rem;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-title {
    font-size: 2rem; /* Smaller page title */
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    word-wrap: break-word;
}

.page-description {
    color: #6c757d;
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    word-wrap: break-word;
}

.page-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-current {
    color: #6c757d;
}

.breadcrumb-separator {
    color: #dee2e6;
}

/* ========================================
   RESPONSIVE DESIGN - FROM ORIGINAL
   ======================================== */

@media (max-width: 1200px) {
    .content-area {
        padding: 1rem;
    }
    
    .page-header {
        margin: -1rem -1rem 1.5rem -1rem;
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
}

@media (max-width: 868px) {
    .content-area {
        padding: 0.75rem;
    }
    
    .page-header {
        margin: -0.75rem -0.75rem 1rem -0.75rem;
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .content-area {
        padding: 0.5rem;
    }
    
    .page-header {
        margin: -0.5rem -0.5rem 1rem -0.5rem;
        padding: 1rem;
        text-align: center;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-description {
        font-size: 0.9rem;
    }
}

/* ========================================
   LOADING & TOAST STYLES - FROM ORIGINAL
   ======================================== */

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 1070;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-left: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-text {
    color: #6c757d;
    margin: 0;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1055;
}

.toast {
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
    padding: 1rem;
    min-width: 300px;
    animation: slideInUp 0.3s ease;
}

/* Flash Messages */
.flash-message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    animation: slideInRight 0.3s ease;
}

.flash-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-message-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.flash-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.flash-message-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
}

.flash-message-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ========================================
   ANIMATIONS - FROM ORIGINAL
   ======================================== */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideInRight {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(100%); }
}

@keyframes slideInUp {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ========================================
   LOGIN PAGE & AUTHENTICATION STYLES - FROM ORIGINAL
   ======================================== */

/* Login Page Specific */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.login-header {
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    grid-column: 1 / -1;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-icon {
    font-size: 3rem;
}

.login-logo h1 {
    margin: 0;
    color: #007bff;
}

.login-subtitle {
    color: #6c757d;
    margin: 0;
}

.login-form-container {
    padding: 2rem;
}

.login-form {
    max-width: 100%;
}

/* Planning Center Authentication Styles */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.9rem;
    position: relative;
}

.planning-center-auth {
    margin-top: 2rem;
}

.planning-center-auth h4 {
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 1.1rem;
}

.oauth-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.oauth-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838, #1ba085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.oauth-description {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0 0 1rem 0;
    text-align: center;
    font-style: italic;
}

.pat-info {
    background: #e7f3ff;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    margin-top: 1rem;
}

.pat-info p {
    margin: 0;
    font-size: 0.9rem;
}

.config-notice {
    background: #fff3cd;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-top: 2rem;
}

.config-notice h4 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.config-notice p {
    color: #856404;
    margin-bottom: 1rem;
}

.config-notice code {
    background: #6c5215;
    color: #fff3cd;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
}

.config-steps {
    margin: 1rem 0 0 1rem;
    color: #856404;
}

.config-steps li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.config-steps a {
    color: #0056b3;
    text-decoration: none;
}

.config-steps a:hover {
    text-decoration: underline;
}

.login-info {
    padding: 2rem;
    background: #f8f9fa;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h3 {
    color: #333;
    margin-bottom: 1rem;
}

.feature-list,
.steps-list {
    margin: 0;
    padding-left: 1rem;
}

.feature-list li,
.steps-list li {
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.security-note {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
}

.security-note h3 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.security-note p {
    color: #856404;
    margin: 0;
    font-size: 0.9rem;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    color: rgba(255,255,255,0.8);
}

.login-footer p {
    margin: 0.25rem 0;
}

/* ========================================
   FOOTER STYLES - FROM ORIGINAL
   ======================================== */

.main-footer {
    background: #343a40;
    color: #adb5bd;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-version {
    color: #6c757d;
}

.footer-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-stat {
    font-size: 0.9rem;
}

.footer-stat strong {
    color: #007bff;
}
