/* style.css */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #f4f7f6;
    --card-background: #ffffff;
    --text-color: #333333;
    --arabic-font: 'Amiri Quran', serif;
    --latin-font: 'Poppins', sans-serif;
}

body {
    font-family: var(--latin-font);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 800px;
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 20px;
}

header h1 {
    color: var(--primary-color);
    margin: 0;
    text-decoration: none;
}

header p {
    color: #777;
    margin-top: 5px;
}

.search-box {
    position: relative;
    margin-bottom: 30px;
}

#searchInput {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 50px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#searchInput:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
}

.loading {
    text-align: center;
    padding: 10px;
    color: #888;
    font-style: italic;
}

#searchResults .result-item {
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

#searchResults .result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.result-item .arab {
    font-family: var(--arabic-font);
    font-size: 2em;
    text-align: right;
    margin: 0 0 10px 0;
    color: var(--primary-color);
    direction: rtl; /* Penting untuk tata letak Arab */
}

.result-item .bacaan {
    font-size: 1.2em;
    color: #555;
    margin: 0 0 5px 0;
    font-style: italic;
}

.result-item .indonesia {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 5px 0;
}

.result-item .dasar {
    font-size: 0.9em;
    color: #999;
    margin: 0;
}

#searchResults .no-results {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 1.1em;
}
