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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #eee;
}

.back-link svg {
    width: 16px;
    height: 16px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

#login-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-btn, .logout-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-btn {
    background: #4285f4;
    color: white;
}

.login-btn:hover {
    background: #3367d6;
}

.logout-btn {
    background: #444;
    color: #eee;
}

.logout-btn:hover {
    background: #555;
}

.user-info {
    font-size: 14px;
    color: #888;
}

.premium-badge {
    background: linear-gradient(135deg, #f5af19, #f12711);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 12px 20px;
    background: #2a2a3e;
    border: none;
    border-radius: 8px;
    color: #888;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.tab:hover {
    background: #3a3a4e;
    color: #eee;
}

.tab.active {
    background: #00aaff;
    color: white;
}

.tab svg {
    width: 18px;
    height: 18px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.submit-section {
    background: #2a2a3e;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.submit-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
}

.submit-section textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    background: #1a1a2e;
    border: 1px solid #444;
    border-radius: 8px;
    color: #eee;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 15px;
}

.submit-section textarea:focus {
    outline: none;
    border-color: #00aaff;
}

.submit-btn {
    padding: 10px 20px;
    background: #00aaff;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-btn:hover {
    background: #0099ee;
}

.submit-btn:disabled {
    background: #444;
    cursor: not-allowed;
}

.submit-btn svg {
    width: 16px;
    height: 16px;
}

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loading {
    text-align: center;
    color: #888;
    padding: 40px;
}

.feedback-item {
    background: #2a2a3e;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    gap: 15px;
}

.feedback-item.premium-user {
    border-left: 3px solid #f5af19;
}

.vote-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 50px;
}

.vote-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.2s;
}

.vote-btn:hover {
    background: #3a3a4e;
    color: #eee;
}

.vote-btn.upvoted {
    color: #00cc66;
}

.vote-btn.downvoted {
    color: #e63946;
}

.vote-btn svg {
    width: 20px;
    height: 20px;
}

.vote-count {
    font-size: 16px;
    font-weight: 600;
    color: #eee;
}

.feedback-content {
    flex: 1;
}

.feedback-text {
    margin-bottom: 10px;
    line-height: 1.5;
}

.feedback-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #666;
}

.feedback-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.author-premium-badge {
    background: linear-gradient(135deg, #f5af19, #f12711);
    color: white;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}

.feedback-date {
    color: #555;
}

.completed-badge {
    background: #00cc66;
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}

.feedback-item.completed {
    opacity: 0.6;
}

.feedback-item.completed .feedback-text {
    text-decoration: line-through;
}

.complete-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.2s;
    align-self: flex-start;
}

.complete-btn:hover {
    background: #3a3a4e;
    color: #00cc66;
}

.complete-btn.is-completed {
    color: #00cc66;
}

.complete-btn svg {
    width: 24px;
    height: 24px;
}

.empty-state {
    text-align: center;
    color: #666;
    padding: 40px;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

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

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        justify-content: flex-start;
    }

    .feedback-item {
        flex-direction: column;
    }

    .vote-section {
        flex-direction: row;
        justify-content: flex-start;
    }
}
