/* Web App Common Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
}

/* Start Page Styles */
.start-body {
    background: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.start-container {
    max-width: 500px;
    width: 100%;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 48px 32px;
    text-align: center;
}

.logo {
    font-size: 48px;
    margin-bottom: 16px;
}

.start-container h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 16px;
    font-weight: 700;
}

.subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* 感謝数統計 */
.thanks-stats {
    margin: 32px 0;
    padding: 24px;
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE8CC 100%);
    border-radius: 16px;
    border: 2px solid #FF9500;
}

.thanks-stats-title {
    font-size: 20px;
    color: #FF6B00;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.thanks-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.thanks-stats .stat-item {
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.thanks-stats .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #FF6B00;
    margin-bottom: 4px;
}

.thanks-stats .stat-label {
    font-size: 12px;
    color: #666;
}

.login-button {
    width: 100%;
    padding: 16px;
    background: #06C755;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.login-button:hover {
    background: #05B048;
    transform: translateY(-2px);
}

.login-button:active {
    transform: translateY(0);
}

.login-button svg {
    width: 24px;
    height: 24px;
}

.features {
    margin-top: 48px;
    text-align: left;
}

.features h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 24px;
    text-align: center;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f7f7f7;
    border-radius: 12px;
}

.feature-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

@media (max-width: 600px) {
    .start-container {
        padding: 32px 24px;
    }

    .start-container h1 {
        font-size: 28px;
    }

    .logo {
        font-size: 40px;
    }

    .thanks-stats .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .thanks-stats .stat-number {
        font-size: 24px;
    }
}

/* Dashboard Styles */
.dashboard-body {
    background: #f7f7f7;
}

.header {
    background: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
    color: white;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.hamburger-btn:hover {
    opacity: 0.8;
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    flex: 1;
}

/* Dashboard Side Menu */
.dashboard-side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.dashboard-side-menu.open {
    left: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

.menu-header {
    background: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

.menu-title {
    font-size: 18px;
    font-weight: 700;
}

.menu-items {
    padding: 8px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 16px;
}

.menu-item:hover {
    background: #f5f5f5;
}

.menu-item-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.menu-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 8px 0;
}

.menu-logout {
    color: #d32f2f;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
}

.welcome-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.welcome-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 16px;
    color: #666;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.action-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.action-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.action-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.action-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.loading {
    text-align: center;
    padding: 48px;
    color: #666;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .dashboard-container {
        padding: 20px 16px;
    }

    .stats-grid,
    .actions-grid {
        grid-template-columns: 1fr;
    }
}