/* Basic Styling for Clean Look */
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f4f4f9; color: #333; margin: 0; padding: 0; }
.container { max-width: 600px; margin: 0 auto; background: white; padding: 30px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
h1 { text-align: center; color: #2c3e50; margin-bottom: 10px; }
.subtitle { text-align: center; color: #7f8c8d; font-size: 0.9em; margin-bottom: 30px; }

/* Form Groups */
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: 600; }
input[type="number"] { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; font-size: 16px; }

/* Section Dividers */
.section-title { margin-top: 25px; margin-bottom: 10px; color: #2980b9; border-bottom: 2px solid #eee; padding-bottom: 5px; }

/* Button */
button { width: 100%; padding: 15px; background-color: #27ae60; color: white; border: none; border-radius: 5px; font-size: 18px; cursor: pointer; margin-top: 20px; font-weight: bold; }
button:hover { background-color: #219150; }

/* Results Section */
#result { margin-top: 30px; padding: 20px; background-color: #e8f5e9; border-radius: 5px; display: none; }
.result-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.final-zakat { font-size: 1.5em; color: #27ae60; font-weight: bold; border-top: 2px solid #ccc; padding-top: 10px; margin-top: 10px; }

/* Ad Placeholders */
.ad-space { width: 100%; height: 100px; background-color: #eee; border: 1px dashed #999; display: flex; align-items: center; justify-content: center; margin: 20px 0; color: #777; font-size: 0.9em; }

/* Sidebar Layout */
.app-wrapper { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background-color: #2c3e50; color: #fff; padding: 20px; flex-shrink: 0; }
.sidebar h2 { text-align: center; margin-bottom: 30px; border-bottom: 1px solid #34495e; padding-bottom: 15px; font-size: 1.5em; color: #ecf0f1; }
.sidebar ul { list-style: none; padding: 0; }
.sidebar li { margin-bottom: 10px; }
.sidebar a { display: block; padding: 12px 15px; color: #bdc3c7; text-decoration: none; border-radius: 5px; transition: 0.3s; }
.sidebar a:hover { background-color: #34495e; color: white; }
.sidebar a.active { background-color: #27ae60; color: white; font-weight: bold; }
.main-content { flex-grow: 1; padding: 20px; display: flex; justify-content: center; align-items: flex-start; }

@media (max-width: 768px) {
    .app-wrapper { flex-direction: column; }
    .sidebar { width: 100%; box-sizing: border-box; }
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background-color: #f8f9fa;
    border-top: 1px solid #e7e7e7;
    width: 100%;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #007bff;
    text-decoration: underline;
}

footer p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9em;
}
