/* Medical Assessment Platform - Frontend-Only Overrides */
.mp-dashboard {
    margin: 30px auto;
    padding: 0 20px;
}
.mp-dashboard h2 {
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom-width: 3px;
    color: #1d2327;
}
.mp-card {
    border-color: #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.mp-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
}
.mp-stat-card {
    border-color: #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}
.mp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.mp-stat-number {
    font-size: 42px;
    line-height: 1.1;
}
.mp-stat-label {
    font-size: 14px;
    color: #757575;
    margin-top: 8px;
}
.mp-children-list li {
    padding: 18px 15px;
    border-bottom-color: #f0f0f0;
    flex-wrap: wrap;
    gap: 10px;
}
.mp-child-actions {
    gap: 10px;
}
.mp-child-actions .button {
    font-size: 13px;
    padding: 6px 15px;
}
.mp-patients-table th,
.mp-patients-table td {
    padding: 14px 12px;
    border-bottom-color: #f0f0f0;
}
.mp-patients-table th {
    font-size: 13px;
    text-transform: uppercase;
}
.mp-patients-table tr:hover td {
    background: #f8f9fa;
}
.mp-stage-badge {
    padding: 4px 12px;
    border-radius: 14px;
}
.mp-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.mp-profile-table th {
    width: 180px;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.mp-profile-table td {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.mp-inbox-layout {
    grid-template-columns: 320px 1fr;
    border-color: #e0e0e0;
    border-radius: 10px;
    min-height: 500px;
}
.mp-inbox-sidebar {
    border-right-color: #e0e0e0;
    padding: 20px;
}
.mp-inbox-sidebar h3 {
    font-size: 13px;
    color: #757575;
    letter-spacing: 1px;
}
#mp-conversation-list {
    margin-bottom: 20px;
}
.mp-conversation-item {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 3px;
    transition: background 0.15s;
}
.mp-conversation-item.unread {
    border-left: 3px solid #2271b1;
    padding-left: 9px;
}
.mp-inbox-main {
    padding: 25px;
    background: #fff;
}
.mp-message-bubble {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 12px;
    max-width: 75%;
    line-height: 1.5;
}
.mp-message-sent {
    border-bottom-right-radius: 4px;
}
.mp-message-received {
    border-bottom-left-radius: 4px;
}
.mp-message-meta {
    margin-top: 6px;
}
#mp-reply-form {
    padding-top: 20px;
    border-top-color: #e0e0e0;
}
#mp-reply-form textarea {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    font-family: inherit;
    font-size: 14px;
}
.mp-resource-filters {
    margin-bottom: 25px;
    gap: 10px;
}
.mp-filter-tag {
    padding: 6px 18px;
    border-color: #e0e0e0;
    border-radius: 25px;
    transition: all 0.2s;
}
.mp-resources-grid {
    gap: 25px;
}
.mp-resource-card {
    border-color: #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.mp-resource-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.mp-resource-card h4 {
    margin: 0 0 12px;
    font-size: 16px;
}
.mp-resource-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}
.mp-resource-content {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}
.mp-resource-content figure {
    margin: 12px 0;
}
.mp-resource-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
.mp-resource-content .wp-block-file {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 0;
}
.mp-resource-content .wp-block-file a:not(.wp-block-file__button) {
    color: #2271b1;
    font-size: 14px;
}
.mp-resource-content .wp-block-file__button {
    display: inline-block;
    padding: 6px 16px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}
