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

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f6f8fc;
    color: #202124;
    line-height: 1.5;
}

/* Uygulama konteyneri */
.app-container {
    display: flex;
    height: 100vh;
}

/* Sol menü */
.sidebar {
    width: 280px;
    background-color: #ffffff;
    border-right: 1px solid #dadce0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #dadce0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-size: 20px;
    color: #202124;
}

.compose-btn {
    background-color: #1a73e8;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.2s;
}

.compose-btn:hover {
    background-color: #1557b0;
}

.sidebar-nav {
    flex: 1;
    padding: 10px 0;
}

.nav-item {
    display: block;
    padding: 12px 24px;
    color: #5f6368;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.nav-item:hover,
.nav-item.active {
    background-color: #f1f3f4;
    color: #202124;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #dadce0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout-link {
    color: #5f6368;
    text-decoration: none;
    font-size: 14px;
}

/* Ana içerik */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

/* E-posta listesi başlığı */
.email-list-header {
    padding: 20px 30px;
    border-bottom: 1px solid #dadce0;
}

.email-list-header h1 {
    font-size: 22px;
    color: #202124;
}

/* E-posta listesi */
.email-list {
    flex: 1;
    overflow-y: auto;
}

.email-item {
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s;
}

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

.email-item.unread {
    background-color: #e8f0fe;
}

.email-link {
    display: block;
    padding: 15px 30px;
    text-decoration: none;
    color: inherit;
}

.email-sender {
    font-weight: 500;
    color: #202124;
    margin-bottom: 4px;
}

.email-subject {
    color: #5f6368;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-date {
    font-size: 12px;
    color: #5f6368;
    text-align: right;
}

/* E-posta görüntüleme */
.email-view-header {
    padding: 20px 30px;
    border-bottom: 1px solid #dadce0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.email-view-header h1 {
    font-size: 18px;
    color: #202124;
}

.back-btn {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
}

.email-view {
    padding: 30px;
}

.email-meta {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dadce0;
}

.email-sender,
.email-date {
    margin-bottom: 10px;
    font-size: 14px;
}

.email-body {
    line-height: 1.6;
    color: #202124;
}

/* Compose formu */
.compose-header {
    padding: 20px 30px;
    border-bottom: 1px solid #dadce0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.compose-header h1 {
    font-size: 18px;
    color: #202124;
}

.compose-form {
    padding: 30px;
    max-width: 800px;
}

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

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

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 200px;
}

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

.send-btn {
    background-color: #1a73e8;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.send-btn:hover {
    background-color: #1557b0;
}

.cancel-btn {
    color: #5f6368;
    text-decoration: none;
    padding: 12px 24px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.cancel-btn:hover {
    background-color: #f1f3f4;
}

/* Giriş sayfası */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f6f8fc;
}

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

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 28px;
    color: #202124;
}

.login-btn {
    width: 100%;
    background-color: #1a73e8;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-btn:hover {
    background-color: #1557b0;
}

/* Mesajlar */
.success-message,
.error-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.success-message {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

.no-emails {
    padding: 60px 30px;
    text-align: center;
    color: #5f6368;
    font-size: 16px;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }

    .sidebar-header {
        padding: 15px;
    }

    .main-content {
        height: calc(100vh - 200px);
    }

    .email-link {
        padding: 12px 20px;
    }

    .email-view,
    .compose-form {
        padding: 20px;
    }
}