/* relationships.css */

/* General styles for new views */
.relationship-view {
    text-align: left;
    background-color: #f9fafb; /* bg-gray-100 */
    border-radius: 0.5rem; /* rounded-lg */
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 450px;
    animation: fadeIn 0.3s ease-out forwards;
}

html.dark .relationship-view {
    background-color: rgba(31, 41, 55, 0.5); /* dark:bg-gray-800/50 */
}

.relationship-view-header {
    font-size: 1.125rem; /* text-lg */
    font-weight: 700;
    text-align: center;
    color: #111827; /* text-gray-900 */
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

html.dark .relationship-view-header {
    color: #ffffff; /* dark:text-white */
}

.relationship-view-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 0.5rem; /* pr-2 */
}

.relationship-view-footer {
    margin-top: 1rem;
    flex-shrink: 0;
}

/* Stat Bar (for relationship strength and child mood) */
.stat-bar-wrapper {
    width: 100%;
    background-color: #e5e7eb; /* bg-gray-200 */
    border-radius: 9999px; /* rounded-full */
    height: 1.25rem; /* h-5 */
    border: 1px solid #9ca3af; /* border-gray-400 */
    padding: 2px;
    position: relative;
}

html.dark .stat-bar-wrapper {
    background-color: #4b5563; /* dark:bg-gray-600 */
    border-color: #1f2937; /* dark:border-gray-800 */
}

.stat-bar-inner {
    height: 100%;
    border-radius: 9999px; /* rounded-full */
    transition: width 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-bar-text {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 0.75rem; /* text-xs */
    font-weight: 700;
    color: #000000;
    text-shadow: 0 0 2px #ffffff;
}

/* Email View specific styles */
.email-tabs {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #e5e7eb; /* bg-gray-200 */
    padding: 0.25rem;
    border-radius: 0.5rem; /* rounded-lg */
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

html.dark .email-tabs {
     background-color: rgba(17, 24, 39, 0.5); /* dark:bg-gray-900/50 */
}

.email-tab-button {
    padding: 0.25rem 0.75rem; /* py-1 px-3 */
    border-radius: 0.375rem; /* rounded-md */
    transition: color 0.2s, background-color 0.2s;
    font-size: 0.875rem; /* text-sm */
    color: #1f2937; /* text-gray-800 */
}

html.dark .email-tab-button {
    color: #d1d5db; /* dark:text-gray-300 */
}

.email-tab-button.active {
    background-color: #3b82f6; /* bg-blue-600 */
    color: #ffffff; /* text-white */
}

.message-item {
    background-color: #e5e7eb; /* bg-gray-200 */
    padding: 0.75rem;
    border-radius: 0.5rem; /* rounded-lg */
    border-left: 4px solid #9ca3af; /* border-l-4 border-gray-400 */
}

html.dark .message-item {
    background-color: rgba(55, 65, 81, 0.5); /* dark:bg-gray-700/50 */
}

.message-item.unread {
     border-left-color: #3b82f6; /* border-blue-500 */
}