/* Modern CSS Reset and Variables */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --secondary: #f59e0b;
    --success: #10b981;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #6366f1, #f59e0b);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Typography */
.title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* Inputs and Buttons */
.modern-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.cta-button, .submit-button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.cta-button:hover, .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.cta-button:disabled, .submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-sparkle {
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    position: relative;
}

.floating-emoji {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.floating-emoji:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-emoji:nth-child(2) { top: 20%; right: 15%; animation-delay: 2s; }
.floating-emoji:nth-child(3) { bottom: 30%; left: 15%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 1rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Dashboard Styles */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.share-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.link-container {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.link-input {
    flex: 1;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    font-family: monospace;
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: var(--primary-light);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-btn.whatsapp-btn {
    background: #25D366;
    color: #fff;
    border: none;
}
.share-btn.telegram-btn {
    background: #0088cc;
    color: #fff;
    border: none;
}
.share-btn.facebook-btn {
    background: #1877f3;
    color: #fff;
    border: none;
}

/* Optional: Add hover effects for better UX */
.share-btn.whatsapp-btn:hover {
    background: #1da851;
}
.share-btn.telegram-btn:hover {
    background: #0077b5;
}
.share-btn.facebook-btn:hover {
    background: #145db2;
}

.share-btn:hover {
    transform: translateY(-2px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Traits Grid */
.traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.trait-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.trait-emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.trait-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0;
}

/* Feedback Stream */
.feedback-stream {
    margin-top: 1.5rem;
}

.feedback-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--success);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Emoji Selection */
.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.emoji-btn {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 2rem;
}

.emoji-btn:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.emoji-btn.selected {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.emoji-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.emoji-btn.selected .emoji-label {
    color: white;
}

/* Selected Traits */
.selected-traits {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.selected-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.selected-trait {
    background: var(--primary-light);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal */
.confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.confirmation-modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.modal-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .link-container {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Comment Section Styles */
.comment-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    border: 2px dashed var(--border);
    transition: all 0.3s ease;
}

.comment-section:focus-within {
    border-color: var(--primary-light);
    border-style: solid;
}

.comment-header h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.comment-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.comment-input-container {
    position: relative;
}

.comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
    background: var(--background);
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.comment-textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.char-count {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}

.char-count.warning {
    color: #f59e0b;
}

.char-count.error {
    color: #ef4444;
}

.comment-tips {
    display: flex;
    gap: 1rem;
}

.tip {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Comment Display Styles (for dashboard) */
.comments-section {
    margin-top: 3rem;
}

.comment-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-light);
    animation: slideIn 0.5s ease;
}

.comment-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1rem;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

.comment-emoji {
    font-size: 1.2rem;
}

.no-comments {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.no-comments .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Pulse animation for new comments */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.new-comment {
    animation: pulse 2s ease;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    background: var(--card-bg);
    padding: 10px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .language-switcher {
    right: auto;
    left: 20px;
}

[dir="rtl"] .link-container,
[dir="rtl"] .comment-footer,
[dir="rtl"] .share-buttons,
[dir="rtl"] .comment-meta,
[dir="rtl"] .stats-grid,
[dir="rtl"] .features-grid {
    flex-direction: row-reverse;
}

[dir="rtl"] .trait-card,
[dir="rtl"] .comment-item,
[dir="rtl"] .feedback-item {
    border-left: none;
    border-right: 4px solid var(--primary-light);
}

[dir="rtl"] .comment-textarea,
[dir="rtl"] .modern-input,
[dir="rtl"] .link-input {
    text-align: right;
}

[dir="rtl"] .comment-textarea::placeholder {
    text-align: right;
}

[dir="rtl"] .emoji-grid,
[dir="rtl"] .traits-grid {
    direction: ltr; /* Keep emojis LTR */
}

/* Arabic Font */
.arabic-font {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
}

[dir="rtl"] .title {
    font-size: 3rem; /* Slightly smaller for Arabic */
}

[dir="rtl"] .subtitle {
    font-size: 1.1rem;
}

/* Google Login Styles */
.auth-section {
    text-align: center;
    margin: 2rem 0;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 12px 24px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.google-login-btn:hover {
    border-color: #4285f4;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
    transform: translateY(-1px);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.divider {
    margin: 1.5rem 0;
    position: relative;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* User Info Styles */
.user-info {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.logout-btn {
    margin-left: auto;
    padding: 8px 16px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: #dc2626;
}

/* Login Prompt Styles */
.login-prompt {
    margin: 1rem 0;
}

.login-required-card {
    background: var(--card-bg);
    border: 2px dashed var(--primary);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.login-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.login-required-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.login-required-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.google-login-btn.small {
    max-width: 250px;
    margin: 0 auto;
}

/* Reply Styles */
.comment-replies {
    margin-top: 1rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--border);
}

.reply-item {
    background: var(--background);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.reply-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.reply-user {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.reply-time {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: auto;
}

.reply-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text);
}

.reply-form {
    margin-top: 1rem;
    display: none;
}

.reply-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 60px;
}

.reply-input:focus {
    outline: none;
    border-color: var(--primary);
}

.reply-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: flex-end;
}

.reply-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

.reply-submit {
    background: var(--primary);
    color: white;
}

.reply-cancel {
    background: var(--text-light);
    color: white;
}

.reply-toggle {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.reply-toggle:hover {
    text-decoration: underline;
}

.reply-count {
    background: var(--primary);
    color: white;
    border-radius: 12px;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.anonymous-badge {
    background: var(--primary-light);
    color: white;
    border-radius: 8px;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}
/* User Info Styles */
.user-info {
    display: none;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-light);
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.user-details h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.3rem;
}

.user-details p {
    margin: 0.25rem 0 0 0;
    color: var(--text-light);
}

.user-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn.primary {
    background: var(--primary);
    color: white;
}

.action-btn.primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: var(--background);
    color: var(--text);
    border: 2px solid var(--border);
}

.action-btn.secondary:hover {
    background: var(--border);
}

.action-btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.action-btn.logout-btn-icon {
    background: white;
    color: #ef4444;
    border: 2px solid #ef4444;
    transition: all 0.3s ease;
}
.action-btn.logout-btn-icon:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
}

.action-btn.board-btn {
    background: var(--background);
    color: var(--text);
    border: 2px solid var(--border);
}
.action-btn.board-btn:hover {
    background: var(--border);
    color: var(--primary);
    transform: translateY(-2px);
}

/* WhatsApp-like chat bubble styles for replies */
.chat-replies {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reply-item.chat-bubble {
    max-width: 70%;
    position: relative;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    margin-bottom: 0.5rem;
    word-break: break-word;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
}

.reply-item.my-reply.chat-bubble {
    align-self: flex-end;
    background: #dcf8c6;
    color: #222;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 18px;
    border-top-right-radius: 18px;
    border-top-left-radius: 18px;
}

.reply-item.other-reply.chat-bubble {
    align-self: flex-start;
    background: #fff;
    color: #222;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 18px;
    border-top-right-radius: 18px;
    border-top-left-radius: 18px;
    border: 1px solid var(--border);
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.reply-avatar.chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eee;
    margin-right: 0.3rem;
    display: inline-block;
}

.reply-user {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
}

.reply-time {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: auto;
}

.reply-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #222;
    margin-top: 0.2rem;
    padding: 0;
    background: none;
    border: none;
}

/* Chat bubble tail for my-reply */
.reply-item.my-reply .chat-tail {
    position: absolute;
    right: -1px; /* was -10px, now flush with bubble */
    bottom: -8px;
    width: 20px;
    height: 20px;
    background: transparent;
}
.reply-item.my-reply .chat-tail::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    border-width: 10px 0 0 10px;
    border-style: solid;
    border-color: #dcf8c6 transparent transparent transparent;
    display: block;
}

/* Chat bubble tail for other-reply */
.reply-item.other-reply .chat-tail {
    position: absolute;
    left: -10px;
    bottom: 0;
    width: 20px;
    height: 20px;
    background: transparent;
}
.reply-item.other-reply .chat-tail::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    border-width: 10px 10px 0 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    display: block;
}

/* Responsive adjustments for chat bubbles */
@media (max-width: 600px) {
    .reply-item.chat-bubble {
        max-width: 90%;
        font-size: 0.95rem;
    }
}

/* Feedback page user info */
.feedback-user-info {
    margin: 1rem 0;
    padding: 1rem;
}

.feedback-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.feedback-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

/* Simple Navigation */
.simple-nav {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.nav-home {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-home:hover {
    background: var(--primary-light);
    color: white;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--background);
    border-radius: 8px;
}

.user-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.nav-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
}

.nav-btn.primary {
    background: var(--primary);
    color: white;
}

.nav-btn.secondary {
    background: var(--background);
    color: var(--text);
    border: 1px solid var(--border);
}

/* Login Overlay Styles */
#loginOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.login-overlay-content {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
}

.login-hero {
    margin-bottom: 2rem;
}

.login-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.login-hero h1 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.login-hero p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.5;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.feature-icon {
    font-size: 1.5rem;
}

.google-login-btn.large {
    width: 100%;
    max-width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    margin: 1.5rem 0;
}

.login-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 1rem 0;
}

.home-btn {
    background: none;
    border: 2px solid var(--border);
    color: var(--text);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.home-btn:hover {
    background: var(--border);
}

/* Hide comment-specific login prompt since we have overlay */
.login-prompt {
    display: none !important;
}

/* Ensure main content is visible when authenticated */
.container {
    display: block;
}

/* Feedback Sections */
.feedback-section {
    margin-bottom: 3rem;
}

.feedback-section h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Feedback Items */
.feedback-item {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feedback-item.profile-feedback {
    border-left: 4px solid var(--primary);
}

.feedback-item.commenter-feedback {
    border-left: 4px solid var(--success);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(34, 197, 94, 0.05) 100%);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feedback-context {
    font-weight: 600;
    color: var(--text);
    flex: 1;
}

.feedback-time {
    font-size: 0.8rem;
    color: var(--text-light);
    white-space: nowrap;
}

.feedback-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text);
    margin: 1rem 0;
    padding-left: 0.5rem;
    border-left: 3px solid var(--primary-light);
}

/* Replies */
.feedback-replies {
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--border);
}

.reply-context {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

/* Tabs styles (responsive & accessible) */
.tabs {
    margin-top: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0.5rem;
    border: 1px solid var(--border);
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    overflow-x: auto;
}

.tab-btn {
    flex: 0 0 auto;
    background: transparent;
    border: none;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-light);
    transition: all 0.15s ease;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 18px rgba(99,106,241,0.12);
}

.tab-panels {
    padding: 1rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Panel grid layout */
.panel-grid {
    display: grid;
    gap: 1rem;
}

/* keep no-comments centered inside panels */
.tab-panel .no-comments {
    padding: 2.5rem;
}

.notify-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    position: relative;
    top: 2px;
}

.bell-badge svg {
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
}

.bell-badge {
    padding: 0;
    background: none;
    box-shadow: none;
    min-width: 0;
    width: auto;
    height: auto;
}