/* =================================================================
   PROFESSIONAL TOPBAR STYLES
   Only applies to pages with the professional-topbar component
   Does NOT affect cart or checkout pages
   ================================================================= */

/* Prevent topbar styles from affecting cart/checkout pages */
.cart-page .professional-topbar,
.checkout-page .professional-topbar {
    display: none !important;
}

.professional-topbar {
    background: linear-gradient(135deg, #7eb883 0%, #90c695 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #6fa574;
}

.topbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 30px;
    max-width: 100%;
    gap: 30px;
}

/* Page Title Section */
.topbar-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a3a20;
    flex-shrink: 0;
}

.topbar-title i {
    font-size: 28px;
    color: #1a3a20;
}

.topbar-title h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #1a3a20;
    letter-spacing: 0.5px;
}

/* Navigation Links */
.topbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.topbar-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: rgba(26, 58, 32, 0.7);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.5);
}

.topbar-nav-link i {
    font-size: 18px;
    transition: all 0.3s ease;
}

.topbar-nav-link:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #1a3a20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.topbar-nav-link.active {
    background: white;
    color: #28a745;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.25);
    transform: translateY(-2px);
}

.topbar-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 3px 3px 0 0;
}

.topbar-nav-link.active i {
    transform: scale(1.1);
    color: #28a745;
}

/* Right Side Actions */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.topbar-datetime {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a3a20;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: none;
}

.topbar-datetime i {
    font-size: 16px;
    color: #1a3a20;
}

.topbar-date {
    color: #1a3a20;
    font-weight: 500;
    padding-left: 8px;
    border-left: 1px solid rgba(26, 58, 32, 0.3);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .topbar-nav {
        gap: 4px;
    }

    .topbar-nav-link {
        padding: 8px 14px;
        font-size: 14px;
    }

    .topbar-nav-link span {
        display: none;
    }

    .topbar-nav-link i {
        font-size: 20px;
    }

    .topbar-title h1 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .topbar-container {
        flex-direction: column;
        padding: 12px 15px;
        gap: 15px;
    }

    .topbar-title {
        width: 100%;
        justify-content: center;
    }

    .topbar-nav {
        width: 100%;
        justify-content: space-around;
        gap: 4px;
    }

    .topbar-nav-link {
        flex-direction: column;
        padding: 8px 10px;
        font-size: 12px;
    }

    .topbar-nav-link i {
        font-size: 20px;
    }

    .topbar-nav-link span {
        display: block;
        font-size: 11px;
    }

    .topbar-actions {
        width: 100%;
        justify-content: center;
    }

    .topbar-datetime {
        font-size: 12px;
    }

    .topbar-date {
        display: none;
    }
}
