* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(to bottom, #284b63ff 0%, #c3cfe2 50%,  #284b63ff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
    position: relative;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-section {
    margin: 15vh auto 0; /* Increased from 5vh to 15vh for more spacing */
    text-align: center;
    color: white;
    padding: clamp(15px, 3vw, 25px); /* Responsive padding */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    max-width: 85%; /* Slightly more margin on smaller screens */
    width: 100%;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    box-sizing: border-box;
    font-size: clamp(14px, 2vw, 16px); /* Responsive base font size */
    position: relative;
    z-index: 1;
}

.info-section h2 {
    font-size: clamp(1.2rem, 4vw, 1.8rem); /* Responsive heading size */
    margin-bottom: 15px;
    font-weight: 700;
}

.info-section p {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
    color:  #353535;
}

@media (min-width: 768px) {
    .info-section {
        max-width: 600px; /* Fixed max-width on larger screens */
        padding: 25px;
    }
}

.info-section.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: none !important; /* Force hide */
}

.services-section {
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.services-section h2 {
    font-size: clamp(1.2rem, 4vw, 1.8rem); /* Responsive heading size */
    margin-bottom: 15px;
    font-weight: 700;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    z-index: 10;
    position: relative;
}

.search-box {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

#searchInput {
    width: 100%;
    padding: 15px 15px 15px 50px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
}

#searchInput:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

/* Style the placeholder text */
#searchInput::placeholder {
    font-size: 16px;
}

/* Make placeholder text smaller on mobile */
@media (max-width: 480px) {
    #searchInput::placeholder {
        font-size: 14px;
    }
}

.results {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    font-family: 'Montserrat', sans-serif;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    margin-top: 10px;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

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

.favicon-container {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.result-item:hover {
    background-color: #f8f9fa;
}

.result-icon-container {
    margin-right: 20px;
    font-size: 24px;
    color: #284b63ff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.result-icon-container .favicon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    border-radius: 2px;
}

.result-icon-container i {
    font-size: 24px;
}

.result-content {
    font-family: 'Montserrat', sans-serif !important;
}

.result-content h1 {
    font-size: 24px;
    margin: 0;
    color: #333;
    word-break: break-word;
    font-family: inherit;
}

@media (min-width: 600px) {
    .result-content h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .result-content h1 {
        font-size: 14px;
        line-height: 1.1;
        margin-bottom: 1px;
    }
    
    .result-content p {
        font-size: 12px;
        line-height: 1;
    }
    
    .result-item {
        padding: 8px 12px;
    }
    
    .result-icon-container {
        margin-right: 12px;
        font-size: 18px;
        width: 18px;
        height: 18px;
    }
    
    .result-icon-container i {
        font-size: 18px;
    }
}

.result-content p {
    font-size: 13px;
    color: #777;
    margin: 0;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif !important;
}

.highlight {
    background-color: #f5f5f5; /* Very light gray */
    color: #333; /* Dark gray text for contrast */
    padding: 0 4px;
    border-radius: 4px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.summary-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    min-height: 20px; /* Minimum height on mobile */
    min-width: none;
}

@media (min-width: 600px) {
    .summary-container {
        margin: 30px auto;
        padding: 30px;
    }
}

/* Mobile styles for summary view */
@media (max-width: 480px) {
    .summary-container {
        margin: 10px auto;
        padding: 15px;
    }
    
    .summary-header {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .summary-icon {
        font-size: 10px !important;
        margin-right: 4px !important;
        margin-top: 0px;
    }
    
    .summary-header h1 {
        font-size: 18px !important;
        margin: 0;
        line-height: 1.2;
    }
    
    .summary-content p {
        font-size: 13px;
        line-height: 1.3;
        margin: 3px 0;
    }
    
    .chart-container {
        margin: 10px -10px;
        height: 180px;
    }
    
    .button-container {
        margin-top: 15px;
    }
}

.summary-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    min-width: 0; /* Crucial for text truncation */
}

#itemTitle {
    white-space: nowrap;
    margin: 0;
    padding: 0;
    font-size: 2rem; /* Base size */
    line-height: 1.2;
    min-width: 0; /* Crucial for text truncation */
    flex: 1; /* Take remaining space */
    overflow: hidden;
    text-overflow: ellipsis;
}
.summary-icon {
    font-size: 32px;
    margin-right: 15px;
    color: #284b63ff;
    flex-shrink: 0;
    flex: 0 0 auto; /* Prevent icon from shrinking */
}

@media (min-width: 600px) {
    .summary-icon {
        font-size: 40px;
        margin-right: 20px;
    }
}
.summary-content {
    line-height: 1.6;
    font-family: 'Montserrat', sans-serif;
}

#priceContainer,
#priceContainer p,
#priceContainer span,
#priceContainer strong {
    color: #353535;
}

