* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Heebo', sans-serif;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 50%, #6b8e23 100%);
    min-height: 100vh;
    color: #333;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

/* Logo Container */
.logo-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.logo-placeholder {
    background: white;
    border-radius: 20px;
    padding: 20px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 25px;
    width: 320px;
    height: 180px;
    position: relative;
    overflow: hidden;
    transform: scale(1.2);
}

.logo-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: -1;
}

/* Temporary logo styles - show text and icons */
.logo-text,
.logo-illustration {
    display: flex;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-line {
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    color: #4a7c59;
    font-size: 2.5rem;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.logo-line:first-child {
    font-size: 2.8rem;
}

.logo-line:last-child {
    font-size: 2.2rem;
    color: #6b8e23;
}

.logo-illustration {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.farmer-icon {
    font-size: 3.5rem;
    animation: wave 3s ease-in-out infinite;
}

.vegetables-icon {
    font-size: 2.2rem;
    animation: float 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Header Content */
.header-content {
    margin-top: 20px;
}

.header-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #fff, #e8f5e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.season-indicator {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Calculator Menu */
.calculator-menu {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

/* Back to Menu Button */
.back-to-menu {
    margin-bottom: 20px;
    text-align: right;
}

.back-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Heebo', sans-serif;
}

.back-btn:hover {
    background: linear-gradient(135deg, #495057, #343a40);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* Welcome text and explanation */
.welcome-text {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-text h2 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: 600;
}

.welcome-text > p {
    color: #4a5568;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.explanation {
    background: #f7fafc;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    text-align: right;
}

.explanation p {
    color: #2d3748;
    font-weight: 500;
    margin-bottom: 10px;
}

.explanation ul {
    list-style: none;
    padding: 0;
}

.explanation li {
    background: white;
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 8px;
    border-right: 4px solid #4a7c59;
    color: #2d3748;
}

.explanation li strong {
    color: #4a7c59;
}

/* Modal buttons styling */
.modal-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.back-to-home-btn {
    background: linear-gradient(135deg, #4a7c59, #6b8e23);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Heebo', sans-serif;
}

.back-to-home-btn:hover {
    background: linear-gradient(135deg, #2d5016, #4a7c59);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
}

.modal-description {
    background: #f7fafc;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    margin-bottom: 20px;
    text-align: center;
}

.modal-description p {
    color: #4a5568;
    font-weight: 500;
    margin: 0;
}

/* Calculator Actions */
.calculator-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.clear-btn {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Heebo', sans-serif;
}

.clear-btn:hover {
    background: linear-gradient(135deg, #c53030, #9c2a2a);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

/* Developer Credit Styles */
.developer-credit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    margin: 10px 0;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    animation: glow 3s ease-in-out infinite alternate;
}

.developer-link {
    color: #ffd700;
    text-decoration: none;
    font-weight: 700;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.developer-link:hover {
    color: #ffed4a;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    transform: scale(1.05);
}

@keyframes glow {
    0% { box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); }
    100% { box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6); }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    color: white;
    padding: 30px 20px;
    margin-top: 50px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #e2e8f0;
}

.footer-credit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 15px 30px;
    border-radius: 25px;
    display: inline-block;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    animation: footerGlow 4s ease-in-out infinite alternate;
}

.footer-link {
    color: #ffd700;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 8px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.footer-link:hover {
    color: #ffed4a;
    text-shadow: 0 0 15px rgba(255, 215, 0, 1);
    transform: scale(1.1);
}

.footer-emoji {
    margin-right: 10px;
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes footerGlow {
    0% { 
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        transform: translateY(0);
    }
    100% { 
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.7);
        transform: translateY(-2px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* VAT Calculator Button Styles */
.vat-profit-btn, .quick-vat-profit-btn {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Heebo', sans-serif;
}

.vat-profit-btn:hover, .quick-vat-profit-btn:hover {
    background: linear-gradient(135deg, #3182ce, #2c5282);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

.vat-profit-btn.active, .quick-vat-profit-btn.active {
    background: linear-gradient(135deg, #2c5282, #2a4365);
    box-shadow: 0 4px 15px rgba(44, 82, 130, 0.4);
}

/* VAT Calculator Modal Styles */
.vat-calc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(5px);
}

.vat-calc-modal.show {
    display: flex;
}

.vat-calc-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.vat-calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.vat-calc-header .modal-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.vat-calc-header .back-to-home-btn {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

.vat-calc-header .back-to-home-btn:hover {
    background: linear-gradient(135deg, #3182ce, #2c5282);
}

.vat-calc-header h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.vat-input-group {
    margin-bottom: 20px;
}

.vat-input-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
}

.vat-input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Heebo', sans-serif;
}

.vat-input-group input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.vat-profit-section {
    margin-bottom: 20px;
}

.vat-profit-section label {
    display: block;
    margin-bottom: 10px;
    color: #4a5568;
    font-weight: 500;
}

.vat-profit-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.vat-custom-profit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vat-custom-profit input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Heebo', sans-serif;
}

.vat-custom-profit input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.vat-custom-profit span {
    color: #4a5568;
    font-weight: 500;
}

.vat-results {
    margin-top: 25px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

.vat-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.1rem;
}

.vat-result-item:last-child {
    border-bottom: none;
}

.vat-result-item.highlight {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    margin: 0 -20px;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.2rem;
}

.vat-result-item.highlight span:last-child {
    font-size: 1.4rem;
}

.calculator-menu h2 {
    color: #4a5568;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
}

.menu-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.menu-btn {
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: 'Heebo', sans-serif;
}

.menu-btn:hover {
    border-color: #4a7c59;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 124, 89, 0.2);
}

.menu-btn.active {
    border-color: #4a7c59;
    background: linear-gradient(135deg, #f7fafc, #e8f5e8);
    box-shadow: 0 8px 25px rgba(74, 124, 89, 0.3);
}

.menu-icon {
    font-size: 3rem;
    margin-bottom: 5px;
}

.menu-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
}

.menu-desc {
    font-size: 1rem;
    color: #718096;
    font-weight: 500;
}

.calc-toggle-btn {
    padding: 12px 24px;
    border: 2px solid #4a7c59;
    background: white;
    color: #4a7c59;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Heebo', sans-serif;
    font-size: 1rem;
}

.calc-toggle-btn:hover {
    background: #f7fafc;
    transform: translateY(-2px);
}

.calc-toggle-btn.active {
    background: #4a7c59;
    color: white;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
}

main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.calculator-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.input-section h2,
.results-section h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Heebo', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Heebo', sans-serif;
    background: white;
    cursor: pointer;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: #f7fafc;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.unit-display {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 0.9rem;
    pointer-events: none;
}

.form-group {
    position: relative;
}

.profit-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.profit-btn {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Heebo', sans-serif;
}

.profit-btn:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.profit-btn.active {
    background: #4a7c59;
    color: white;
    border-color: #4a7c59;
}

.custom-profit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-profit input {
    flex: 1;
}

.custom-profit span {
    font-weight: 500;
    color: #4a5568;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #2d3748;
    gap: 12px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #4a7c59;
    border-color: #4a7c59;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.checkbox-label:hover .checkmark {
    border-color: #4a7c59;
    transform: scale(1.05);
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.result-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.result-card.highlight {
    background: linear-gradient(135deg, #4a7c59, #6b8e23);
    color: white;
    border-color: #4a7c59;
}

.result-card h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.result-card.highlight h3 {
    color: rgba(255,255,255,0.9);
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

.result-card.highlight .price {
    color: white;
}

.profit-details {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.profit-details h3 {
    margin-bottom: 15px;
    color: #4a5568;
    font-size: 1.1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.save-btn {
    width: 100%;
    padding: 15px;
    background: #4a7c59;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Heebo', sans-serif;
}

.save-btn:hover:not(:disabled) {
    background: #2d5016;
    transform: translateY(-2px);
}

.save-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.saved-products-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.saved-products-section h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.search-bar {
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Heebo', sans-serif;
}

.search-bar input:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.filters {
    margin-bottom: 20px;
}

.filter-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.filter-options select {
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Heebo', sans-serif;
    background: white;
    cursor: pointer;
}

.filter-options select:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.products-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.product-item {
    background: #f7fafc;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.product-item:hover {
    border-color: #4a7c59;
    transform: translateX(-5px);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.product-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
}

.delete-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: #c53030;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.9rem;
    color: #4a5568;
}

.no-products {
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    padding: 40px;
}

.actions {
    display: flex;
    gap: 10px;
}

.export-btn,
.clear-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Heebo', sans-serif;
}

.export-btn {
    background: #4299e1;
    color: white;
}

.export-btn:hover {
    background: #3182ce;
}

.report-btn {
    background: #ed8936;
    color: white;
}

.report-btn:hover {
    background: #dd6b20;
}

.clear-btn {
    background: #e53e3e;
    color: white;
}

.clear-btn:hover {
    background: #c53030;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }
    
    .calculator-section {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .profit-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-profit-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vat-profit-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vat-calc-content {
        padding: 20px;
        max-width: 95%;
    }
    
    .vat-calc-header h3 {
        font-size: 1.3rem;
    }
    
    .product-details {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .filter-options {
        grid-template-columns: 1fr;
    }
    
    /* Logo responsive for tablet */
    .logo-placeholder {
        padding: 15px 20px;
        gap: 20px;
        width: 280px;
        height: 160px;
        transform: scale(1.1);
    }
    
    .logo-line {
        font-size: 2rem;
    }
    
    .logo-line:first-child {
        font-size: 2.3rem;
    }
    
    .logo-line:last-child {
        font-size: 1.8rem;
    }
    
    .farmer-icon {
        font-size: 2.8rem;
    }
    
    .vegetables-icon {
        font-size: 1.8rem;
    }
    
    .header-content h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    /* Logo responsive for mobile */
    .logo-placeholder {
        padding: 12px 15px;
        gap: 15px;
        width: 240px;
        height: 140px;
        flex-direction: column;
        text-align: center;
        transform: scale(1);
    }
    
    .logo-text {
        order: 2;
    }
    
    .logo-illustration {
        order: 1;
        flex-direction: row;
        gap: 10px;
    }
    
    .logo-line {
        font-size: 1.8rem;
    }
    
    .logo-line:first-child {
        font-size: 2rem;
    }
    
    .logo-line:last-child {
        font-size: 1.6rem;
    }
    
    .farmer-icon {
        font-size: 2.5rem;
    }
    
    .vegetables-icon {
        font-size: 1.5rem;
    }
    
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    .header-content p {
        font-size: 1rem;
    }
    
    .season-indicator {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    /* Calculator menu responsive */
    .menu-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .menu-btn {
        padding: 20px 15px;
    }
    
    .menu-icon {
        font-size: 2.5rem;
    }
    
    .menu-title {
        font-size: 1.1rem;
    }
    
    .menu-desc {
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card,
.product-item {
    animation: fadeIn 0.3s ease;
}

/* Scrollbar Styling */
.products-list::-webkit-scrollbar {
    width: 8px;
}

.products-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.products-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.products-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Quick Calculator Styles */
.quick-calc-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #4a7c59, #6b8e23);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(74, 124, 89, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2s infinite;
}

/* Reverse Calculator Styles */
.reverse-calc-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(237, 137, 54, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulseReverse 2s infinite;
}

/* VAT Calculator Styles */
.vat-calc-toggle {
    position: fixed;
    bottom: 150px;
    right: 30px;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulseVat 2s infinite;
}

.quick-calc-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 124, 89, 0.4);
}

.reverse-calc-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(237, 137, 54, 0.4);
}

.vat-calc-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(66, 153, 225, 0.4);
}

@keyframes pulse {
    0% { box-shadow: 0 8px 25px rgba(74, 124, 89, 0.3); }
    50% { box-shadow: 0 8px 25px rgba(74, 124, 89, 0.6); }
    100% { box-shadow: 0 8px 25px rgba(74, 124, 89, 0.3); }
}

@keyframes pulseReverse {
    0% { box-shadow: 0 8px 25px rgba(237, 137, 54, 0.3); }
    50% { box-shadow: 0 8px 25px rgba(237, 137, 54, 0.6); }
    100% { box-shadow: 0 8px 25px rgba(237, 137, 54, 0.3); }
}

@keyframes pulseVat {
    0% { box-shadow: 0 8px 25px rgba(66, 153, 225, 0.3); }
    50% { box-shadow: 0 8px 25px rgba(66, 153, 225, 0.6); }
    100% { box-shadow: 0 8px 25px rgba(66, 153, 225, 0.3); }
}

@keyframes buttonPulse {
    0% { box-shadow: 0 6px 20px rgba(74, 124, 89, 0.3); }
    50% { box-shadow: 0 6px 20px rgba(74, 124, 89, 0.6); }
    100% { box-shadow: 0 6px 20px rgba(74, 124, 89, 0.3); }
}

.calc-icon {
    font-size: 1.5rem;
}

.calc-text {
    font-size: 1rem;
}

.quick-calc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.quick-calc-modal.show {
    display: flex;
}

.quick-calc-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-calc-header {
    background: linear-gradient(135deg, #4a7c59, #6b8e23);
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-calc-header .modal-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.quick-calc-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.quick-calc-body {
    padding: 25px;
}

.quick-input-group {
    margin-bottom: 25px;
}

.quick-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.quick-input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: 'Heebo', sans-serif;
    text-align: center;
}

.quick-input-group input:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.quick-profit-section {
    margin-bottom: 25px;
}

.quick-profit-section label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.quick-profit-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.quick-profit-btn {
    padding: 12px 8px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Heebo', sans-serif;
    font-size: 0.9rem;
}

.quick-profit-btn:hover {
    border-color: #4a7c59;
    background: #f7fafc;
    transform: translateY(-2px);
}

.quick-profit-btn.active {
    background: #4a7c59;
    color: white;
    border-color: #4a7c59;
}

.quick-custom-profit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-custom-profit input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Heebo', sans-serif;
    text-align: center;
}

.quick-custom-profit input:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.quick-custom-profit span {
    font-weight: 600;
    color: #4a5568;
    font-size: 1.1rem;
}

.quick-shipping-section {
    margin-bottom: 25px;
}

.quick-shipping-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.quick-shipping-section input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Heebo', sans-serif;
    text-align: center;
}

.quick-shipping-section input:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.quick-unit-display {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 0.9rem;
    pointer-events: none;
}

.quick-shipping-section {
    position: relative;
}

.quick-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #2d3748;
    gap: 12px;
    font-size: 1rem;
}

.quick-checkbox-label input[type="checkbox"] {
    display: none;
}

.quick-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
}

.quick-checkbox-label input[type="checkbox"]:checked + .quick-checkmark {
    background: #4a7c59;
    border-color: #4a7c59;
}

.quick-checkbox-label input[type="checkbox"]:checked + .quick-checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.quick-checkbox-label:hover .quick-checkmark {
    border-color: #4a7c59;
    transform: scale(1.05);
}

.quick-results {
    background: #f7fafc;
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #e2e8f0;
}

.quick-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
}

.quick-result-item:last-child {
    border-bottom: none;
}

.quick-result-item.highlight {
    background: linear-gradient(135deg, #4a7c59, #6b8e23);
    color: white;
    margin: 0 -20px;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
}

.quick-result-item.highlight span:last-child {
    font-size: 1.4rem;
}

.calculate-btn {
    width: 200px !important;
    padding: 18px 30px !important;
    background: linear-gradient(135deg, #4a7c59, #6b8e23) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: 'Heebo', sans-serif !important;
    margin: 20px auto !important;
    display: block !important;
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    animation: buttonPulse 2s infinite !important;
}

.calculate-btn::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;
}

.calculate-btn:hover::before {
    left: 100%;
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #2d5016, #4a7c59) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 12px 35px rgba(74, 124, 89, 0.4) !important;
}

.calculate-btn:active {
    transform: translateY(-1px) scale(1.02) !important;
}

/* Force calculate button styling */
button.calculate-btn,
input.calculate-btn,
#calculateQuickBtn,
#calculateVatBtn {
    width: 200px !important;
    padding: 18px 30px !important;
    background: linear-gradient(135deg, #4a7c59, #6b8e23) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: 'Heebo', sans-serif !important;
    margin: 20px auto !important;
    display: block !important;
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    animation: buttonPulse 2s infinite !important;
}

/* Reverse Calculator Modal Styles */
.reverse-calc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.reverse-calc-modal.show {
    display: flex;
}

.reverse-calc-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease;
}

.reverse-calc-header {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reverse-calc-header .modal-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.reverse-calc-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.reverse-calc-body {
    padding: 25px;
}

.reverse-input-group {
    margin-bottom: 25px;
}

.reverse-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.reverse-input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: 'Heebo', sans-serif;
    text-align: center;
}

.reverse-input-group input:focus {
    outline: none;
    border-color: #ed8936;
    box-shadow: 0 0 0 3px rgba(237, 137, 54, 0.1);
}

.reverse-results {
    background: #f7fafc;
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    margin-bottom: 20px;
}

.reverse-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
}

.reverse-result-item:last-child {
    border-bottom: none;
}

.reverse-result-item.highlight {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
    margin: 0 -20px;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
}

.reverse-result-item.highlight span:last-child {
    font-size: 1.4rem;
}

/* Mobile Responsive for Quick Calculator */
@media (max-width: 768px) {
    .quick-calc-toggle {
        bottom: 20px;
        left: 20px;
        padding: 12px 16px;
    }
    
    .reverse-calc-toggle {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
    }
    
    .vat-calc-toggle {
        bottom: 20px;
        right: 80px;
        padding: 12px 16px;
    }
    
    .calc-text {
        display: none;
    }
    
    .quick-calc-content,
    .reverse-calc-content,
    .vat-calc-content {
        width: 95%;
        margin: 20px;
    }
    
    .quick-profit-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .vat-profit-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .quick-profit-btn {
        padding: 10px 6px;
        font-size: 0.8rem;
    }
    
    .vat-profit-btn, .quick-vat-profit-btn {
        padding: 10px 6px;
        font-size: 0.8rem;
    }
    
    .back-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .menu-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .menu-btn {
        padding: 20px 15px;
    }
    
    .menu-title {
        font-size: 1.1rem;
    }
    
    .menu-desc {
        font-size: 0.8rem;
    }
    
    .vat-calc-toggle {
        right: 20px;
        bottom: 160px;
    }
}
