:root {
    --primary-color: #0f9d58;
    --secondary-color: #34a853;
    --accent-color: #00bfa5;
    --success-color: #0f9d58;
    --danger-color: #dc3545;
    --dark-color: #1a1a1a;
    --light-color: #f5f9f7;
    --gradient-start: #0f9d58;
    --gradient-end: #00bfa5;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.navbar {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

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

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.hero-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    animation: pulse 8s ease-in-out infinite;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero-section p {
    font-size: 1.3rem;
    animation: fadeInUp 1.2s ease-out;
}

.hero-section .btn {
    animation: fadeInUp 1.4s ease-out;
    margin: 10px 5px;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: 15px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link {
    color: #495057;
    padding: 12px 20px;
    border-radius: 0;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.rating {
    color: #ffc107;
}

.rating i {
    transition: all 0.3s ease;
}

.rating i:hover {
    transform: scale(1.2);
}

.price-badge {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
}

.image-preview {
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    margin: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.image-preview:hover {
    transform: scale(1.05);
}

.btn {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
}

.order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #cfe2ff;
    color: #084298;
}

.status-completed {
    background: #d1e7dd;
    color: #0f5132;
}

.status-cancelled {
    background: #f8d7da;
    color: #842029;
}

footer {
    background: var(--dark-color);
    transition: all 0.3s ease;
}

footer a {
    transition: all 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.mobile-nav-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    background: var(--primary-color);
    color: white !important;
    border-radius: 8px;
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-sidebar .sidebar-header {
    padding: 20px;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-sidebar .sidebar-close {
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
}

.mobile-sidebar .nav {
    padding: 20px 0;
}

.mobile-sidebar .nav-link {
    padding: 15px 20px;
    color: var(--dark-color);
    border-bottom: 1px solid #eee;
}

.mobile-sidebar .nav-link:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-bottom-nav {
        display: block !important;
    }
    
    body {
        padding-bottom: 60px;
    }
    
    .admin-sidebar {
        display: none;
    }
    
    .hero-section {
        padding: 60px 20px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    footer {
        display: none !important;
    }
    
    .card {
        margin-bottom: 15px;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media print {
    .no-print {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: none;
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 157, 88, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(15, 157, 88, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(15, 157, 88, 0);
    }
}

.animate-slide-in-down {
    animation: slideInDown 0.5s ease-out;
}

.animate-bounce-in {
    animation: bounceIn 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

section {
    animation: fadeInUp 0.8s ease-out;
}

.table {
    animation: fadeIn 0.6s ease-out;
}

.alert {
    animation: slideInRight 0.5s ease-out;
}

.admin-sidebar {
    transition: all 0.3s ease;
}

.admin-sidebar.collapsed {
    margin-left: -250px !important;
}

@media (max-width: 768px) {
    .admin-sidebar.collapsed {
        display: none !important;
    }
}

.mobile-bottom-nav {
    display: none;
    position: fixed !important;
    bottom: 0 !important;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    z-index: 10000 !important;
    padding: 8px 0;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.mobile-bottom-nav .nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-bottom-nav .nav-item {
    text-align: center;
    flex: 1;
}

.mobile-bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    color: var(--dark-color);
    font-size: 0.7rem;
    text-decoration: none;
}

.mobile-bottom-nav .nav-link i {
    font-size: 1.5rem;
    margin-bottom: 2px;
    color: var(--primary-color);
}

.mobile-bottom-nav .nav-link.active,
.mobile-bottom-nav .nav-link.active i {
    color: var(--primary-color);
    font-weight: bold;
}

.hero-carousel {
    position: relative;
    height: 700px;
    overflow: hidden;
    width: 100%;
}

.hero-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.hero-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 8s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 157, 88, 0.88) 0%, rgba(0, 191, 165, 0.88) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.hero-overlay p {
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .mobile-layout-reverse {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .mobile-image-right {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .mobile-image-right img {
        max-height: 250px;
        object-fit: cover;
        width: 100%;
    }
    
    .hero-carousel {
        height: 500px;
    }
    
    .hero-overlay h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-overlay p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-overlay .btn {
        font-size: 0.9rem !important;
        padding: 0.6rem 1.5rem !important;
    }
    
    .hero-overlay .col-md-8 {
        padding: 0 1.5rem;
    }
}

/* Enhanced Topbar Styles */
.top-info-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.top-info-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1) rotate(5deg);
}


/* Colorful Badges */
.badge {
    font-weight: 600;
    padding: 0.5em 0.8em;
    border-radius: 20px;
}

.bg-purple {
    background-color: #764ba2 !important;
}

.text-purple {
    color: #764ba2 !important;
}

/* Enhanced Cards with Gradients */
.card {
    border-radius: 15px;
    overflow: hidden;
}

.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Colorful Buttons */
.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Colorful Alert Boxes */
.alert {
    border-radius: 12px;
    border: none;
}

.alert-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.alert-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* Enhanced Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control i {
    font-size: 1.5rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicators button.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.carousel-indicators button:hover {
    background: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .carousel-control {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
    
    .carousel-control i {
        font-size: 1.2rem;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .carousel-indicators button {
        width: 8px;
        height: 8px;
    }
    
    .carousel-indicators button.active {
        width: 20px;
    }
}
