/*
Theme Name: Engage Hope Theme
Theme URI: https://www.engagehope.org
Description: Custom theme for Engage Hope. 
Author: Kre8ivDesigns Marketing, LLC
Author URI: https://www.kre8ivdesigns.com
Template: hello-elementor
Version: 1.0.0
Text Domain: engage-hope-theme
*/



/**
 * Sponsor-A-Child Dashboard Styles
 * Version 2.1.0
 *
 * Brand Colors:
 * Primary:   Ministry Navy #1E3264 | Hope Green #4CAF4B | Deep Green #2E7D32 | Faith Teal #1B5E5E
 * Neutral:   Body Black #1A1A1A | Text Gray #555555 | Border Gray #E0E0E0 | Background #F5F5F5
 * Accent:    Harvest Gold #D4A843
 */

/* ==========================================
   CSS Custom Properties (Brand Tokens)
   ========================================== */
:root {
    --sac-navy: #1E3264;
    --sac-navy-light: #2a4380;
    --sac-navy-dark: #152447;
    --sac-green: #4CAF4B;
    --sac-green-dark: #2E7D32;
    --sac-green-light: #66BB6A;
    --sac-teal: #1B5E5E;
    --sac-teal-light: #247878;
    --sac-gold: #D4A843;
    --sac-gold-light: #E0BD6A;
    --sac-gold-dark: #B8912E;
    --sac-black: #1A1A1A;
    --sac-text: #555555;
    --sac-border: #E0E0E0;
    --sac-bg: #F5F5F5;
    --sac-white: #FFFFFF;
    --sac-radius: 6px;
    --sac-radius-lg: 10px;
    --sac-shadow: 0 2px 8px rgba(30, 50, 100, 0.08);
    --sac-shadow-hover: 0 4px 16px rgba(30, 50, 100, 0.14);
    --sac-transition: all 0.2s ease;
}

/* ==========================================
   General Dashboard Styles
   ========================================== */
.sac-sponsor-dashboard,
.sac-ministry-dashboard {
    max-width: 1480px;
    margin: 0 auto;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--sac-black);
}

.sac-dashboard-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--sac-navy);
}

.sac-dashboard-header h2 {
    margin: 0 0 10px 0;
    font-size: clamp(34px, 4vw, 40px);
    color: #111827;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-family: Open Sans, sans-serif;
}

.sac-dashboard-subtitle {
    color: #667085;
    font-size: clamp(16px, 1.2vw, 22px);
    margin: 0;
}

.sac-dashboard-subtitle strong {
    color: var(--sac-navy);
}

/* ==========================================
   Ministry Dashboard (Modern)
   ========================================== */
.sac-dashboard-header-modern {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 0;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.sac-dashboard-header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sac-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--sac-white);
    border: 1px solid var(--sac-border);
    border-radius: 12px;
    padding: 0 12px;
    min-width: 360px;
    height: 48px;
    box-shadow: var(--sac-shadow);
}

.sac-search-wrap .dashicons {
    color: #8a94a8;
    font-size: 18px;
}

.sac-search-wrap input {
    border: 0;
    outline: 0;
    width: 100%;
    font-size: 18px;
    color: var(--sac-black);
    background: transparent;
}

.sac-search-wrap input::placeholder {
    color: #9aa2b2;
}

.sac-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin: 10px 0 28px;
}

.sac-kpi-card {
    background: var(--sac-white);
    border: 1px solid #e7ebf1;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 14px 30px rgba(20, 34, 66, 0.07);
}

.sac-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.sac-kpi-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sac-kpi-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.sac-kpi-icon.total {
    background: rgba(30, 50, 100, 0.1);
    color: #1c4ea1;
}

.sac-kpi-icon.sponsor {
    background: rgba(110, 86, 201, 0.12);
    color: #7a56d8;
}

.sac-kpi-icon.pending {
    background: rgba(212, 168, 67, 0.14);
    color: #a97600;
}

.sac-kpi-icon.alert {
    background: rgba(214, 54, 56, 0.12);
    color: #cf3b2e;
}

.sac-kpi-trend {
    font-size: 15px;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 10px;
}

