/* Buddhistan Email Service Styles */
#buddhistan-registration-form,
#buddhistan-login-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#buddhistan-registration-form h3,
#buddhistan-login-form h3 {
    text-align: center;
    color: #2c5530;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.username-input {
    display: flex;
    align-items: center;
}

.username-input input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.username-input .domain {
    background: #e9ecef;
    padding: 10px;
    border: 1px solid #ddd;
    border-left: none;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    color: #666;
}

button#register-btn,
button#login-btn {
    width: 100%;
    padding: 12px;
    background: #2c5530;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

button#register-btn:hover,
button#login-btn:hover {
    background: #1e3a23;
}

#registration-message,
#login-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mailbox Styles */
#buddhistan-mailbox {
    font-family: Arial, sans-serif;
}

.mailbox-header {
    background: #2c5530;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mailbox-header h2 {
    margin: 0;
}

.user-info a {
    color: white;
    text-decoration: underline;
}

.mailbox-layout {
    display: flex;
    height: calc(100vh - 200px);
}

.sidebar {
    width: 200px;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    padding: 20px;
}

.compose-btn {
    width: 100%;
    padding: 10px;
    background: #2c5530;
    color: white;
    border: none;
    border-radius: 4px;
    margin-bottom: 20px;
    cursor: pointer;
}

.folder-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.folder-list li {
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 5px;
}

.folder-list li.active,
.folder-list li:hover {
    background: #e9ecef;
}

.main-content {
    flex: 1;
    display: flex;
}

.email-list {
    width: 40%;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
}

.email-list-header {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-box input {
    width: 200px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.emails {
    flex: 1;
    overflow-y: auto;
}

.email-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.email-item:hover {
    background: #f8f9fa;
}

.email-item.unread {
    font-weight: bold;
}

.email-sender {
    font-weight: bold;
    margin-bottom: 5px;
}

.email-subject {
    margin-bottom: 5px;
}

.email-preview {
    color: #666;
    font-size: 14px;
}

.email-view {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

#compose-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

#send-btn,
#save-draft {
    padding: 8px 15px;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#send-btn {
    background: #2c5530;
    color: white;
}

#save-draft {
    background: #6c757d;
    color: white;
}

/* Dashboard Styles */
.dashboard-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
}

.stat-card p {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #2c5530;
}