:root { --primary: #1a73e8; --bg-body: #f6f8fc; --bg-white: #ffffff; --text-main: #202124; --border: #dadce0; --sidebar-width: 256px; --header-height: 64px; }
body { font-family: "Google Sans", Roboto, Arial, sans-serif; background-color: var(--bg-body); color: var(--text-main); margin: 0; padding: 0; font-size: 14px; overflow: hidden; }
.app-container { display: flex; height: 100vh; width: 100vw; background: white; }
.sidebar { width: var(--sidebar-width); padding: 16px 0; background: var(--bg-white); display: flex; flex-direction: column; }
.logo-area { font-size: 22px; color: #5f6368; padding-left: 24px; margin-bottom: 16px; display: flex; align-items: center; }
.compose-btn { background: #c2e7ff; color: #001d35; min-width: 140px; height: 56px; border-radius: 16px; border: none; font-size: 14px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 12px; margin: 0 0 16px 16px; padding: 0 24px 0 16px; transition: box-shadow .08s linear,min-width .15s cubic-bezier(0.4,0.0,0.2,1); }
.compose-btn:hover { box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15); background-color: #b3d7ef; }
.nav-item { display: flex; align-items: center; justify-content: space-between; padding: 0 26px 0 26px; height: 32px; color: var(--text-main); text-decoration: none; border-radius: 0 16px 16px 0; margin-right: 16px; font-weight: 500; }
.nav-item:hover { background: #f1f3f4; }
.nav-item.active { background: #d3e3fd; color: #001d35; font-weight: 700; }
.main-content { flex: 1; display: flex; flex-direction: column; background: white; border-radius: 16px; margin: 8px 16px 16px 0; box-shadow: 0 0 10px rgba(0,0,0,0.05); overflow: hidden; }
.toolbar { height: 48px; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 16px; gap: 15px; }
.icon-btn { background: none; border: none; padding: 8px; border-radius: 50%; cursor: pointer; color: #5f6368; }
.icon-btn:hover { background: #f1f3f4; color: #202124; }
.email-list { flex: 1; overflow-y: auto; }
.email-item { display: flex; align-items: center; padding: 8px 16px; cursor: pointer; border-bottom: 1px solid #f2f6fc; transition: background 0.1s; }
.email-item:hover { box-shadow: inset 1px 0 0 #dadce0, 0 1px 2px 0 rgba(60,64,67,0.3); z-index: 1; position: relative; }
.email-item.unread { background: #ffffff; font-weight: 700; color: #202124; }
.checkbox-col { width: 40px; }
.sender-col { width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subject-col { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #5f6368; margin: 0 10px; }
.date-col { width: 100px; text-align: right; font-size: 12px; color: #5f6368; }
.compose-modal { position: fixed; bottom: 0; right: 60px; width: 560px; height: 600px; background: white; border-radius: 8px 8px 0 0; box-shadow: 0 8px 10px 1px rgba(0,0,0,0.14), 0 3px 14px 2px rgba(0,0,0,0.12), 0 5px 5px -3px rgba(0,0,0,0.2); z-index: 300; display: flex; flex-direction: column; font-family: Roboto, RobotoDraft, Helvetica, Arial, sans-serif; border: 1px solid transparent; }
.compose-header { background: #202124; color: white; padding: 10px 15px; border-radius: 8px 8px 0 0; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 500; cursor: default; }
.compose-body { flex: 1; display: flex; flex-direction: column; background: white; }
.compose-input { border: none; border-bottom: 1px solid #eee; padding: 10px 16px; font-size: 14px; width: 100%; outline: none; }
.compose-editor { flex: 1; padding: 16px; overflow-y: auto; outline: none; font-size: 14px; line-height: 1.5; }
.compose-footer { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; background: white; }
.btn-primary { background-color: #0b57d0; color: white; padding: 8px 24px; border-radius: 18px; font-weight: 500; border: none; cursor: pointer; }
.btn-primary:hover { background-color: #0842a0; box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3); }
.format-toolbar { display: flex; gap: 2px; }
.format-btn { background: none; border: none; cursor: pointer; padding: 6px; border-radius: 4px; color: #444; }
.format-btn:hover { background: #f1f3f4; }
.format-btn svg { width: 18px; height: 18px; fill: currentColor; }
.attach-list { padding: 0 16px 8px; font-size: 12px; }
.attach-item { background: #f1f3f4; padding: 4px 8px; border-radius: 4px; border: 1px solid #ddd; display: inline-block; margin-right: 5px; }
.email-viewer { position: fixed; top: 0; right: -100%; width: 100%; height: 100%; background: white; z-index: 200; transition: right 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); box-shadow: -5px 0 15px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
@media (min-width: 800px) { .email-viewer { width: 70%; } }
.viewer-header { height: 64px; border-bottom: 1px solid #eee; display: flex; align-items: center; padding: 0 20px; }
.viewer-content { flex: 1; padding: 24px; overflow-y: auto; }
.viewer-meta { margin-bottom: 24px; }
.quota-container { margin: 20px; font-size: 12px; color: #5f6368; }
.quota-bar { height: 4px; background: #e0e0e0; margin-bottom: 4px; border-radius: 2px; }
.quota-fill { height: 100%; background: #1a73e8; }
.quota-warning .quota-fill { background: #d93025; }
.mobile-nav { display: none; }
@media (max-width: 768px) { .sidebar { display: none; } .main-content { margin: 0; border-radius: 0; } .compose-modal { width: 100%; right: 0; height: 100%; bottom: 0; border-radius: 0; } .compose-header { border-radius: 0; } .mobile-nav { display: flex; position: fixed; bottom: 0; width: 100%; height: 60px; background: white; border-top: 1px solid #ddd; justify-content: space-around; align-items: center; z-index: 100; } .mobile-nav-item { color: #5f6368; text-decoration: none; display: flex; flex-direction: column; align-items: center; font-size: 11px; } .mobile-nav-item.active { color: #1a73e8; } .email-list { padding-bottom: 60px; } }

/* LOGIN CSS (Restored) */
.auth-wrapper { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; }
.auth-card { background: white; width: 100%; max-width: 450px; padding: 48px 40px 36px; border-radius: 8px; border: 1px solid #dadce0; text-align: center; }
.auth-logo { margin-bottom: 10px; font-size: 24px; font-weight: 500; color: #202124; }
.auth-subtitle { font-size: 16px; color: #202124; margin-bottom: 40px; }
.form-group { text-align: left; margin-bottom: 20px; }
.form-input { width: 100%; padding: 13px 15px; border: 1px solid #dadce0; border-radius: 4px; font-size: 16px; color: #202124; transition: 0.2s; }
.form-input:focus { border-color: #1a73e8; border-width: 2px; padding: 12px 14px; }
.clearfix::after { content: ""; display: table; clear: both; }
@media (max-width: 768px) { .auth-card { border: none; box-shadow: none; background: transparent; padding: 1rem; } }