.sac-kpi-trend.positive {
    color: #168c48;
    background: rgba(22, 140, 72, 0.14);
}

.sac-kpi-trend.warning {
    color: #a97600;
    background: rgba(212, 168, 67, 0.18);
}

.sac-kpi-trend.danger {
    color: #b42318;
    background: rgba(214, 54, 56, 0.16);
}

.sac-kpi-card h4 {
    margin: 0 0 6px 0;
    color: #667085;
    font-size: 19px;
    font-weight: 600;
}

.sac-kpi-value {
    font-size: clamp(48px, 4.6vw, 35px);
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.sac-kpi-card p {
    margin: 0;
    color: #8c94a7;
    font-size: 15px;
}

/* ==========================================
   Button Styles
   ========================================== */
.sac-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--sac-radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: var(--sac-transition);
    line-height: 1.4;
}

.sac-btn-primary {
    background: var(--sac-navy);
    color: var(--sac-white);
}

.sac-btn-primary:hover {
    background: var(--sac-navy-light);
    color: var(--sac-white);
    box-shadow: 0 2px 8px rgba(30, 50, 100, 0.25);
}

.sac-btn-secondary {
    background: var(--sac-bg);
    color: var(--sac-navy);
    border: 1px solid var(--sac-border);
}

.sac-btn-secondary:hover {
    background: var(--sac-border);
    color: var(--sac-navy-dark);
    border-color: var(--sac-navy);
}

.sac-btn-success {
    background: var(--sac-green);
    color: var(--sac-white);
}

.sac-btn-success:hover {
    background: var(--sac-green-dark);
    color: var(--sac-white);
}

.sac-btn-disabled {
    background: var(--sac-bg);
    color: #a7aaad;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
    border: 1px solid var(--sac-border);
}

.sac-btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

/* ==========================================
   Children Grid (Card Layout)
   ========================================== */
.sac-children-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.sac-children-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.sac-children-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sac-children-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .sac-children-grid.columns-3,
    .sac-children-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sac-children-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Child Card
   ========================================== */
.sac-child-card {
    background: var(--sac-white);
    border: 1px solid var(--sac-border);
    border-radius: var(--sac-radius-lg);
    overflow: hidden;
    transition: var(--sac-transition);
    box-shadow: var(--sac-shadow);
}

.sac-child-card:hover {
    box-shadow: var(--sac-shadow-hover);
    border-color: var(--sac-green-light);
}

.sac-child-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sac-child-photo {
    position: relative;
    height: 200px;
    background: var(--sac-bg);
    overflow: hidden;
}

.sac-child-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sac-child-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--sac-border);
}

.sac-child-photo-placeholder .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
    color: #999;
}

.sac-child-info {
    padding: 15px;
}

.sac-child-name {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: var(--sac-navy);
    font-weight: 600;
}

.sac-child-id {
    display: inline-block;
    font-family: "SF Mono", "Consolas", "Liberation Mono", Menlo, monospace;
    font-size: 12px;
    background: rgba(30, 50, 100, 0.08);
    padding: 2px 8px;
    border-radius: 3px;
    color: var(--sac-navy);
    margin-bottom: 10px;
    font-weight: 600;
}

.sac-child-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--sac-text);
}

.sac-detail {
    display: block;
    width: 100%;
}

.sac-child-notes {
    font-size: 13px;
    color: var(--sac-text);
    margin-top: 10px;
    line-height: 1.5;
}

.sac-child-actions {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid var(--sac-border);
    background: var(--sac-bg);
}

.sac-child-actions .sac-btn {
    flex: 1;
    text-align: center;
}

/* ==========================================
   Status Badges
   ========================================== */
.sac-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sac-status-badge.sponsored,
.sac-status-badge.active,
.sac-status-badge.approved {
    background: rgba(46, 125, 50, 0.12);
    color: var(--sac-green-dark);
    border: 1px solid rgba(46, 125, 50, 0.25);
}

.sac-status-badge.waiting,
.sac-status-badge.pending {
    background: rgba(212, 168, 67, 0.15);
    color: var(--sac-gold-dark);
    border: 1px solid rgba(212, 168, 67, 0.3);
}

