/* BL-Star Webmail - Main Stylesheet */

/* CSS Variables */
:root {
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --secondary-color: #5f6368;
    --success-color: #34a853;
    --warning-color: #fbbc05;
    --danger-color: #ea4335;
    --background: #f8f9fa;
    --surface: #ffffff;
    --border-color: #e0e0e0;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-light: #80868b;
    --sidebar-width: 256px;
    --header-height: 64px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.2);
    --transition: all 0.2s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
}

body {
    font-family: 'Segoe UI', 'Hiragino Sans', 'Meiryo', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.login-header {
    text-align: center;
    padding: 40px 30px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.login-header .logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.login-header h1 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-secondary);
}

.login-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group label i {
    width: 16px;
    text-align: center;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    padding: 4px;
}

.toggle-password:hover {
    color: var(--text-secondary);
}

.form-options {
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--background);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-ghost {
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--background);
}

.btn-login {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.login-error {
    margin-top: 16px;
    padding: 12px;
    background: #fce8e6;
    color: var(--danger-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 12px;
}

/* App Layout */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    height: var(--header-height);
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 200px;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.menu-toggle:hover {
    background: var(--background);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

.logo i {
    color: var(--primary-color);
}

.header-center {
    flex: 1;
    max-width: 720px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--background);
    border-radius: 24px;
    padding: 0 16px;
    transition: var(--transition);
}

.search-box:focus-within {
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.search-box i {
    color: var(--text-light);
}

.search-box input {
    flex: 1;
    border: none;
    background: none;
    padding: 12px;
    outline: none;
}

.search-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.search-btn:hover {
    background: var(--border-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    justify-content: flex-end;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.icon-btn:hover {
    background: var(--background);
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 20px;
    transition: var(--transition);
}

.user-btn:hover {
    background: var(--background);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    display: none;
    z-index: 200;
}

.user-dropdown.show {
    display: block;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details .name {
    font-weight: 500;
}

.user-details .email {
    color: var(--text-light);
    font-size: 12px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-primary);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--background);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
}

/* Main Layout */
.app-main {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--surface);
    border-right: 1px solid var(--border-color);
    padding: 16px;
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    overflow-y: auto;
    transition: var(--transition);
    z-index: 50;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.compose-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 28px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 16px;
}

.compose-btn:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.sidebar-nav {
    margin-bottom: 16px;
}

.nav-list {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.nav-item:hover {
    background: var(--background);
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 500;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.nav-item span:first-of-type {
    flex: 1;
}

.nav-item .badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.nav-section {
    margin-top: 24px;
}

.nav-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 16px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.sidebar-link:hover {
    background: var(--background);
    color: var(--text-primary);
}

.sidebar-link i {
    width: 20px;
    text-align: center;
}

.admin-link {
    color: var(--primary-color);
}

/* Content Area */
.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    background: var(--surface);
    min-height: calc(100vh - var(--header-height));
}

/* Email List View */
.email-list-view {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height));
}

.list-header {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--background);
}

.list-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.checkbox-wrapper input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.action-btn:hover:not(:disabled) {
    background: var(--border-color);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.list-info {
    flex: 1;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.list-info .separator {
    margin: 0 8px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.page-btn:hover:not(:disabled) {
    background: var(--border-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.email-list {
    flex: 1;
    overflow-y: auto;
}

.loading, .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-light);
}

.loading i, .empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
}

.email-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.email-item:hover {
    background: var(--background);
}

.email-item.unread {
    background: var(--primary-light);
}

.email-item.unread .email-subject {
    font-weight: 600;
}

.email-item.selected {
    background: #e3f2fd;
}

.email-checkbox {
    margin-right: 16px;
}

.email-star {
    margin-right: 12px;
    color: var(--text-light);
    font-size: 16px;
}

.email-star.flagged {
    color: var(--warning-color);
}

.email-sender {
    width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 16px;
}

.email-content-preview {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.email-subject {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
}

.email-snippet {
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
}

.email-attachment-icon {
    color: var(--text-light);
}

.email-date {
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
}

/* Email Detail View */
.email-detail-view {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height));
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--background);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: var(--transition);
}

.back-btn:hover {
    background: var(--border-color);
}

.detail-actions {
    display: flex;
    gap: 8px;
}

.detail-actions .action-btn {
    width: auto;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    gap: 8px;
}

.email-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.email-header-info h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.email-header-info .email-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.sender-info {
    display: flex;
    gap: 12px;
}

.sender-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sender-details {
    display: flex;
    flex-direction: column;
}

.sender-name {
    font-weight: 500;
}

.sender-email {
    color: var(--text-light);
    font-size: 12px;
}

.email-recipients {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.email-recipients .label {
    font-weight: 500;
    margin-right: 8px;
}

.email-body {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    line-height: 1.7;
}

.email-body img {
    max-width: 100%;
    height: auto;
}

.email-attachments {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.email-attachments h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.email-attachments ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.email-attachments li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--background);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.email-attachments li:hover {
    background: var(--border-color);
}

/* Compose View */
.compose-view {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height));
}

