/* GENERAL RESET */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }

body {
    /* CHANGED BACKGROUND: Homeless Children / Street Theme */
    background: url('https://images.unsplash.com/photo-1531564701487-f238224b7ce3?q=80&w=1920&auto=format&fit=crop') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    min-height: 100vh;
    font-size: 14px;
    position: relative;
}

/* Darker overlay because the street image might be bright/busy */
.bg-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    z-index: -1;
}

.container { max-width: 1100px; margin: 0 auto; padding: 15px; position: relative; z-index: 1; }
.hidden { display: none !important; }

/* ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.view { animation: fadeIn 0.4s ease-in-out; padding: 40px 0; text-align: center; }

/* HOME PAGE */
.hero-content h1 { color: white; font-size: 2.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.8); margin-bottom: 10px; }
.hero-content p { color: #ddd; font-size: 1.2rem; margin-bottom: 20px; font-weight: bold; }

/* LAYOUT & CARDS */
#dashboard-view { text-align: left; padding: 10px 0; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.card, .form-wrapper { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); animation: slideUp 0.5s ease-out; }
.form-wrapper { max-width: 400px; margin: 0 auto; text-align: left; }

/* INPUTS */
.compact-form { max-width: 100%; }
input, select, textarea {
    width: 100%; padding: 10px; margin-bottom: 8px;
    border: 1px solid #ddd; border-radius: 4px; font-size: 0.9rem;
}
.row { display: flex; gap: 10px; }
.row input { flex: 1; }
.form-group label { font-weight: bold; font-size: 0.85rem; display: block; margin-bottom: 4px; color: #333; }

/* MANUAL INPUT STYLING */
#manual-orphanage-input {
    border-color: #007bff;
    background-color: #f0f8ff;
    animation: fadeIn 0.3s;
}

/* PHOTO UPLOAD */
.upload-container { position: relative; height: 100px; margin-bottom: 10px; }
.upload-container input { position: absolute; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.upload-visual {
    width: 100%; height: 100%; border: 2px dashed #007bff; border-radius: 6px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #f0f7ff; color: #007bff; font-weight: bold;
}

/* BUTTONS */
.btn-primary { background: #007bff; color: white; padding: 12px 24px; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; font-weight: bold; width: 100%; }
.btn-submit { background: #28a745; color: white; border: none; padding: 10px; width: 100%; border-radius: 4px; cursor: pointer; font-weight: bold; margin-top: 5px; }
.btn-small { padding: 4px 8px; font-size: 0.75rem; cursor: pointer; background: #333; color: white; border: none; border-radius: 3px; }
.btn-text { background: none; border: none; text-decoration: underline; color: #666; margin-top: 10px; cursor: pointer; width: 100%; display: block; }

/* TABLES */
.table-container { overflow-x: auto; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { padding: 8px; border-bottom: 1px solid #eee; text-align: left; vertical-align: middle; }
th { background: #f8f9fa; color: #555; }
.care-img-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; }
.contact-link { background-color: #e3f2fd; color: #007bff; padding: 3px 6px; border-radius: 4px; text-decoration: none; font-weight: bold; display: inline-block; margin-top: 3px; }

.status-Pending { color: #ff9800; font-weight: bold; }
.status-Completed { color: #28a745; font-weight: bold; text-transform: uppercase; }

.dash-header { display: flex; justify-content: space-between; align-items: center; background: white; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.recommendation-box { background: #fff; border-left: 5px solid #ffc107; padding: 15px; margin-bottom: 20px; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.rec-name { font-weight: bold; font-size: 1.1rem; color: #007bff; }

@media (max-width: 768px) { .dashboard-grid { grid-template-columns: 1fr; } }