/* CornPOP Webmail Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    min-height: calc(100vh - 120px);
    padding: 20px;
}

/* Navbar */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 24px;
    color: #3498db;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: #34495e;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-box h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 12px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

/* Inbox */
.inbox-container {
    display: flex;
    gap: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar {
    width: 200px;
    background-color: #ecf0f1;
    padding: 20px;
}

.sidebar h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.folder-list {
    list-style: none;
}

.folder-list li {
    margin-bottom: 5px;
}

.folder-list li a {
    display: block;
    padding: 10px;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.folder-list li a:hover {
    background-color: #d5dbdb;
}

.folder-list li.active a {
    background-color: #3498db;
    color: white;
}

.unread-badge {
    float: right;
    background-color: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* Email List */
.email-list {
    flex: 1;
    padding: 20px;
}

.email-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.email-table {
    width: 100%;
    border-collapse: collapse;
}

.email-table th {
    background-color: #ecf0f1;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
}

.email-table td {
    padding: 12px;
    border-bottom: 1px solid #ecf0f1;
}

.email-table tr:hover {
    background-color: #f8f9fa;
}

.email-table tr.unread {
    font-weight: bold;
}

.email-table tr.unread td {
    background-color: #e8f4f8;
}

.email-table a {
    color: #2c3e50;
    text-decoration: none;
}

.email-table a:hover {
    color: #3498db;
    text-decoration: underline;
}

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

/* Email View */
.email-view {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.email-header {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
}

.email-details h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.email-meta {
    background-color: #ecf0f1;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.email-meta p {
    margin-bottom: 5px;
}

.email-body {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    min-height: 200px;
}

.email-body pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
}

/* Compose */
.compose-container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.compose-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Settings */
.settings-container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.settings-container h2 {
    margin-bottom: 30px;
    color: #2c3e50;
}

.settings-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ecf0f1;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    color: #34495e;
    margin-bottom: 15px;
}

.settings-section h4 {
    color: #555;
    margin-top: 15px;
    margin-bottom: 10px;
}

.settings-section ul {
    list-style: none;
    padding-left: 20px;
}

.settings-section ul li {
    margin-bottom: 8px;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

footer p {
    margin: 0;
    font-size: 14px;
}