.sac-status-badge.inactive,
.sac-status-badge.denied {
    background: #fce4e4;
    color: #b71c1c;
    border: 1px solid #f5c6cb;
}

.sac-status-badge.needs_update {
    background: rgba(214, 54, 56, 0.14);
    color: #b42318;
    border: 1px solid rgba(214, 54, 56, 0.24);
}

/* ==========================================
   Dashboard Tabs
   ========================================== */
.sac-dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    border: 1px solid #e4e8f0;
    border-radius: 16px;
    background: #fff;
    padding: 8px;
    overflow-x: auto;
}

.sac-tab-btn {
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #667085;
    transition: var(--sac-transition);
    white-space: nowrap;
}

.sac-tab-btn:hover {
    color: #1e3264;
    background: rgba(30, 50, 100, 0.06);
    border-color: rgba(30, 50, 100, 0.14);
}

.sac-tab-btn.active {
    color: #fff;
    background: #1e4aa4;
    border-color: #1e4aa4;
}

.sac-tab-content {
    display: none;
    padding: 16px 0;
}

.sac-tab-content.active {
    display: block;
}

/* ==========================================
   Data Tables
   ========================================== */
.sac-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: var(--sac-white);
    border-radius: var(--sac-radius);
    overflow: hidden;
    box-shadow: var(--sac-shadow);
    border: 1px solid var(--sac-border);
}

.sac-data-table th,
.sac-data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--sac-border);
}

.sac-data-table th {
    background: var(--sac-navy);
    font-weight: 600;
    font-size: 13px;
    color: var(--sac-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sac-data-table tbody tr:hover {
    background: rgba(30, 50, 100, 0.03);
}

.sac-data-table tbody tr:last-child td {
    border-bottom: none;
}

.sac-data-table code {
    font-size: 12px;
    padding: 3px 8px;
    background: rgba(30, 50, 100, 0.06);
    border-radius: 3px;
    color: var(--sac-navy);
    font-weight: 600;
}

.sac-data-table a {
    color: var(--sac-teal);
    text-decoration: none;
    font-weight: 600;
}

.sac-data-table a:hover {
    color: var(--sac-navy);
    text-decoration: underline;
}

/* ==========================================
   Search and Filter Controls
   ========================================== */
.sac-children-list-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.sac-profiles-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: var(--sac-white);
    border: 1px solid #e4e8f0;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 8px 22px rgba(20, 34, 66, 0.06);
}

.sac-profiles-filters {
    display: flex;
    gap: 10px;
}

.sac-filter-pill {
    border: 1px solid #d9e0eb;
    border-radius: 13px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    background: #f8fafc;
    color: #475467;
    cursor: pointer;
}

.sac-filter-pill.active {
    background: var(--sac-navy);
    border-color: var(--sac-navy);
    color: #fff;
}

.sac-profiles-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sac-sort-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d9e0eb;
    border-radius: 13px;
    padding: 0 10px;
    height: 42px;
    background: #fff;
}

.sac-sort-wrap .dashicons {
    color: #8a94a8;
}

.sac-sort-wrap select {
    border: 0;
    outline: 0;
    background: transparent;
    min-width: 200px;
}

.sac-export-btn .dashicons,
.sac-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
    margin-right: 4px;
}

.sac-children-table th {
    background: #f8fafc;
    color: #667085;
    border-bottom: 1px solid #e4e8f0;
    font-size: 13px;
    letter-spacing: 0.06em;
}

.sac-children-table td {
    padding: 18px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #edf1f6;
}

.sac-child-primary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sac-child-avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #d9e0eb;
    flex-shrink: 0;
}

.sac-child-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e5edff;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 16px;
}

.sac-child-name-link {
    color: #101828;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
}

.sac-child-name-link:hover {
    color: var(--sac-navy);
    text-decoration: underline;
}

.sac-child-meta {
    color: #667085;
    font-size: 13px;
    margin-top: 4px;
}

.sac-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sac-table-shell {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e4e8f0;
    box-shadow: 0 10px 28px rgba(20, 34, 66, 0.06);
}

