/* Orphan Care Management Plugin - Frontend Styles */

/* Frontend Display Styles */
.ocm-orphan-profile {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ocm-orphan-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ocm-orphan-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 600;
    color: #666;
    border: 3px solid #0073aa;
}

.ocm-orphan-details h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.ocm-orphan-details p {
    margin: 5px 0;
    color: #666;
}

.ocm-orphan-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ocm-meta-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

.ocm-meta-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.ocm-meta-value {
    color: #666;
}

/* ID Card Styles */
.ocm-id-card {
    width: 350px;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    position: relative;
    margin: 20px 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.ocm-id-card-header {
    text-align: center;
    margin-bottom: 15px;
}

.ocm-id-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    opacity: 0.9;
}

.ocm-id-card-body {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ocm-id-card-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
}

.ocm-id-card-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.ocm-id-card-info p {
    margin: 2px 0;
    font-size: 12px;
    opacity: 0.9;
}

.ocm-id-card-qr {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 10px;
}

/* Guardian List */
.ocm-guardian-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ocm-guardian-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ocm-guardian-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.ocm-guardian-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.ocm-guardian-info h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.ocm-guardian-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.ocm-guardian-contact {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.ocm-guardian-contact p {
    margin: 5px 0;
    font-size: 14px;
}

/* Records Timeline */
.ocm-timeline {
    position: relative;
    margin: 30px 0;
}

.ocm-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
}

.ocm-timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 80px;
}

.ocm-timeline-marker {
    position: absolute;
    left: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073aa;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #ddd;
}

.ocm-timeline-content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ocm-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ocm-timeline-title {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.ocm-timeline-date {
    font-size: 14px;
    color: #666;
}

.ocm-timeline-description {
    color: #666;
    line-height: 1.6;
}

/* Search and Filter Form */
.ocm-search-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.ocm-search-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.ocm-search-field {
    flex: 1;
    min-width: 200px;
}

.ocm-search-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.ocm-search-field input,
.ocm-search-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ocm-search-actions {
    display: flex;
    gap: 10px;
    align-items: end;
}

.ocm-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.ocm-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.ocm-btn-secondary {
    background: #666;
}

.ocm-btn-secondary:hover {
    background: #555;
}

/* Status Indicators */
.ocm-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ocm-status-active {
    background: #d4edda;
    color: #155724;
}

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

.ocm-status-pending {
    background: #fff3cd;
    color: #856404;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ocm-orphan-header {
        flex-direction: column;
        text-align: center;
    }
    
    .ocm-orphan-meta {
        grid-template-columns: 1fr;
    }
    
    .ocm-guardian-list {
        grid-template-columns: 1fr;
    }
    
    .ocm-search-row {
        flex-direction: column;
    }
    
    .ocm-search-field {
        min-width: auto;
    }
    
    .ocm-id-card {
        width: 100%;
        max-width: 350px;
    }
}