@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
    background: linear-gradient(135deg, #1a3a5c 0%, #2d6a9f 40%, #1a3a5c 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 30px;
    color: #1e1e1e;
}

#app {
    width: 100%;
    max-width: 900px;
}

.aero-window {
    border: 1px solid rgba(0,0,0,0.35);
    border-radius: 6px;
    background: rgba(200, 216, 230, 0.82);
    backdrop-filter: blur(12px);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.25) inset,
        0 4px 20px rgba(0,0,0,0.45),
        0 0 60px rgba(100,160,220,0.15);
    overflow: hidden;
}

.title-bar {
    height: 28px;
    background: linear-gradient(180deg,
        rgba(180,210,240,0.95) 0%,
        rgba(140,180,220,0.9) 40%,
        rgba(100,150,200,0.85) 100%);
    border-bottom: 1px solid rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    user-select: none;
}

.title-text {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a2e;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.title-controls { display: flex; gap: 2px; }

.title-btn {
    width: 22px;
    height: 18px;
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(230,240,250,0.9), rgba(190,210,230,0.8));
    color: #333;
    font-size: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.title-btn:hover {
    background: linear-gradient(180deg, rgba(240,250,255,0.95), rgba(200,220,240,0.9));
}

.title-btn.close:hover {
    background: linear-gradient(180deg, #e04343, #c03030);
    color: white;
}

.window-body {
    padding: 12px;
    background: rgba(240, 240, 240, 0.95);
}

.aero-input {
    width: 100%;
    padding: 4px 6px;
    margin-bottom: 6px;
    border: 1px solid #8c8c8c;
    border-radius: 2px;
    background: white;
    font-family: inherit;
    font-size: 12px;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}

.aero-input:focus {
    border-color: #3d8ec9;
    box-shadow: 0 0 0 1px rgba(61,142,201,0.3), inset 0 1px 2px rgba(0,0,0,0.08);
}

.aero-btn {
    padding: 3px 14px;
    border: 1px solid #8c8d8e;
    border-radius: 2px;
    background: linear-gradient(180deg, #f0f0f0 0%, #e5e5e5 45%, #d4d4d4 50%, #dfdfdf 100%);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    color: #1e1e1e;
}

.aero-btn:hover {
    border-color: #6cb4da;
    background: linear-gradient(180deg, #eaf6fd 0%, #d4edfc 45%, #bde1fa 50%, #c9e7fc 100%);
}

.aero-btn:active {
    background: linear-gradient(180deg, #c2dcee 0%, #b0d0e8 45%, #9cc3de 50%, #a8cfe5 100%);
}

.aero-btn.small { padding: 2px 8px; font-size: 11px; }

.aero-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 12px;
    cursor: pointer;
}

.aero-checkbox input[type="checkbox"] {
    width: 13px;
    height: 13px;
    accent-color: #3d8ec9;
}

.error-text { color: #c00; font-size: 11px; margin-top: 4px; }
.success-text { color: #080; font-size: 11px; margin-top: 4px; }

.login-window {
    width: 585px;
    margin: 0 auto;
}

.login-body {
    display: flex;
    gap: 12px;
    min-height: 200px;
}

.login-left { flex: 0 0 207px; }
.login-right { flex: 1; }

.login-right h2 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #1e4d2b;
}

.login-right p {
    font-size: 11px;
    margin-bottom: 10px;
    color: #1e4d2b;
}

.login-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.status-panel {
    background: white;
    border: 1px solid #8c8c8c;
    border-radius: 2px;
    padding: 8px;
    height: 100%;
    min-height: 180px;
    font-size: 11px;
    color: #555;
    overflow-y: auto;
    white-space: pre-wrap;
}

.footer-bar {
    padding: 3px 8px;
    font-size: 10px;
    color: #555;
    border-top: 1px solid #bbb;
    background: linear-gradient(180deg, rgba(230,235,242,0.95), rgba(215,222,232,0.95));
}

.register-window {
    width: 585px;
    margin: 0 auto;
}

.register-body {
    display: flex;
    gap: 12px;
}

.register-left { flex: 0 0 210px; }
.register-left h2 { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.register-right { flex: 1; }

.main-window {
    width: 900px;
    max-width: 100%;
    margin: 0 auto;
}

.main-body {
    display: flex;
    height: 520px;
    padding: 0;
}

.sidebar {
    width: 180px;
    min-width: 180px;
    border-right: 1px solid #bbb;
    display: flex;
    flex-direction: column;
    background: rgba(230,235,240,0.95);
}

.channel-bar {
    width: 150px;
    min-width: 150px;
    border-right: 1px solid #bbb;
    display: flex;
    flex-direction: column;
    background: rgba(235,238,242,0.95);
}

.members-bar {
    width: 180px;
    min-width: 180px;
    border-left: 1px solid #bbb;
    display: flex;
    flex-direction: column;
    background: rgba(230,235,240,0.95);
}

.sidebar-header {
    padding: 6px 10px;
    font-weight: 600;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #ccc;
    background: linear-gradient(180deg, rgba(245,248,252,0.95), rgba(225,232,240,0.95));
}

.sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 3px;
}

.sidebar-list .item {
    padding: 4px 8px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-list .item:hover { background: rgba(61,142,201,0.15); }
.sidebar-list .item.active { background: rgba(61,142,201,0.25); font-weight: 600; }

.sidebar-footer {
    padding: 5px;
    border-top: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    min-width: 0;
}

.message-log {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    font-size: 12px;
}

.message-log .msg {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
    padding: 3px 0;
    line-height: 1.4;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
    object-fit: cover;
}

.msg-body { flex: 1; min-width: 0; }

.msg-header {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.msg .author { font-weight: 600; font-size: 12px; }
.msg .timestamp { font-size: 10px; color: #999; }
.msg-content { font-size: 12px; word-wrap: break-word; }

.chat-input-bar {
    display: flex;
    padding: 5px;
    border-top: 1px solid #ccc;
    background: rgba(240,240,240,0.95);
    gap: 4px;
}

.chat-field { flex: 1; margin-bottom: 0; }

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 8px;
    font-size: 11px;
    border-top: 1px solid #bbb;
    background: linear-gradient(180deg, rgba(230,235,242,0.95), rgba(215,222,232,0.95));
    color: #555;
}

.user-bar {
    padding: 4px 8px;
}

.user-bar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-bar-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ccc;
    object-fit: cover;
}

.user-bar-right {
    display: flex;
    gap: 4px;
}

.member-entry {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
}

.member-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
    object-fit: cover;
}

.member-name { font-size: 12px; }

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-window { width: 420px; }

.modal-body { padding: 12px; }
.modal-body .aero-input { margin-bottom: 8px; }
.modal-body .aero-btn { margin-top: 4px; }
.modal-body h3 { font-size: 13px; margin: 8px 0 6px; }
.modal-body hr { border: none; border-top: 1px solid #ccc; margin: 10px 0; }
.modal-body p { font-size: 12px; margin-bottom: 3px; }

.account-avatar-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.account-avatar-preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ccc;
    object-fit: cover;
    border: 2px solid #8c8c8c;
}

.account-avatar-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.avatar-file-input {
    font-size: 11px;
}
