/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.hidden { display: none !important; }
.flex-1 { flex: 1; }

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: #4a5568;
    font-size: 1.8rem;
    font-weight: 700;
}

.header h1 i {
    color: #667eea;
    margin-right: 0.5rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.loading-spinner i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

/* Search Panel */
.search-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-form h2 {
    color: #4a5568;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-select,
.form-input {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

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

.verse-range {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.verse-range h3 {
    margin-bottom: 1rem;
    color: #4a5568;
    font-size: 1rem;
}

.search-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.welcome-content i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.welcome-content h2 {
    color: #4a5568;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.welcome-content p {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.welcome-content ul {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.welcome-content li {
    padding: 0.5rem 0;
    color: #4a5568;
    font-weight: 500;
}

/* Results */
.results-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.results-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-header h2 {
    font-size: 1.4rem;
}

.results-actions {
    display: flex;
    gap: 0.5rem;
}

.results-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.results-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.results-content {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.verse {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.verse-number {
    font-weight: 700;
    color: #667eea;
    margin-right: 0.5rem;
}

.verse-title {
    font-weight: 700;
    color: #4a5568;
    margin: 1.5rem 0 0.5rem 0;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.text-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #4a5568;
    white-space: pre-line;
}

.results-navigation {
    padding: 1rem 2rem;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.error-message i {
    font-size: 3rem;
    color: #e53e3e;
    margin-bottom: 1rem;
}

.error-message h3 {
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.error-message p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    text-align: center;
    color: #6c757d;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .form-row {
        flex-direction: column;
    }

    .search-actions {
        flex-direction: column;
    }

    .results-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .results-actions {
        justify-content: center;
    }

    .results-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .welcome-content h2 {
        font-size: 1.5rem;
    }

    .welcome-content ul {
        max-width: 100%;
    }
}

/* Custom Scrollbar */
.results-content::-webkit-scrollbar {
    width: 6px;
}

.results-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.results-content::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.results-content::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}