.sac-table-shell .sac-data-table {
    margin-top: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.sac-profiles-header {
    margin-bottom: 14px;
}

.sac-profiles-header h3 {
    margin: 0 0 8px 0;
    font-size: clamp(28px, 2.5vw, 42px);
    color: #111827;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.01em;
}

.sac-profiles-header p {
    margin: 0;
    color: #667085;
    font-size: 18px;
}

.sac-search-input,
.sac-filter-select {
    padding: 10px 15px;
    border: 1px solid var(--sac-border);
    border-radius: var(--sac-radius);
    font-size: 14px;
    color: var(--sac-black);
    background: var(--sac-white);
    transition: var(--sac-transition);
}

.sac-search-input:focus,
.sac-filter-select:focus {
    outline: none;
    border-color: var(--sac-navy);
    box-shadow: 0 0 0 3px rgba(30, 50, 100, 0.1);
}

.sac-search-input {
    flex: 1;
    max-width: 300px;
}

/* ==========================================
   Upload Form
   ========================================== */
.sac-upload-form-container {
    max-width: 600px;
}

.sac-form-row {
    margin-bottom: 20px;
}

.sac-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--sac-navy);
    font-size: 14px;
}

.sac-form-row input[type="text"],
.sac-form-row select,
.sac-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--sac-border);
    border-radius: var(--sac-radius);
    font-size: 14px;
    color: var(--sac-black);
    background: var(--sac-white);
    transition: var(--sac-transition);
}

.sac-form-row input:focus,
.sac-form-row select:focus,
.sac-form-row textarea:focus {
    outline: none;
    border-color: var(--sac-navy);
    box-shadow: 0 0 0 3px rgba(30, 50, 100, 0.1);
}

.sac-form-hint {
    font-size: 12px;
    color: var(--sac-text);
    margin-top: 5px;
}

.required {
    color: #d63638;
}

/* ==========================================
   File Upload Area
   ========================================== */
.sac-file-upload-area {
    border: 2px dashed var(--sac-border);
    border-radius: var(--sac-radius-lg);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--sac-transition);
    position: relative;
    background: var(--sac-bg);
}

.sac-file-upload-area:hover,
.sac-file-upload-area.dragover {
    border-color: var(--sac-green);
    background: rgba(76, 175, 75, 0.04);
}

.sac-file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.sac-drop-zone-text .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: var(--sac-green);
}

.sac-drop-zone-text p {
    margin: 10px 0 0 0;
    color: var(--sac-text);
}

.sac-file-preview {
    display: none;
    padding: 15px;
    background: var(--sac-white);
    border-radius: var(--sac-radius);
    margin-top: 15px;
    border: 1px solid var(--sac-border);
}

.sac-file-preview.show {
    display: block;
}

/* ==========================================
   Form Actions & Upload Status
   ========================================== */
.sac-form-actions {
    margin-top: 30px;
}

.sac-btn-loading {
    display: none;
}

.sac-upload-status {
    margin-top: 15px;
    padding: 15px;
    border-radius: var(--sac-radius);
    display: none;
}

.sac-upload-status.success {
    display: block;
    background: rgba(46, 125, 50, 0.1);
    color: var(--sac-green-dark);
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.sac-upload-status.error {
    display: block;
    background: #fce4e4;
    color: #b71c1c;
    border: 1px solid #f5c6cb;
}

/* ==========================================
   Dashboard Footer & Documents
   ========================================== */
.sac-dashboard-footer {
    background: var(--sac-white);
    border: 1px solid var(--sac-border);
    border-radius: var(--sac-radius-lg);
    padding: 20px;
    box-shadow: var(--sac-shadow);
}

.sac-dashboard-footer h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--sac-navy);
}

.sac-recent-documents {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sac-document-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--sac-border);
}

.sac-document-item:last-child {
    border-bottom: none;
}

.sac-doc-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 50, 100, 0.06);
    border-radius: var(--sac-radius);
    margin-right: 12px;
    color: var(--sac-navy);
}

.sac-doc-info {
    flex: 1;
}

