/* =============================================
   Psyciencia – Widget Clínicos Pro
   ============================================= */

.ptw-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: #2c2c2c;
    background: #ffffff;
    width: 100%;
}

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

.ptw-titulo {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #213A49 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1.3 !important;
}

.ptw-refresh {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid #c9a84c;
    color: #854F0B;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    line-height: 1.6;
}

.ptw-refresh:hover {
    background: #c9a84c;
    color: #fff;
}

.ptw-refresh svg {
    flex-shrink: 0;
}

.ptw-refresh.ptw-loading svg {
    animation: ptw-spin 0.6s linear infinite;
}

@keyframes ptw-spin {
    to { transform: rotate(360deg); }
}

.ptw-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.ptw-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
    margin: 0 !important;
}

.ptw-card:last-child {
    border-bottom: none;
}

.ptw-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #213A49;
    color: #c9a84c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.ptw-info {
    flex: 1;
    min-width: 0;
}

.ptw-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #213A49 !important;
    margin: 0 0 1px !important;
    padding: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3 !important;
}

.ptw-name a {
    color: #213A49 !important;
    text-decoration: none !important;
}

.ptw-name a:hover {
    color: #c9a84c !important;
    text-decoration: underline !important;
}

.ptw-sub {
    font-size: 11px !important;
    color: #888 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.ptw-online {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #e6f4ee;
    color: #1a7a45;
    border-radius: 20px;
    padding: 2px 7px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ptw-footer {
    margin-top: 10px;
    text-align: center;
    background: #ffffff;
}

.ptw-ver-todos {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #213A49 !important;
    text-decoration: none !important;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.ptw-ver-todos:hover {
    opacity: 1;
    text-decoration: underline !important;
}

.ptw-empty {
    font-size: 12px;
    color: #888;
    text-align: center;
    padding: 10px 0;
    background: #ffffff;
}
