/* css/custom.css */

body {
    background-color: #f5f5f5;
}

.message-list {
    max-height: 600px;
    overflow-y: auto;
}

.message-item {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    transition: background-color 0.2s;
}

.message-item:hover {
    background-color: #f8f9fa;
}

.message-item.active {
    background-color: #e7f3ff;
}

.message-item.unread {
    background-color: #fff3cd;
    font-weight: bold;
}

.message-subject {
    font-size: 14px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-from {
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
}

.message-date {
    font-size: 12px;
    color: #999;
}

.folder-item {
    padding: 8px 12px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.folder-item:hover {
    background-color: #f0f0f0;
    border-left-color: #007bff;
}

.folder-item.active {
    background-color: #e3f2fd;
    border-left-color: #0056b3;
    font-weight: bold;
}

.folder-item i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.account-section {
    border-bottom: 2px solid #dee2e6;
    padding: 10px;
    background-color: #f8f9fa;
    font-weight: bold;
}

.account-email {
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.account-email:hover {
    color: #007bff;
}

.dragging {
    opacity: 0.5;
    border: 2px dashed #007bff;
}

.drag-over {
    background-color: #d1ecf1 !important;
    border-left-color: #0c5460 !important;
}

.attachment-icon {
    color: #6c757d;
    margin-left: 5px;
}

.flagged-icon {
    color: #dc3545;
    margin-left: 5px;
}

#messageContent {
    min-height: 400px;
}

.message-header {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.message-header h5 {
    margin-bottom: 10px;
}

.message-meta {
    font-size: 13px;
    color: #666;
}

.message-body {
    padding: 20px 0;
    line-height: 1.6;
}

.message-body iframe {
    width: 100%;
    min-height: 400px;
    border: none;
}

.attachment-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.attachment-item {
    display: inline-block;
    padding: 8px 12px;
    margin: 5px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
}

.attachment-item:hover {
    background-color: #e9ecef;
}

.loader {
    text-align: center;
    padding: 20px;
}

.loader i {
    font-size: 24px;
    color: #007bff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.notification {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
}

.folder-tree {
    padding-left: 0;
    list-style: none;
}

.folder-tree ul {
    padding-left: 20px;
    list-style: none;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ccc;
}