.sac-doc-term {
    color: var(--sac-text);
    font-size: 12px;
}

.sac-doc-date {
    color: var(--sac-text);
    font-size: 12px;
}

/* ==========================================
   Dashboard Notices
   ========================================== */
.sac-dashboard-notice {
    background: var(--sac-white);
    border: 1px solid var(--sac-border);
    border-radius: var(--sac-radius-lg);
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
    box-shadow: var(--sac-shadow);
}

.sac-dashboard-notice h3 {
    margin: 0 0 15px 0;
    color: var(--sac-navy);
}

.sac-dashboard-notice p {
    color: var(--sac-text);
    margin-bottom: 20px;
}

/* ==========================================
   No Data State
   ========================================== */
.sac-no-data {
    text-align: center;
    padding: 40px;
    color: var(--sac-text);
    font-style: italic;
}

/* ==========================================
   Term Label
   ========================================== */
.sac-term-label {
    font-size: 11px;
    background: rgba(30, 50, 100, 0.08);
    color: var(--sac-navy);
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 5px;
    font-weight: 600;
}

/* ==========================================
   Editing Banner (Gravity Form edit page)
   ========================================== */
.sac-editing-banner {
    background: var(--sac-navy);
    color: var(--sac-white);
    padding: 14px 20px;
    border-radius: var(--sac-radius);
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sac-editing-banner .dashicons {
    color: var(--sac-gold);
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 768px) {
    .sac-ministry-dashboard,
    .sac-sponsor-dashboard {
        padding: 10px;
    }

    .sac-dashboard-header h2 {
        font-size: 22px;
    }

    .sac-dashboard-tabs {
        gap: 0;
    }

    .sac-dashboard-header-modern {
        flex-direction: column;
        align-items: stretch;
    }

    .sac-dashboard-header-tools {
        width: 100%;
        flex-wrap: wrap;
    }

    .sac-search-wrap {
        min-width: 0;
        width: 100%;
    }

    .sac-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sac-profiles-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .sac-profiles-filters,
    .sac-profiles-toolbar {
        flex-wrap: wrap;
    }

    .sac-sort-wrap {
        width: 100%;
    }

    .sac-sort-wrap select {
        min-width: 0;
        width: 100%;
    }

    .sac-tab-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .sac-children-list-controls {
        flex-direction: column;
    }

    .sac-search-input {
        max-width: 100%;
    }

    .sac-data-table th,
    .sac-data-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .sac-data-table th {
        font-size: 11px;
    }

    .sac-child-actions {
        flex-direction: column;
    }

    .sac-row-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .sac-kpi-grid {
        grid-template-columns: 1fr;
    }

    .sac-tab-btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .sac-data-table {
        font-size: 12px;
    }
}


/**
 * Sponsor-A-Child Child Page Styles
 * Version 2.0.0
 */

/* Child Profile Container */
.sac-child-profile {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Section */
.sac-child-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.sac-child-photo-main {
    flex-shrink: 0;
    width: 250px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.sac-child-photo-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sac-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #e0e0e0;
}

.sac-photo-placeholder .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #999;
}

.sac-child-header-info {
    flex: 1;
}

.sac-child-header-info h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    color: #333;
}