.mp-resource-content .wp-block-file__button:hover {
    background: #135e96;
}
.mp-resource-content .wp-block-image {
    margin: 0;
}
.mp-resource-content .wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
.mp-journal-entry {
    border-color: #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s;
}
.mp-journal-entry:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.mp-journal-header {
    gap: 12px;
    margin-bottom: 15px;
}
.mp-journal-header h4 {
    font-size: 16px;
}
.mp-journal-source {
    padding: 3px 10px;
    border-radius: 12px;
}
.mp-transcript-details {
    border-radius: 8px;
    padding: 15px;
}
.mp-transcript-details summary {
    font-size: 14px;
}
.mp-transcript-text {
    font-family: 'Courier New', monospace;
    line-height: 1.7;
    max-height: 500px;
    margin-top: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #eee;
}
.mp-modal-content {
    padding: 30px;
    border-radius: 12px;
    max-width: 550px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.mp-login-notice {
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    font-size: 15px;
}
.mp-login-notice a {
    color: #2271b1;
    font-weight: 600;
    text-decoration: underline;
}
.mp-placeholder {
    padding: 50px 20px;
    font-size: 15px;
}
.mp-loading {
    padding: 20px;
}
.mp-unread-count {
    padding: 3px 10px;
    border-radius: 12px;
    transition: transform 0.2s;
}
.mp-badge-bounce {
    animation: mp-bounce 0.5s ease;
}
@keyframes mp-bounce {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.3); }
    60% { transform: scale(0.9); }
}
.mp-new-message {
    animation: mp-fadeSlideIn 0.3s ease-out;
}
.mp-new-conversation {
    animation: mp-highlightPulse 2s ease-out;
}
@keyframes mp-fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes mp-highlightPulse {
    0% { background: #fff9c4; }
    70% { background: #fff9c4; }
    100% { background: transparent; }
}
#mp-reply-content {
    resize: vertical;
}
#mp-reply-form .mp-send-hint {
    font-size: 11px;
    color: #aaa;
    float: right;
    margin-top: 6px;
}
.mp-video-session {
    text-align: center;
    padding: 60px 20px;
}
.mp-video-session #mp-joining-meeting {
    margin: 40px 0;
}
.mp-video-session #mp-joining-meeting p {
    font-size: 18px;
    color: #666;
}
.mp-assessment-form {
    max-width: 800px;
    margin: 0 auto;
}
.mp-assessment-form p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}
.mp-patient-profile .mp-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.mp-patient-profile .mp-profile-header-info h2 {
    margin: 0 0 4px;
    border: none;
    padding: 0;
}
.mp-patient-profile .mp-profile-role {
    font-size: 13px;
    color: #2271b1;
    font-weight: 500;
}
.mp-patient-profile .mp-profile-header-meta {
    margin-left: auto;
    text-align: right;
    font-size: 13px;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mp-profile-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
}
.mp-profile-tab {
    padding: 12px 24px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
}
.mp-profile-tab:hover {
    color: #2271b1;
    background: #f0f6fc;
}
.mp-profile-tab.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
}
.mp-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}
.mp-profile-grid .mp-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
.mp-card-full {
    grid-column: 1 / -1;
}
.mp-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.mp-quick-actions .button {
    flex: 1;
    text-align: center;
    min-width: 120px;
}
.mp-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mp-activity-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.mp-activity-list li:last-child {
    border-bottom: none;
}
.mp-activity-title {
    font-weight: 500;
    color: #1d2327;
}
.mp-activity-date {
    font-size: 12px;
    color: #999;
}
.mp-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}
.mp-file-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}
.mp-file-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.mp-file-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 6px;
}
.mp-file-info {
    flex: 1;
    min-width: 0;
}
.mp-file-info strong {
    display: block;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mp-note-item {
    transition: opacity 0.3s;
}
.mp-note-item .mp-note-actions {
    opacity: 0.6;
    transition: opacity 0.2s;
}
.mp-note-item:hover .mp-note-actions {
    opacity: 1;
}
.mp-note-edit-form textarea {
    font-family: inherit;
    font-size: 14px;
}
#mp-qr-image img {
    max-width: 200px;
    height: auto;
    margin: 15px 0;
}

@media (max-width: 768px) {
    .mp-resources-grid { grid-template-columns: 1fr; }
    .mp-inbox-sidebar { border-bottom-color: #e0e0e0; }
    .mp-children-list li { flex-direction: column; align-items: flex-start; }
    .mp-child-actions { width: 100%; justify-content: flex-start; }
}
