/* Header Components */
.header {
    text-align: center;
    color: #2d3748;
    margin-bottom: 3rem;
}

.pannalabs-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 2rem;
}

.pannalabs-logo {
    margin-right: 1rem;
}

.pannalabs-logo img {
    width: 54px;
    height: 56px;
}

.pannalabs-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pannalabs-text h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 28px;
}

.pannalabs-text p {
    margin: 0;
    font-size: 12px;
    color: #6B7280;
    font-weight: 400;
    line-height: 16px;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ai-icon {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.main-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form Components */
.form-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    
}

.form-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    /* filter: blur(30px); */
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Period Selection */
.period-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.period-option {
    position: relative;
}

.period-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.period-label {
    display: block;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.period-option input[type="radio"]:checked + .period-label {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Advanced Options */
.advanced-options {
    /* background: #f7fafc; */
    background: #ffffff;
    border-radius: 12px;
    /* padding: 1.5rem; */
    margin-top: 1rem;
}

.advanced-title {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 1rem;
}

.option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* gap: 1rem; */
}

/* Buttons */
.start-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.start-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading Component */
.loading {
    display: none;
    text-align: center;
    color: #667eea;
    font-weight: 600;
    margin-top: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}
/* Styles for location suggestions dropdown */
        .suggestions-dropdown {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            margin-top: 4px;
            z-index: 1000;
            max-height: 300px;
            overflow-y: auto;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }

        .suggestion-item {
            padding: 12px 16px;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .suggestion-item:hover {
            background-color: #f7fafc;
        }

        .suggestion-item .name {
            font-weight: 600;
            color: #2d3748;
        }

        .suggestion-item .address {
            font-size: 0.9rem;
            color: #718096;
        }
        .suggestion-item.loading,
        .suggestion-item.no-results {
            padding: 12px 16px;
            color: #718096;
            font-style: italic;
            cursor: default;
        }
        /* Add to components.css sharing sections new */
        .sharing-section {
            background: linear-gradient(135deg, #48bb7820 0%, #667eea20 100%);
        }

        .sharing-buttons {
            display: grid;
            /* grid-template-columns: repeat(2, 1fr); */
            grid-template-columns: 1fr;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .share-btn {
            padding: 10px 15px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
            /* color: white; */
            color: rgb(0, 0, 0);
            /* --- Icon Positioning Styles --- */
            /* Ensure the text is centered for a clean look */
            text-align: left; 
            /* Add extra padding on the left to make space for the icon */
            padding-left: 3.5rem; 
            /* Ensure background image doesn't tile */
            background-repeat: no-repeat;
            /* Center the background image vertically, 0.75rem from the left edge */
            background-position: 0.75rem center; 
            /* Set the icon size */
            background-size: 20px 20px;
        }

        .share-btn.whatsapp { 
            background-color: #F0FDF4; 
            background-image: url('../assets/whatsappicon.png'); 
        }
        .share-btn.email { 
            background-color: #EFF6FF; 
            background-image: url('../assets/Email.png'); 
        }
        .share-btn.copy { 
            background-color: #FAF5FF; 
            background-image: url('../assets/copylink.png');
        }
        .share-btn.download { 
            background-color: #F9FAFB; 
            background-image: url('../assets/downloadimage.png');
        }
        .share-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

        .shareable-link-display {
            background: #f8f9fa;
            padding: 10px;
            border-radius: 6px;
            border: 1px solid #e9ecef;
        }

        .link-text {
            font-family: monospace;
            font-size: 0.85rem;
            word-break: break-all;
            color: #495057;
        }