/* Australian Agro - Custom Styles */

:root {
    --primary-green: #2E7D32;
    --light-green: #66BB6A;
    --organic-yellow: #F9A825;
    --sky-blue: #4FC3F7;
    --earthy-brown: #8D6E63;
    --light-bg: #F5F5F5;
    --text-dark: #333333;
    --text-muted: #6c757d;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-green) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
    z-index: 1;
    transform: translateX(100%);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transform: translateX(0);
}

/* Add a dark overlay to hero slides for better text visibility */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 40% black overlay for better contrast */
    z-index: 1;
}

.hero-slide .hero-content {
    position: relative;
    z-index: 2; /* Ensure content is above the overlay */
}

/* Enhanced text visibility for hero section */
.hero-section .gradient-text {
    color: white !important;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
}

.hero-section .text-warning {
    color: #FFD700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    font-weight: 600 !important;
}

.hero-section .text-white {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    font-weight: 500 !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.slider-btn.prev-btn {
    left: 2rem;
}

.slider-btn.next-btn {
    right: 2rem;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

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

.indicator.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

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

.hero-image {
    animation: slideInRight 1s ease-out;
}

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

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 3;
    pointer-events: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

.indicator:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive Design for Slider */
@media (max-width: 768px) {
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 15px;
    }
    
    .next-btn {
        right: 15px;
    }
    
    .slider-indicators {
        bottom: 20px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Admin Panel Styles */
.admin-sidebar {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    min-height: 100vh;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

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

.admin-content {
    padding-top: 2rem;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

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

.stat-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
}

.stat-card p {
    color: #6c757d;
    font-weight: 500;
    margin: 0;
}

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

.dashboard-card:hover {
    transform: translateY(-2px);
}

.dashboard-card .card-header {
    border-radius: 15px 15px 0 0;
    border: none;
}

.bg-success-custom {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green)) !important;
}

/* Admin Table Styles */
.admin-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.admin-table .table {
    margin: 0;
}

.admin-table .table th {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.admin-table .table td {
    padding: 1rem;
    border-color: #e9ecef;
    vertical-align: middle;
}

/* Admin Form Styles */
.admin-form {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.admin-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.admin-form .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

/* Admin Button Styles */
.btn-admin {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-sidebar {
        min-height: auto;
    }
    
    .admin-content {
        padding-top: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
}

/* Feature Boxes */
.feature-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #e9ecef !important;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--light-green) !important;
}

/* Products Section Styling */
.products-title {
    background: linear-gradient(135deg, #2E7D32 0%, #66BB6A 25%, #4CAF50 50%, #8BC34A 75%, #CDDC39 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.products-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2E7D32, #66BB6A, #4CAF50);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.products-subtitle {
    color: #6c757d;
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 1rem;
    position: relative;
}

.products-subtitle::before {
    content: '🌱';
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    background: white;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2E7D32, #66BB6A, #4CAF50);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(46, 125, 50, 0.15);
    border-color: #2E7D32;
}

.price-tag {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 25%, #FFD23F 50%, #06FFA5 75%, #3D5A80 100%);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-top: 15px;
    font-weight: 800;
    font-size: 1.2rem;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.price-tag::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 ease;
}

.price-tag:hover::before {
    left: 100%;
}

.price-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.price-tag span {
    color: #FFFFFF !important;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
}

/* Opportunity Steps */
.opportunity-step {
    padding: 2rem 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

/* Testimonial Cards */
.testimonial-card {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.stars {
    color: var(--organic-yellow);
}

/* Buttons */
.btn-success {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: var(--light-green);
    border-color: var(--light-green);
    transform: translateY(-2px);
}

.btn-warning {
    background-color: var(--organic-yellow);
    border-color: var(--organic-yellow);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #f57f17;
    border-color: #f57f17;
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

/* Tables */
.table-success {
    background-color: var(--light-green) !important;
}

.table-success th {
    border-color: var(--primary-green);
    color: white;
    font-weight: 600;
}

/* Dashboard Styles */
.dashboard-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: none;
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.income-card {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.income-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.income-card p {
    opacity: 0.9;
    margin-bottom: 0;
}

/* Team Tree */
.team-tree {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.tree-node {
    background: var(--light-bg);
    border: 2px solid var(--light-green);
    border-radius: 10px;
    padding: 1rem;
    margin: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tree-node:hover {
    background: var(--light-green);
    color: white;
    transform: scale(1.05);
}

.tree-node.active {
    background: var(--primary-green);
    color: white;
}

/* Wallet Cards */
.wallet-card {
    background: linear-gradient(135deg, var(--sky-blue), #29b6f6);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.wallet-card h4 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Forms */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--light-green);
    box-shadow: 0 0 0 0.2rem rgba(102, 187, 106, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Admin Panel */
.admin-sidebar {
    background: var(--primary-green);
    min-height: 100vh;
    padding: 2rem 0;
}

.admin-sidebar .nav-link {
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 10px;
    margin: 0.25rem 1rem;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.admin-content {
    background: var(--light-bg);
    min-height: 100vh;
    padding: 2rem;
}

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-card .icon.text-success {
    color: var(--primary-green) !important;
}

.stat-card .icon.text-warning {
    color: var(--organic-yellow) !important;
}

.stat-card .icon.text-info {
    color: var(--sky-blue) !important;
}

.stat-card .icon.text-danger {
    color: #e74c3c !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .dashboard-card {
        margin-bottom: 1rem;
    }
    
    .income-card h3 {
        font-size: 2rem;
    }
    
    /* Products Section Mobile */
    .products-title {
        font-size: 2.2rem;
    }
    
    .products-title::after {
        width: 60px;
        height: 3px;
    }
    
    .products-subtitle {
        font-size: 1.1rem;
    }
    
    .admin-sidebar {
        min-height: auto;
    }
}

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

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

/* Loading Spinner */
.spinner-border-success {
    color: var(--primary-green);
}

/* Alert Styles */
.alert-success {
    background-color: rgba(46, 125, 50, 0.1);
    border-color: var(--light-green);
    color: var(--primary-green);
}

.alert-warning {
    background-color: rgba(249, 168, 37, 0.1);
    border-color: var(--organic-yellow);
    color: #f57f17;
}

/* Progress Bars */
.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(45deg, var(--light-green), var(--primary-green));
    border-radius: 5px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--light-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}

/* Utility Classes */
.text-success-custom {
    color: var(--primary-green) !important;
}

.bg-success-custom {
    background-color: var(--primary-green) !important;
}

.border-success-custom {
    border-color: var(--light-green) !important;
}

.shadow-custom {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
}

.rounded-custom {
    border-radius: 15px !important;
}