.sac-child-id-badge {
    display: inline-block;
    font-family: monospace;
    font-size: 14px;
    background: #2271b1;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.sac-child-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.sac-child-quick-stats .sac-stat {
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.sac-ministry-name {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.sac-ministry-name .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Meta Bar for Single Child Page (when header is hidden) */
.sac-child-meta-bar {
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #2271b1;
}

.sac-child-meta-bar .sac-child-quick-stats {
    margin-bottom: 0;
}

/* Public/Guest View Styles */
.sac-child-public {
    display: flex;
    gap: 25px;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 30px;
}

.sac-child-public .sac-child-photo {
    flex-shrink: 0;
    width: 150px;
    height: 180px;
    border-radius: 6px;
    overflow: hidden;
}

.sac-child-public .sac-child-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sac-child-public .sac-child-info {
    flex: 1;
}

.sac-child-public h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    border: none;
    padding: 0;
}

.sac-child-details {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.sac-child-details li {
    font-size: 14px;
    color: #666;
}

.sac-sponsor-cta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.sac-login-prompt {
    margin-top: 15px;
    font-size: 13px;
    color: #888;
}

/* Section Styling */
.sac-child-section {
    margin-bottom: 40px;
}

.sac-child-section h2 {
    font-size: 22px;
    margin: 0 0 20px 0;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sac-child-section h3 {
    font-size: 18px;
    margin: 20px 0 15px 0;
    color: #444;
}

/* About Section */
.sac-child-bio {
    line-height: 1.7;
    color: #444;
}

.sac-public-notes {
    margin-top: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
}

/* Get to Know Me Questions */
.sac-questions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.sac-question-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
}

.sac-question-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.sac-question-card p {
    margin: 0;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .sac-questions-grid {
        grid-template-columns: 1fr;
    }
}

/* Info Table */
.sac-info-table {
    width: 100%;
    border-collapse: collapse;
}

.sac-info-table tr {
    border-bottom: 1px solid #eee;
}

.sac-info-table th,
.sac-info-table td {
    padding: 12px 15px;
    text-align: left;
}

.sac-info-table th {
    width: 180px;
    font-weight: 600;
    color: #555;
    background: #fafafa;
}

/* Internal Notes (Staff Only) */
.sac-internal-notes {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
}

.sac-internal-notes h2 {
    border-bottom-color: #ffc107;
}

.sac-internal-notes h2 .dashicons {
    color: #856404;
    vertical-align: middle;
    margin-right: 8px;
}

.sac-notes-content {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    line-height: 1.6;
}

/* Documents Section */
.sac-documents-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sac-document-group h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.sac-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sac-doc-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 8px;
}

.sac-doc-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.sac-doc-icon.pdf::before { content: "PDF"; font-size: 10px; font-weight: bold; color: #d63638; }
.sac-doc-icon.image::before { content: "IMG"; font-size: 10px; font-weight: bold; color: #00a32a; }
.sac-doc-icon.doc::before { content: "DOC"; font-size: 10px; font-weight: bold; color: #2271b1; }
.sac-doc-icon.xls::before { content: "XLS"; font-size: 10px; font-weight: bold; color: #155724; }
.sac-doc-icon.file::before { content: "FILE"; font-size: 9px; font-weight: bold; color: #666; }

.sac-doc-details {
    flex: 1;
}

.sac-doc-link {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
}

.sac-doc-link:hover {
    text-decoration: underline;
}

.sac-doc-date {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}

.sac-no-documents,
.sac-no-photos {
    color: #888;
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Photo Gallery */
.sac-photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.sac-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.sac-gallery-link {
    display: block;
    width: 100%;
    height: 100%;
}

.sac-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sac-gallery-item:hover img {
    transform: scale(1.05);
}

.sac-photo-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
}

@media (max-width: 768px) {
    .sac-photo-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .sac-photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Education History */
.sac-education-history {
    margin-top: 25px;
}

.sac-education-history table {
    width: 100%;
    border-collapse: collapse;
}

.sac-education-history th,
.sac-education-history td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.sac-education-history th {
    background: #f5f5f5;
    font-weight: 600;
    font-size: 13px;
}

.sac-education-history tr.current {
    background: #f0f7ff;
}

.sac-current-badge {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
}

/* Status Badges */
.sac-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.sac-status-badge.sponsored,
.sac-status-badge.active,
.sac-status-badge.approved {
    background: #d4edda;
    color: #155724;
}

.sac-status-badge.waiting,
.sac-status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.sac-status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Actions Section */
.sac-actions-section {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

.sac-action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Access Denied */
.sac-access-denied {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.sac-access-denied h2 {
    margin: 0 0 15px 0;
}

.sac-access-denied p {
    color: #666;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .sac-child-header {
        flex-direction: column;
        text-align: center;
    }

    .sac-child-photo-main {
        width: 200px;
        height: 240px;
        margin: 0 auto;
    }

    .sac-child-quick-stats {
        justify-content: center;
    }

    .sac-info-table th {
        width: 120px;
    }
}

