/* Mail App */
.mail-content,
.mail-list-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mail-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.mail-item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 14px 12px;
    text-align: left;
    cursor: pointer;
}

.mail-item.unread {
    font-weight: 700;
}

.mail-item.read {
    opacity: 0.74;
}

.mail-item-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.mail-item-subject {
    margin-top: 6px;
    font-size: 16px;
    color: var(--text-primary);
}

.mail-item-preview {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-empty {
    color: var(--text-secondary);
    padding: 32px 16px;
    text-align: center;
}

.mail-composer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}

.mail-composer label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mail-composer input,
.mail-composer select,
.mail-composer textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px 12px;
    font: inherit;
    box-sizing: border-box;
}

.mail-composer textarea {
    resize: none;
}

.mail-send-button {
    border: 0;
    border-radius: 12px;
    background: var(--accent-color);
    color: white;
    cursor: pointer;
    font-weight: 700;
}

.mail-send-button {
    padding: 12px 14px;
}

.mail-detail {
    padding: 16px;
    overflow-y: auto;
    color: var(--text-primary);
}

.mail-detail h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.mail-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 18px;
}

.mail-body {
    white-space: pre-wrap;
    line-height: 1.45;
    margin: 0;
}

.mail-delete-button {
    margin-top: 18px;
    width: 100%;
    border: 1px solid rgba(255, 59, 48, 0.55);
    border-radius: 12px;
    background: rgba(255, 59, 48, 0.14);
    color: #ff6b61;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 11px 14px;
}

.mail-delete-button:hover {
    background: rgba(255, 59, 48, 0.22);
}
