/* Medical Assessment Platform - Base Styles (shared admin + frontend) */
.mp-dashboard {
    max-width: 1200px;
    margin: 20px 0;
}
.mp-dashboard h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2271b1;
}
.mp-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.mp-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.mp-card h3 {
    margin-top: 0;
    color: #1d2327;
    font-size: 16px;
    font-weight: 600;
}
.mp-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}
.mp-stat-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.mp-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #2271b1;
    line-height: 1.2;
}
.mp-stat-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}
.mp-children-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mp-children-list li {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mp-children-list li:last-child {
    border-bottom: none;
}
.mp-child-actions {
    display: flex;
    gap: 8px;
}
.mp-patients-table {
    width: 100%;
    border-collapse: collapse;
}
.mp-patients-table th,
.mp-patients-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.mp-patients-table th {
    font-weight: 600;
    color: #1d2327;
    background: #f0f6fc;
}
.mp-stage-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.mp-stage-initial { background: #e3f2fd; color: #1565c0; }
.mp-stage-review { background: #fff3e0; color: #e65100; }
.mp-stage-main { background: #e8f5e9; color: #2e7d32; }
.mp-stage-completed { background: #f3e5f5; color: #7b1fa2; }
.mp-stage-not { background: #f5f5f5; color: #999; }
.mp-profile-table {
    width: 100%;
}
.mp-profile-table th {
    width: 150px;
    padding: 8px;
    text-align: left;
    font-weight: 600;
    color: #1d2327;
    vertical-align: top;
}
.mp-profile-table td {
    padding: 8px;
}
.mp-inbox-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
}
.mp-inbox-sidebar {
    border-right: 1px solid #ddd;
    background: #f8f9fa;
    padding: 15px;
}
.mp-inbox-sidebar h3 {
    margin-top: 0;
    font-size: 14px;
    text-transform: uppercase;
    color: #666;
}
#mp-conversation-list {
    margin-bottom: 15px;
}
.mp-conversation-item {
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 2px;
}
.mp-conversation-item:hover,
.mp-conversation-item.active {
    background: #e3f2fd;
}
.mp-conversation-item.unread {
    font-weight: 600;
}
.mp-inbox-main {
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.mp-message-bubble {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    max-width: 80%;
}
.mp-message-sent {
    background: #e3f2fd;
    align-self: flex-end;
    margin-left: auto;
}
.mp-message-received {
    background: #f5f5f5;
    align-self: flex-start;
}
.mp-message-meta {
    font-size: 11px;
    color: #999;
    display: block;
    margin-top: 5px;
}
#mp-reply-form {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
#mp-reply-form textarea {
    width: 100%;
    margin-bottom: 10px;
}
.mp-resource-filters {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mp-filter-tag {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    font-size: 13px;
}
.mp-filter-tag.active,
.mp-filter-tag:hover {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}
.mp-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.mp-resource-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.2s;
}
.mp-resource-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.mp-resource-card h4 {
    margin: 0 0 10px;
    color: #1d2327;
}
.mp-journal-timeline {
    position: relative;
}
.mp-journal-entry {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}
.mp-journal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.mp-journal-header h4 {
    margin: 0;
    flex: 1;
}
.mp-journal-date {
    color: #999;
    font-size: 12px;
}
.mp-journal-source {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}
.mp-source-manual_entry { background: #e3f2fd; color: #1565c0; }
.mp-source-video_recording { background: #fce4ec; color: #c62828; }
.mp-source-transcription { background: #e8f5e9; color: #2e7d32; }
.mp-source-school_observation { background: #fff3e0; color: #e65100; }
.mp-source-custom_note { background: #f3e5f5; color: #7b1fa2; }
.mp-source-document_upload { background: #e0f2f1; color: #00695c; }
.mp-transcript-details {
    margin-top: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 10px;
}
.mp-transcript-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #2271b1;
}
.mp-transcript-text {
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 10px;
}
.mp-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}
.mp-modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
}
.mp-login-notice {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}
.mp-placeholder {
    color: #999;
    text-align: center;
    padding: 40px;
}
.mp-loading {
    color: #999;
    text-align: center;
}
.mp-unread-count {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}
.mp-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Note category badges */
.mp-note-category-observation { background: #e3f2fd; color: #1565c0; }
.mp-note-category-follow_up { background: #fff3e0; color: #e65100; }
.mp-note-category-parent_contact { background: #e8f5e9; color: #2e7d32; }
.mp-note-category-internal { background: #f3e5f5; color: #7b1fa2; }
.mp-note-category-default { background: #f5f5f5; color: #666; }

/* Hub layout (frontend hub shortcode) */
.mp-hub { max-width: 1200px; margin: 0 auto; }
.mp-hub-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid #e0e0e0; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.mp-hub-user { display: flex; align-items: center; gap: 10px; }
.mp-hub-user img { border-radius: 50%; }
.mp-hub-user-name { font-size: 18px; font-weight: 600; }
.mp-hub-tabs { display: flex; gap: 4px; }
.mp-hub-tab { padding: 8px 16px; text-decoration: none; color: #555; border-radius: 6px; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.mp-hub-tab:hover { background: #f0f0f0; color: #111; }
.mp-hub-tab.active { background: #2271b1; color: #fff; }
.mp-hub-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.mp-hub-overview .mp-stat-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 24px; text-align: center; }
.mp-hub-overview .mp-stat-number { display: block; font-size: 32px; font-weight: 700; color: #2271b1; }
.mp-hub-overview .mp-stat-label { display: block; font-size: 13px; color: #666; margin-top: 4px; }
.mp-hub-quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 768px) {
    .mp-dashboard-grid { grid-template-columns: 1fr; }
    .mp-dashboard-stats { grid-template-columns: 1fr; }
    .mp-inbox-layout { grid-template-columns: 1fr; }
    .mp-inbox-sidebar { border-right: none; border-bottom: 1px solid #ddd; }
}
