* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

.container {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #ffffff;
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    background: none;
    border: none;
    padding: 8px;
    margin-right: 16px;
    cursor: pointer;
    color: #666666;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background-color: #f5f5f5;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    flex: 1;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666666;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: #f5f5f5;
    color: #333333;
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg);
}

/* Dark mode toggle states */
body.dark-mode .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

body.dark-mode .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Main Content */
.main-content {
    padding: 32px 24px 120px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    line-height: 1.3;
}

/* Section Styles */
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 20px;
}

/* Rating Section */
.rating-section {
    margin-bottom: 40px;
}

.emoji-rating {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    justify-content: space-between;
}

.emoji-btn {
    position: relative;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-btn:hover {
    transform: scale(1.05);
}

.emoji-btn.selected {
    background: linear-gradient(135deg, #4285f4, #34a853);
    transform: scale(1.1);
}

.emoji {
    font-size: 28px;
    display: block;
}

.selection-indicator {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #4285f4;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.rating-label {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #4285f4;
    margin-top: 8px;
}

/* Likes Section */
.likes-section {
    margin-bottom: 40px;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Checkbox styles - copied from working test.html */
.checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    margin: 5px 0;
    user-select: none;
}

.checkbox-item:hover {
    background-color: #f8f9fa;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    flex-shrink: 0;
}

.checkbox-item.checked .checkmark {
    background: green;
    border-color: green;
}

.checkmark svg {
    display: none;
}

.checkbox-item.checked .checkmark svg {
    display: block;
}

.checkbox-label {
    font-size: 16px;
    color: #333333;
    line-height: 1.5;
    cursor: pointer;
}

/* Comment Section */
.comment-section {
    margin-bottom: 40px;
}

.comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    background-color: #fafbfc;
    transition: border-color 0.2s ease;
}

.comment-textarea:focus {
    outline: none;
    border-color: #4285f4;
    background-color: #ffffff;
}

.comment-textarea::placeholder {
    color: #9aa0a6;
}

/* Send Button */
.send-btn {
    width: 100%;
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 382px;
    margin: 0 auto;
    z-index: 100;
}

.send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.send-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
    
    .main-content {
        padding: 24px 20px 120px;
    }
    
    .emoji-rating {
        gap: 12px;
    }
    
    .emoji-btn {
        width: 56px;
        height: 56px;
    }
    
    .emoji {
        font-size: 24px;
    }
    
    .send-btn {
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.emoji-btn:focus,
.checkbox-item:focus,
.comment-textarea:focus,
.send-btn:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

/* Animation for emoji selection */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.emoji-btn.selected {
    animation: pulse 0.3s ease-in-out;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .container {
    background-color: #121212;
}

body.dark-mode .header {
    background-color: #1e1e1e;
    border-bottom-color: #333333;
}

body.dark-mode .header-title {
    color: #e0e0e0;
}

body.dark-mode .theme-toggle {
    color: #e0e0e0;
}

body.dark-mode .theme-toggle:hover {
    background-color: #333333;
    color: #ffffff;
}

body.dark-mode .page-title {
    color: #ffffff;
}

body.dark-mode .section-title {
    color: #e0e0e0;
}

body.dark-mode .emoji-btn {
    background: #2d2d2d;
    border: 1px solid #404040;
}

body.dark-mode .emoji-btn:hover {
    background: #404040;
}

body.dark-mode .emoji-btn.selected {
    background: linear-gradient(135deg, #4285f4, #34a853);
}

body.dark-mode .rating-label {
    color: #4285f4;
}

body.dark-mode .checkbox-item:hover {
    background-color: #2d2d2d;
}

body.dark-mode .checkmark {
    border-color: #666666;
    background-color: transparent;
}

body.dark-mode .checkbox-item.checked .checkmark {
    background: #34a853;
    border-color: #34a853;
}

body.dark-mode .checkbox-item:hover .checkmark {
    border-color: #34a853;
    background-color: rgba(52, 168, 83, 0.2);
}

body.dark-mode .checkbox-label {
    color: #e0e0e0;
}

body.dark-mode .checkbox-item:hover .checkbox-label {
    color: #ffffff;
}

body.dark-mode .comment-textarea {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

body.dark-mode .comment-textarea:focus {
    background-color: #333333;
    border-color: #4285f4;
}

body.dark-mode .comment-textarea::placeholder {
    color: #888888;
}

body.dark-mode .send-btn {
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    color: white;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.4);
}

body.dark-mode .send-btn:hover {
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.5);
}

/* Dark mode transition */
body, .container, .header, .emoji-btn, .checkmark, .comment-textarea {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}