.inbox-container {
    padding: 20px;
    background: var(--bg-color);
    min-height: calc(100vh - 80px);
}

.inbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: #1a1f2d;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.inbox-header h2 {
    color: #63E6BE;
    font-size: 24px;
    margin: 0;
}

.inbox-actions {
    display: flex;
    gap: 15px;
}

.compose-btn {
    background-color: #63E6BE;
    color: #1a1f2d;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.compose-btn:hover {
    background-color: #4cd4ac;
    transform: translateY(-2px);
}

.inbox-search {
    position: relative;
    width: 300px;
}

.inbox-search input {
    width: 100%;
    padding: 10px 35px;
    border: 1px solid #2a2f3d;
    border-radius: 5px;
    font-size: 14px;
    background: #1a1f2d;
    color: #fff;
}

.inbox-search input:focus {
    outline: none;
    border-color: #63E6BE;
}

.inbox-search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #63E6BE;
}

.inbox-grid {
    display: grid;
    grid-template-columns: 200px 300px 1fr;
    gap: 20px;
    height: calc(100vh - 250px);
    background: #1a1f2d;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.email-sidebar {
    background: #1a1f2d;
    padding: 20px;
    border-right: 1px solid #2a2f3d;
}

.folder {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    color: #fff;
}

.folder:hover {
    background-color: #2a2f3d;
}

.folder.active {
    background-color: #2a2f3d;
    color: #63E6BE;
}

.folder i {
    color: #63E6BE;
}

.folder .badge {
    margin-left: auto;
    background-color: #63E6BE;
    color: #1a1f2d;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.labels h3 {
    font-size: 14px;
    margin: 20px 0 10px;
    color: #63E6BE;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    color: #fff;
}

.label:hover {
    background-color: #2a2f3d;
}

.label-dot.important { background-color: #ff4757; }
.label-dot.work { background-color: #63E6BE; }
.label-dot.personal { background-color: #ffa502; }

.email-list {
    background: #1a1f2d;
    border-right: 1px solid #2a2f3d;
    overflow-y: auto;
}

.email-item {
    padding: 15px;
    border-bottom: 1px solid #2a2f3d;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.email-item:hover {
    background-color: #2a2f3d;
}

.email-item.unread {
    background-color: #2a2f3d;
    border-left: 3px solid #63E6BE;
}

.email-item.selected {
    background-color: #2a2f3d;
    border-left: 3px solid #63E6BE;
}

.email-sender {
    font-weight: 600;
    margin-bottom: 5px;
    color: #63E6BE;
}

.email-subject {
    color: #fff;
    margin-bottom: 5px;
}

.email-preview {
    color: #8c8c8c;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-date {
    font-size: 12px;
    color: #8c8c8c;
    margin-top: 5px;
}

.email-content {
    padding: 20px;
    background: #1a1f2d;
    color: #fff;
    overflow-y: auto;
}

.email-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a2f3d;
}

.email-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #63E6BE;
}

.email-meta {
    display: flex;
    gap: 20px;
    color: #8c8c8c;
    margin-bottom: 20px;
}

.email-body {
    line-height: 1.6;
    color: #fff;
}

.email-body p {
    margin-bottom: 15px;
}

.email-attachments {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #2a2f3d;
}

.attachment {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #2a2f3d;
    border-radius: 5px;
    margin-bottom: 10px;
    color: #fff;
}

.attachment i {
    color: #63E6BE;
}

/* Custom Scrollbar */
.email-list::-webkit-scrollbar,
.email-content::-webkit-scrollbar {
    width: 8px;
}

.email-list::-webkit-scrollbar-track,
.email-content::-webkit-scrollbar-track {
    background: #1a1f2d;
}

.email-list::-webkit-scrollbar-thumb,
.email-content::-webkit-scrollbar-thumb {
    background: #2a2f3d;
    border-radius: 4px;
}

.email-list::-webkit-scrollbar-thumb:hover,
.email-content::-webkit-scrollbar-thumb:hover {
    background: #63E6BE;
}

/* Compose Modal Styles */
.compose-modal {
    width: 800px;
    max-width: 90vw;
}

.compose-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.compose-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.compose-form label {
    color: #63E6BE;
    font-weight: 500;
}

.compose-form input,
.compose-form textarea {
    padding: 10px;
    border: 1px solid #2a2f3d;
    border-radius: 5px;
    background: #1a1f2d;
    color: #fff;
    font-family: inherit;
}

.compose-form input:focus,
.compose-form textarea:focus {
    outline: none;
    border-color: #63E6BE;
}

.compose-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #2a2f3d;
}

.formatting-tools {
    display: flex;
    gap: 10px;
}

.format-btn {
    background: #2a2f3d;
    border: none;
    color: #63E6BE;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.format-btn:hover {
    background: #363b4a;
}

.send-actions {
    display: flex;
    gap: 10px;
}

.draft-btn,
.send-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.draft-btn {
    background: #2a2f3d;
    color: #63E6BE;
}

.draft-btn:hover {
    background: #363b4a;
}

.send-btn {
    background: #63E6BE;
    color: #1a1f2d;
}

.send-btn:hover {
    background: #4cd4ac;
    transform: translateY(-2px);
}

/* Animation for modal */
.modal-container {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-container.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.modal-container.active .modal-content {
    transform: translateY(0);
}

.email-success-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #63E6BE;
    color: #1a1f2d;
    padding: 15px 25px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease, slideOut 0.3s ease 2.7s;
    z-index: 1000;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Label Management Styles */
.email-labels {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.email-label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    background: #2a2f3d;
    color: #fff;
}

.email-label.important { border-left: 2px solid #ff4757; }
.email-label.work { border-left: 2px solid #63E6BE; }
.email-label.personal { border-left: 2px solid #ffa502; }

.email-labels-management {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #2a2f3d;
}

.current-labels {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.add-label-dropdown {
    position: relative;
}

.add-label-btn {
    background: #2a2f3d;
    color: #63E6BE;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.add-label-btn:hover {
    background: #363b4a;
}

.label-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1f2d;
    border: 1px solid #2a2f3d;
    border-radius: 5px;
    padding: 5px;
    margin-top: 5px;
    display: none;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.label-dropdown-content.active {
    display: block;
}

.label-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.label-option:hover {
    background: #2a2f3d;
}

.remove-label {
    background: none;
    border: none;
    color: #8c8c8c;
    cursor: pointer;
    padding: 0 3px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.remove-label:hover {
    color: #ff4757;
}

/* Empty State Styles */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #8c8c8c;
    text-align: center;
    padding: 20px;
}

.empty-state .empty-icon {
    font-size: 48px;
    color: #2a2f3d;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #63E6BE;
    margin-bottom: 10px;
}

.empty-folder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #8c8c8c;
    text-align: center;
    padding: 20px;
}

.empty-folder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #2a2f3d;
}

/* Email Actions */
.email-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.star-btn, .delete-btn {
    background: none;
    border: none;
    color: #8c8c8c;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.star-btn:hover {
    color: #ffd700;
}

.star-btn.starred {
    color: #ffd700;
}

.delete-btn:hover {
    color: #ff4757;
}

/* Update email-item to accommodate new buttons */
.email-item {
    position: relative;
}

.delete-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.email-item:hover .delete-btn {
    opacity: 1;
}

/* Update folder badges */
.folder .badge {
    background: #2a2f3d;
    color: #63E6BE;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.folder.active .badge {
    background: #63E6BE;
    color: #1a1f2d;
} 