@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poiret+One&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root{
    --primary:#00FF7F;
    --accent:#000000;

}




*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    
    
}


body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    font-weight: 400;

}

.navbar{
    position: relative;
    top: 0;
    margin-top:-10px !important;
    border-radius: 40px;
    border: 2px solid var(--primary);
    padding-left: 90px;
}

.navbar-text{
    position: relative;
    left: -10px;
    font-size: 20px !important;
}

.navbar-text-a{
    position: relative;
    left: -1px !important;
    margin-left: 50px !important;
    padding-left: 20px !important;
    
    
}


.menu-icon{
    width: 55px;
    color: #fff !important;
    border-color: #fff !important;
}
.menu-icon-2{
    width: 30px !important;
}


.menu-list{
    position: relative;
    left: -60px;
}

.main-text>h2{
    position: relative;
    top: 80px;
    font-size: 35px !important;
    font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  color: #000000;
}

#text-animate{
    color: var(--primary) !important;
    
}

.main-text>p{
        position: relative;
        bottom: -130px;
        font-size: 15px;
        color: #000000;
}


.main-text>h2{
    margin-top: -25px !important;
}

/* Upload Section Styling */
.upload-section {
    margin-top: 40px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* small spacer to ensure previous fixed/absolutely positioned items aren't overlapped */
.upload-section::before{
    content: "";
    width: 100%;
    max-width: 500px;
}

.prompt-container label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 8px;
}

.prompt-container input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #00FF7F;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.3s;
}

.prompt-container input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 255, 127, 0.1);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.action-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.upload-btn {
    background-color: #00FF7F;
    color: #000000;
}

.upload-btn:hover {
    background-color: #00dd6f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 127, 0.3);
}

.camera-btn {
    background-color: #000000;
    color: #ffffff;
}

.camera-btn:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Camera Modal */
.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.camera-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.close-camera {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 1;
}

#camera-stream {
    width: 100%;
    border-radius: 12px;
    border: 3px solid #00FF7F;
}

.capture-btn {
    padding: 14px 32px;
    background-color: #00FF7F;
    color: #000000;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.capture-btn:hover {
    background-color: #00dd6f;
    transform: scale(1.05);
}

/* Loading Indicator */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #00FF7F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    font-size: 16px;
    color: #000000;
    font-weight: 500;
}

/* Result Container */
.result-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    border: 2px solid #00FF7F;
    margin-top: 20px;
}

.result-container h3 {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 15px;
    text-align: center;
}

#result-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

#detection-info {
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    font-size: 14px;
    color: #000000;
}

.detection-item {
    padding: 8px 0;
    border-bottom: 1px solid #eeeeee;
}

.detection-item:last-child {
    border-bottom: none;
}

.detection-item strong {
    color: #00FF7F;
}

/* Responsive Adjustments */
@media screen and (max-width: 480px) {
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .upload-section {
        margin-top: 90px;
        padding: 20px;
    }
}