﻿body, html {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.pagination-span {
    text-align: right;
    padding: 10px;
    padding-right: 20px;
}

.pageNumberIndicator {
    display: inline-block;
    width: 40px;
    text-align: center;
    font-weight: bold;
}

.from-cell {
    flex: 0 0 120px;
    font-size: 12px;
    color: #000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.emailinfo {
    font-size: 12px;
    width: 100%;
    margin-left: 10px;
    width: auto;
}

.emailinfo-flex {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
}

.emailinfo-row {
    display: flex;
    gap: 0.5em;
}

.emailinfo-label {
    color: #bbb;
    min-width: 60px;
    font-weight: bold;
}

.emailinfo-value {
    color: #222;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.emailinfo th {
    color: #bbb;
    padding: 0px;
    margin: 10px;
}

.emailinfo td {
    padding: 0px;
    padding-left: 10px;
    margin: 0px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 1em 0;
}

.pagination-controls button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-btn {
    cursor: pointer;
    padding: 4px 8px;
    border: none;
    background: #eee;
    border-radius: 3px;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #ddd;
}

.action-btn:active {
    background: #ccc;
}

.hidden {
    display: none !important;
}

.delete-animation {
    animation-name: fadeOut;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

.create-animation {
    animation-name: fadeIn;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.mail-list {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin-top: 1em;
}

.mail-row {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    padding: 0.5em 0.75em;
    cursor: pointer;
    transition: background 0.2s;
}

.mail-row:hover,
.mail-row.viewer-open {
    background: #f9f9f9;
}

.mail-cell {
    padding: 0.25em 0.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-cell {
    flex: 2 1 300px;
    min-width: 180px;
}

.time-cell {
    flex: 0 0 120px;
    text-align: center;
    font-size: 12px;
    color: #555;
}

.actions-cell {
    flex: 0 0 90px;
    display: flex;
    gap: 0.25em;
    justify-content: center;
    align-items: center;
}

.viewer-row {
    background: #f6f6f6;
    border-radius: 4px;
    margin-bottom: 0.5em;
    padding: 0.5em;
}

.emailviewer {
    text-align: center;
    width: 100%;
}

.emailviewer > email-sandbox,
.emailviewer > iframe {
    width: 100%;
    height: 30em;
    border: none;
}


@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        height: 0;
        padding: 0;
        margin: 0;
    }
}

.test-mail-form-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5em;
}

.test-mail-form {
    background: none;
    border: none;
    box-shadow: none;
    opacity: 0.7;
    font-size: 13px;
}

    .test-mail-form label {
        color: #888;
        font-weight: normal;
    }

    .test-mail-form input {
        border: 1px solid #ddd;
        background: #fafafa;
        font-size: 13px;
        padding: 2px 6px;
        border-radius: 2px;
    }

    .test-mail-form button {
        background: #eee;
        color: #666;
        border: 1px solid #ddd;
        font-size: 13px;
        padding: 2px 10px;
        border-radius: 2px;
        opacity: 0.8;
    }