.compose-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.compose-header h2 {
    font-size: 18px;
}

.close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.close-btn:hover {
    background: var(--background);
}

.compose-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    align-items: center;
    padding: 8px 24px;
    border-bottom: 1px solid var(--border-color);
}

.form-row label {
    width: 60px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-row input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px;
    font-size: 14px;
}

.compose-toolbar {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
    gap: 4px;
}

.toolbar-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.toolbar-btn:hover {
    background: var(--background);
}

.toolbar-btn.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.compose-toolbar .separator {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 8px;
}

.compose-body {
    flex: 1;
    padding: 16px 24px;
    overflow-y: auto;
}

.editor {
    min-height: 300px;
    outline: none;
    line-height: 1.7;
}

.editor:empty::before {
    content: 'メッセージを入力...';
    color: var(--text-light);
}

.compose-attachments {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

.compose-attachments h4 {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.compose-attachments ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.compose-attachments li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--background);
    border-radius: var(--radius-md);
}

.compose-attachments .remove-attachment {
    color: var(--text-light);
    cursor: pointer;
}

.compose-attachments .remove-attachment:hover {
    color: var(--danger-color);
}

.compose-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
}

.modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast.warning {
    border-left: 4px solid var(--warning-color);
}

.toast.info {
    border-left: 4px solid var(--primary-color);
}

.toast i {
    font-size: 20px;
}

.toast.success i {
    color: var(--success-color);
}

.toast.error i {
    color: var(--danger-color);
}

.toast.warning i {
    color: var(--warning-color);
}

.toast.info i {
    color: var(--primary-color);
}

.toast-close {
    margin-left: auto;
    color: var(--text-light);
    padding: 4px;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* Contacts, Calendar, Stats Views */
.contacts-view, .calendar-view, .stats-view, .admin-view {
    padding: 24px;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.view-header h2 {
    font-size: 24px;
}

.view-content {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--background);
    font-weight: 600;
    color: var(--text-secondary);
}

.data-table tr:hover td {
    background: var(--background);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-title {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.card-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.card-icon.blue {
    background: var(--primary-light);
    color: var(--primary-color);
}

.card-icon.green {
    background: #e6f4ea;
    color: var(--success-color);
}

.card-icon.orange {
    background: #fef3e6;
    color: #f5a623;
}

.card-icon.red {
    background: #fce8e6;
    color: var(--danger-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 0;
    }
    
    .email-sender {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .header-center {
        display: none;
    }
    
    .email-sender {
        display: none;
    }
    
    .email-content-preview {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .email-snippet {
        display: none;
    }
    
    .detail-actions .action-btn span {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-header {
        padding: 30px 20px 15px;
    }
    
    .login-header .logo {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .login-form {
        padding: 20px;
    }
    
    .compose-form .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .compose-form .form-row label {
        width: auto;
        margin-bottom: 4px;
    }
}
