:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 0 0 20px 20px;
}

.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating input {
    display: none;
}

.rating label {
    cursor: pointer;
    color: #ddd;
    font-size: 1.5rem;
    padding: 0 0.2rem;
}

.rating input:checked ~ label,
.rating input:hover ~ label {
    color: #ffc107;
}

footer {
    background-color: var(--secondary-color);
    color: white;
}

footer a {
    color: var(--light-color);
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-color);
}

/* Tema seperti website sekolah */
.bg-primary {
    background-color: #1a3e72 !important;
}

.text-primary {
    color: #1a3e72 !important;
}

.btn-outline-primary {
    color: #1a3e72;
    border-color: #1a3e72;
}

.btn-outline-primary:hover {
    background-color: #1a3e72;
    color: white;
}

.navbar-brand img {
    margin-right: 10px;
}

.hero-section {
    background: linear-gradient(135deg, #1a3e72, #0d2444);
}

/* Responsif */
@media (max-width: 768px) {
    .card-img-top {
        height: 150px;
    }
}
/* Footer Styles */
footer {
    background-color: #1a3e72 !important;
    color: #fff;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer .social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

footer .social-icons a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.avatar-container {
    position: relative;
    display: inline-block;
}

.avatar-container button {
    transform: translate(25%, 25%);
}

#avatarPreview {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
.file-input-error {
    border-color: #dc3545 !important;
}
.file-error-message {
    color: #dc3545;
    font-size: 0.875em;
    display: none;
}
/* Di file CSS Anda */
.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-stars input {
    display: none;
}

.rating-stars label {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    padding: 0 3px;
}

.rating-stars input:checked ~ label,
.rating-stars input:hover ~ label {
    color: #ffc107;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #ffc107;
}