.summary-content * {
    font-family: 'Montserrat', sans-serif !important;
}

.summary-content h1,
.summary-content h2,
.summary-content h3,
.summary-content h4,
.summary-content h5,
.summary-content h6,
.summary-content p,
.summary-content span,
.summary-content div,
.summary-content strong {
    font-family: 'Montserrat', sans-serif !important;
}
.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 12px 16px;
    background-color: #3C6E71;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    border: none;
    width: 100%;
    box-sizing: border-box;
}

/* Make buttons smaller on mobile */
@media (max-width: 480px) {
    .back-button {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 6px;
    }
    
    .back-button i {
        margin-right: 6px;
        font-size: 12px;
    }
}

.back-button i {
    margin-right: 8px;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.back-button:hover {
    background-color: #284B63;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.back-button:active {
    transform: translateY(0);
}




/* Auth Overlay */
.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(2px);
    border-radius: 12px;
}

/* Auth Container */
.auth-container {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.auth-content {
    max-width: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
}

.auth-content h2 {
    color: #284b63;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.auth-content p {
    color: #4b5563;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

/* Auth Button */
.auth-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.auth-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.combined-btn {
    background-color: #284b63;
    color: white;
    border: 1px solid #1d3a4d;
    min-width: 200px;
    justify-content: center;
}

.combined-btn:hover {
    background-color: #1d3a4d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Shared container styles */
.teaser-container,
.summary-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    margin: 20px auto;
    padding: 30px;
    position: relative;
    min-height: 400px;
}

/* Details page specific styles */
.summary-container {
    text-align: left;
}

.summary-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.summary-icon {
    font-size: 36px;
    color: #284b63;
    margin-right: 15px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f9fc;
    border-radius: 8px;
}

.summary-content h1 {
    margin: 0;
    color: #284b63;
    font-size: 28px;
    font-weight: 700;
}

.product-type {
    color: #666;
    font-size: 18px;
    margin: 10px 0 20px;
}

.price-display {
    background: #f8fbfe;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

.price-display p {
    margin: 5px 0;
    color: #555;
}

.price-display strong {
    font-size: 32px;
    color: #284b63;
    font-weight: 700;
    display: block;
    margin: 10px 0;
}

.chart-container {
    margin: 30px 0;
    position: relative;
    height: 250px;
}

.chart-container h3 {
    color: #284b63;
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.primary-button {
    background: #284b63;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.primary-button i {
    margin-right: 8px;
}

.primary-button:hover {
    background: #1d3a4d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.primary-button:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .summary-container {
        padding: 20px;
    }
    
    .summary-header {
        flex-direction: column;
        text-align: center;
    }
    
    .summary-icon {
        margin: 0 0 15px 0;
    }
    
    .button-container {
        flex-direction: column;
    }
    
    .back-button,
    .primary-button {
        width: 100%;
        margin: 5px 0;
    }
}

.teaser-content {
    filter: blur(1px);
    transition: filter 0.03s ease;
    pointer-events: none;
    user-select: none;
    opacity: 0.7;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-box h2 {
    color: #284b63;
    margin-bottom: 10px;
    font-size: 24px;
}

.login-box p {
    color: #666;
    margin-bottom: 25px;
    font-size: 15px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #284b63;
    outline: none;
}

.login-button {
    background: #284b63;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: #1d3a4d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-footer {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.login-footer a {
    color: #284b63;
    text-decoration: none;
    font-weight: 500;
    margin: 0 5px;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: #1d3a4d;
    text-decoration: underline;
}

.forgot-password {
    display: block;
    margin-bottom: 10px;
}

.signup-link {
    color: #3a7bd5 !important;
}

.teaser-icon {
    font-size: 48px;
    color: #284b63;
    margin-bottom: 20px;
}

.teaser-title {
    font-size: 28px;
    color: #284b63;
    margin-bottom: 15px;
    font-weight: 600;
}

.teaser-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.back-button {
    display: inline-block;
    background: #284b63;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.back-button:hover {
    background: #1d3a4d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.back-button i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .teaser-container {
        margin: 20px 15px;
        padding: 25px 20px;
    }
    
    .teaser-title {
        font-size: 24px;
    }
}
