/* Energy Label Lookup Plugin Styles */

/* Form Container */
.ell-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Form Styles */
.ell-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    animation: slideInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.ell-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

/* Form Groups */
.ell-form-group {
    margin-bottom: 20px;
    position: relative;
}

.ell-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.ell-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.ell-form-group input:focus {
    outline: none;
    border-color: #007cba;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.ell-form-group.ell-error input {
    border-color: #dc3232;
    background: #fff5f5;
}

.ell-error-message {
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s ease-in;
}

/* Submit Button - No custom styling to allow Elementor classes */
.ell-submit {
    /* Removed all styling to allow Elementor classes to apply */
}

/* Loading State */
.ell-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.ell-loading::after {
    content: '';
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Results Container */
.ell-results {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
    display: none;
    animation: fadeIn 0.5s ease-in;
}

/* Results Content - Compact Overview */
.ell-results-content {
    animation: slideInUp 0.6s ease-out;
}

/* Energy Label Display */
.ell-label-section {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-in 0.2s both;
}

.ell-label-section h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.ell-label-display {
    display: inline-block;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 3px solid #e9ecef;
}

.ell-expired-warning {
    background: #fff3cd;
    color: #856404;
    padding: 8px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #ffeaa7;
}

.ell-validity-info {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.ell-validity-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.ell-registration-date {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.ell-label-value {
    font-size: 48px;
    font-weight: bold;
    padding: 20px 30px;
    border-radius: 8px;
    display: inline-block;
    min-width: 80px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Energy Label Colors */
.ell-label-value[data-label="A+++"] { background: linear-gradient(135deg, #00a651, #00c853); }
.ell-label-value[data-label="A++"] { background: linear-gradient(135deg, #00c853, #4caf50); }
.ell-label-value[data-label="A+"] { background: linear-gradient(135deg, #4caf50, #8bc34a); }
.ell-label-value[data-label="A"] { background: linear-gradient(135deg, #8bc34a, #cddc39); }
.ell-label-value[data-label="B"] { background: linear-gradient(135deg, #cddc39, #ffeb3b); }
.ell-label-value[data-label="C"] { background: linear-gradient(135deg, #ffeb3b, #ff9800); }
.ell-label-value[data-label="D"] { background: linear-gradient(135deg, #ff9800, #ff5722); }
.ell-label-value[data-label="E"] { background: linear-gradient(135deg, #ff5722, #f44336); }
.ell-label-value[data-label="F"] { background: linear-gradient(135deg, #f44336, #d32f2f); }
.ell-label-value[data-label="G"] { background: linear-gradient(135deg, #d32f2f, #b71c1c); }

/* Compact Overview Grid */
.ell-overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 25px;
    animation: fadeIn 0.8s ease-in 0.4s both;
}

.ell-overview-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
    transition: all 0.3s ease;
}

.ell-overview-item:hover {
    background: #f0f2f5;
    transform: translateX(2px);
}

.ell-overview-item h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    min-width: 120px;
    flex-shrink: 0;
}

.ell-overview-item p {
    margin: 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    flex: 1;
}

/* Actions */
.ell-actions {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    animation: fadeIn 0.8s ease-in 0.6s both;
}

.ell-new-search {
    background: #007cba;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ell-new-search:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* Error Display */
.ell-error {
    background: #fff5f5;
    border: 2px solid #dc3232;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.ell-error p {
    margin: 0;
    color: #dc3232;
    font-size: 14px;
}

/* Details Section */
.ell-details-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    animation: fadeIn 0.8s ease-in 0.8s both;
}

.ell-details-toggle {
    background: #007cba;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 20px;
}

.ell-details-toggle:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.ell-details-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}

.ell-details-group {
    margin-bottom: 25px;
}

.ell-details-group:last-child {
    margin-bottom: 0;
}

.ell-details-group h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.ell-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.ell-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 6px;
    border-left: 3px solid #007cba;
}

.ell-detail-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.ell-detail-value {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    text-align: right;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .ell-container {
        padding: 15px;
    }
    
    .ell-form,
    .ell-results {
        padding: 20px;
    }
    
    .ell-label-value {
        font-size: 36px;
        padding: 15px 20px;
    }
    
    .ell-overview-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .ell-overview-item h4 {
        min-width: auto;
        font-size: 12px;
    }
    
    .ell-overview-item p {
        font-size: 13px;
    }
} 