﻿body {
    font-family: 'Arial', sans-serif;
}

/* Additional styles for your container or content can follow */
.container {
    width: 100%;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.card {
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    border-radius: 1.25rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

    .form-control:focus {
        border-color: #3498DB;
        box-shadow: none;
    }

.form-floating label {
    position: absolute;
    top: -7px;
    left: 0.5rem;
    font-size: 0.875rem;
    color: #6B7280;
    transition: all 0.3s ease;
}

.form-control:focus + .form-floating label,
.form-control:not(:placeholder-shown) + .form-floating label {
    top: -10px;
    font-size: 0.75rem;
    color: #3498DB;
}

.btn-primary {
    background: linear-gradient(to right, #2E7D32, #3498DB);
    border: none;
    border-radius: 1.25rem;
    padding: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        scale: 1.05;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

.eco-card {
    background: linear-gradient(145deg, #e3f2e4 0%, #c8e6da 100%);
    border: 2px solid #4CAF50;
    border-radius: 20px;
    max-width: 90%;
    width: 100%;
    margin: 1rem auto;
    position: relative;
    overflow: hidden;
}

.qr-container {
    width: 100%;
    max-width: 230px;
    border: 3px dashed #81C784;
    background-color: #F1F8E9;
}

.eco-input {
    border-color: #4CAF50;
    color: #1B5E20;
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

.action-buttons {
    flex-wrap: wrap;
}

.eco-btn {
    transition: all 0.3s;
    flex: 1 1 auto;
    min-width: 120px;
    font-size: 0.9rem;
}

.copy-btn {
    background-color: #4CAF50;
    color: white;
}

.share-btn {
    background-color: #81C784;
    color: white;
}

.download-btn {
    background-color: #2E7D32;
    color: white;
}

.nature-deco {
    position: absolute;
    background-color: #81C784;
    opacity: 0.15;
    border-radius: 50%;
}

.leaf-1 {
    width: 60px;
    height: 60px;
    top: -20px;
    left: -20px;
}

.leaf-2 {
    width: 40px;
    height: 40px;
    bottom: -15px;
    right: -15px;
}


.category-card {
    background-color: #f0f9f5; /* Light green background for the cards */
    border: 2px solid #81c784; /* Light green border */
    border-radius: 10px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    width: auto;
    max-width: 250px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

    .category-card:hover {
        background-color: #81c784; /* Highlight on hover */
        transform: scale(1.05); /* Slight zoom effect on hover */
    }

/* Label for the radio button inside category cards */
.card-label-pill {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #388e3c; /* Dark green text */
    cursor: pointer;
    text-align: left;
    width: 100%;
}

    /* Icon inside the label */
    .card-label-pill i {
        font-size: 1.3rem;
        color: #388e3c; /* Icon color */
        margin-right: 10px;
    }



/* Style for the radio button when selected */
.category-card input[type="radio"]:checked + .card-label-pill {
    background-color: #81c784; /* Light green background when checked */
    color: white;
    transform: scale(1.05); /* Slight zoom effect when selected */
}

/* Hover effect on the label */
.card-label-pill:hover {
    color: #2c6e2f;
}

/* Validation message style */
.text-danger {
    color: #e74c3c; /* Red color for error messages */
    font-size: 0.9rem;
}

/* Preview Box */
#previewBox {
    display: block; /* Show preview section */
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

#previewImage {
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
}

#previewLabelText {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-top: 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .category-card {
        width: 100%;
        padding: 10px;
    }

    .card-label-pill {
        font-size: 0.9rem;
    }

    .category-card i {
        font-size: 1rem;
    }
}




@media (max-width: 768px) {
    .eco-card {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .eco-title {
        font-size: 1.1rem;
    }

    .eco-input {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .eco-btn {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .nature-deco {
        display: none;
    }
}

@media (min-width: 1200px) {
    .eco-card {
        max-width: 350px;
    }
}

.category-card {
    position: relative;
    flex: 1 1 100%; /* make full width on small screens */
    max-width: 100%;
}

.card-label-pill {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.5rem 2rem;
    border-radius: 50px;
    background: linear-gradient(145deg, #f0fdf4, #d4f5d0);
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #14532d;
    transition: all 0.2s ease-in-out;
    text-align: right;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
}

    .card-label-pill:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(72, 239, 139, 0.3);
        /*border-color: #a6e9b6;*/
    }

    .card-label-pill:active {
        transform: scale(0.98);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) inset;
    }


    .card-label-pill:hover {
        box-shadow: 0 0 12px rgba(144, 238, 144, 0.6); /* light green glow on hover */
    }

/* Add this if not already working */
.category-card input[type="radio"]:checked + label.card-label-pill {
    background-color: #d4f5d0;
    color: #14532d;
    border-color: #b6eab3;
    box-shadow: 0 0 12px rgba(144, 238, 144, 0.7), 0 0 20px rgba(144, 238, 144, 0.4), 0 0 30px rgba(144, 238, 144, 0.3);
}

/* Responsive tweak: for many items */
@media (max-width: 768px) {
    .card-label-pill {
        padding: 0.5rem 2rem;
        font-size: 0.9rem;
    }

    .category-card {
        flex: 1 1 auto;
        max-width: 100%;
    }
}

.fa-seedling {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.otp-input {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.form-control.otp-input {
    border-radius: 10px;
    padding-left: 0;
    padding-right: 0;
}body {
}
