/* Mail App Styles */
.mail-compose {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background-color: white;
    padding: 0px;
}

.mail-field {
    display: flex;
    align-items: center;
    margin-bottom: 1px;
    width: 100%;
    border: none;
}

.mail-label {
    min-width: 40px;
    font-size: 16px;
    color: #666;
    display: flex;
    align-items: center;
}

.mail-input, #mail-body {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
}

#mail-body {
    width: 100%;
    height: 200px;
    box-sizing: border-box;
    resize: none;
    overflow-wrap: break-word;
    overflow-y: auto;
    border: none;
    outline: none;
    font-size: 13px;
    background: transparent;
}

.mail-actions {
    display: flex;
    justify-content: flex-start;
    padding: 10px 0;
}

.send-mail-btn {
    background-color: #007aff;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-mail-btn:hover {
    background-color: #0062cc;
}

.send-mail-btn:active {
    transform: scale(0.98);
}

/* Ensure hr tags in mail app extend fully */
#mail-app hr {
    border: none;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.15);
    width: 100%;
    margin: 15px 0;
    position: relative;
}

/* Status bar styles for mail app */
#mail-app .status-bar.in-app.light-mode {
    color: black;
}

#mail-app .status-bar .time {
    color: black;
}

.mail-limit-info {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    background-color: #f5f5f5;
    padding: 5px 5px;
    border-radius: 4px;
    text-align: center;
}

.mail-limit-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px;
}

.mail-limit-message h3 {
    margin: 10px 0;
    color: #e74c3c;
}

.mail-limit-message p {
    margin-bottom: 20px;
    color: #666;
}

.mail-reset-limit-btn {
    background-color: #007aff;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mail-reset-limit-btn:hover {
    background-color: #0062cc;
}

.mail-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mail-close-button:hover {
    color: #555;
    background-color: rgba(0,0,0,0.05);
}

.mail-success-feedback {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px;
    animation: fadeInUp 0.3s ease-out;
}

.mail-error-feedback {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px;
    animation: fadeInUp 0.3s ease-out;
}

.mail-error-icon {
    font-size: 40px;
    color: #e74c3c;
    margin-bottom: 15px;
}

.mail-try-again-btn {
    background-color: #007aff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s;
}

.mail-try-again-btn:hover {
    background-color: #0062cc;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
