/* temp/web/css/amsg.css */
body.auth {margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; height: 100vh; display: flex; align-items: center; justify-content: center;}
body.mail {font-family: sans-serif; margin: 0; background: #f4f6f8; color: #333;}
.auth-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    width: 100%;
    max-width: 400px;
    text-align: center;}
.auth-logo {
    font-size: 2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
    text-transform: uppercase;}
.auth-subtitle {color: #7f8c8d; margin-bottom: 30px; font-size: 0.9rem;}
.btn-google {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s, transform 0.1s;}
.btn-google:hover {background-color: #357ae8;}
.btn-google:active {transform: scale(0.98);}
.auth-footer {margin-top: 20px; font-size: 0.9rem; color: #666;}
.auth-footer a {color: #3498db; text-decoration: none;}
.auth-footer a:hover { text-decoration: underline; }
.app-container { display: flex; flex-direction: column; height: 100vh; }
.top-bar { background: #333; color: #fff; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; }
.mail-layout { display: flex; flex: 1; overflow: hidden; }
.sidebar { width: 220px; background: #fff; border-right: 1px solid #ddd; padding: 20px; display: flex; flex-direction: column; }
.content-area { flex: 1; padding: 25px; overflow-y: auto; background: #fff; }
.btn-compose { width: 100%; padding: 12px; background: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer; margin-bottom: 20px; font-weight: bold; }
.folder-list a { display: block; padding: 10px; text-decoration: none; color: #555; border-radius: 4px; margin-bottom: 5px; }
.folder-list a:hover { background: #f0f0f0; }
.folder-list a.active { background: #e7f1ff; color: #007bff; font-weight: bold; }
.list-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.search-input { padding: 8px 15px; border-radius: 20px; border: 1px solid #ddd; width: 100%; max-width: 500px; outline: none; }
.msg-list { list-style: none; padding: 0; }
.msg-item { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    border-bottom: 1px solid #eee;
    padding: 10px 15px; 
    cursor: pointer; 
    background: #fff;}
.msg-item:hover { background: #f9f9f9; }
.msg-main-info { display: flex; align-items: baseline; gap: 15px; flex: 1; overflow: hidden; }
.msg-subject { font-weight: bold; color: #333; white-space: nowrap; }
.msg-correspondent { color: #666; font-size: 0.9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-meta-info { display: flex; align-items: center; gap: 15px; font-size: 0.85em; color: #999; white-space: nowrap; }
.compose-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.msg-body { line-height: 1.6; min-height: 200px; margin-top: 20px; }
blockquote { border-left: 3px solid #ccc; margin-left: 0; padding-left: 15px; color: #777; font-style: italic; }
.hidden { display: none !important; }
.form-group { margin-bottom: 10px; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }
.editor-toolbar { background: #f8f8f8; padding: 8px; border: 1px solid #ddd; border-bottom: none; border-radius: 4px 4px 0 0; display: flex; align-items: center; }
.editor-toolbar button, .btn-attach { background: #fff; border: 1px solid #bbb; padding: 4px 10px; cursor: pointer; margin-right: 5px; border-radius: 3px; font-size: 0.9em; }
.editor-content { border: 1px solid #ddd; min-height: 300px; padding: 15px; border-radius: 0 0 4px 4px; outline: none; }
.editor-content:focus { border-color: #007bff; }
.att-chip { display: inline-block; background: #e3f2fd; padding: 4px 12px; border-radius: 16px; margin: 10px 5px 0 0; font-size: 0.85em; border: 1px solid #bbdefb; }
.att-chip a { text-decoration: none; color: #0277bd; }
.btn-primary { background: #28a745; color: #fff; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; }
.btn-secondary { background: #6c757d; color: #fff; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; }
@media (max-width: 768px) {
    .mail-layout { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid #ddd; padding: 10px; box-sizing: border-box; }
    .folder-list { display: flex; gap: 10px; overflow-x: auto; }
    .folder-list a { margin-bottom: 0; white-space: nowrap; }
    .msg-main-info { flex-direction: column; align-items: flex-start; gap: 2px; }
    .msg-correspondent { font-size: 0.8em; } }