/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    margin-bottom: 40px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.logo h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin: 0;
    text-align: center;
}

/* User Section Styles */
.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-btn {
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.auth-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.auth-btn.primary {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.username {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.dropdown-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dropdown-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
    padding: 8px 0;
    min-width: 150px;
    display: none;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
}

/* Language Selector */
.language-selector select {
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.language-selector select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.language-selector select option {
    background: #333;
    color: #fff;
    padding: 8px;
}

/* Report functionality styles */
.report-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 0.9em;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.report-btn:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
}

.content-warning {
    background: rgba(255, 165, 0, 0.1);
    border-left: 4px solid #ffa500;
    padding: 12px;
    margin: 8px 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.9em;
    color: #cc8800;
}

.content-filtered {
    background: rgba(255, 0, 0, 0.1);
    border-left: 4px solid #ff4444;
    padding: 12px;
    margin: 8px 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.9em;
    color: #cc0000;
}

.moderation-notice {
    background: rgba(255, 255, 0, 0.1);
    border: 1px solid #ffdd00;
    padding: 8px 12px;
    margin: 8px 0;
    border-radius: 8px;
    font-size: 0.85em;
    color: #bb9900;
    display: flex;
    align-items: center;
    gap: 8px;
}

.moderation-notice::before {
    content: "⚠️";
    font-size: 1.2em;
}

#report-modal .modal-content {
    max-width: 500px;
}

#report-form .form-group {
    margin-bottom: 20px;
}

#report-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

#report-form select,
#report-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

#report-form textarea {
    min-height: 100px;
}

#report-form button {
    background: #ff4444;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

#report-form button:hover {
    background: #cc3333;
}

/* Search functionality styles */
.search-container {
    position: relative;
    margin-bottom: 20px;
    max-width: 600px;
}

.search-container input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-container input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-50%) scale(1.05);
}

.search-btn i {
    font-size: 14px;
}

/* Loading states */
.loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--accent-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error states */
.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff4444;
    color: #cc0000;
    padding: 12px;
    border-radius: 8px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message::before {
    content: "⚠️";
    font-size: 1.2em;
}

.success-message {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #44ff44;
    color: #00cc00;
    padding: 12px;
    border-radius: 8px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-message::before {
    content: "✅";
    font-size: 1.2em;
}

/* Gallery enhancements */
.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 16px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
}

.view-controls {
    display: flex;
    gap: 8px;
}

.view-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn.active,
.view-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

#gallery-sort {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
}

/* Artwork modal */
.artwork-modal .modal-content {
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
}

.artwork-display {
    display: flex;
    gap: 24px;
    max-height: 80vh;
}

.artwork-display img {
    max-width: 60%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.artwork-info {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.artwork-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
    padding: 16px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

.artwork-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.action-btn i {
    font-size: 16px;
}

/* List view styles */
.gallery-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-grid.list-view .artwork-card {
    display: flex;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-grid.list-view .artwork-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 16px;
}

.gallery-grid.list-view .artwork-info {
    flex: 1;
}

/* Loading spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    font-size: 18px;
    color: var(--text-secondary);
}

.loading-spinner::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

/* Responsive gallery */
@media (max-width: 768px) {
    .gallery-controls {
        flex-direction: column;
        gap: 16px;
    }
    
    .artwork-display {
        flex-direction: column;
    }
    
    .artwork-display img {
        max-width: 100%;
        max-height: 50vh;
    }
    
    .artwork-actions {
        flex-wrap: wrap;
    }
    
    .action-btn {
        flex: 1;
        min-width: 120px;
    }
}

/* User Profile Page Styles */
.profile-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.profile-banner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-page-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.profile-details h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
}

.profile-details p {
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.profile-stats-inline {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.profile-stats-inline span {
    font-size: 16px;
}

.profile-actions {
    display: flex;
    gap: 12px;
}

.follow-btn, .message-btn, .back-btn {
    padding: 10px 20px;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.follow-btn:hover, .message-btn:hover {
    background: white;
    color: var(--accent-color);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.profile-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
    gap: 0;
}

.profile-tab {
    padding: 15px 30px;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 600;
}

.profile-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.profile-tab:hover {
    color: var(--accent-color);
    background: rgba(102, 126, 234, 0.1);
}

.user-content-section {
    display: none;
}

.user-content-section.active {
    display: block;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.activity-feed {
    max-width: 800px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.activity-icon.like { background: #ff6b6b; }
.activity-icon.comment { background: #4ecdc4; }
.activity-icon.dream { background: #45b7d1; }
.activity-icon.artwork { background: #96ceb4; }

/* Admin Panel Styles */
.admin-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
}

.admin-stat-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.admin-stat-card h3 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    color: var(--accent-color);
}

.admin-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.admin-tab {
    padding: 15px 25px;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 600;
}

.admin-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.admin-tab:hover {
    color: var(--accent-color);
    background: rgba(102, 126, 234, 0.1);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.admin-btn:hover {
    background: var(--accent-hover);
}

.report-item, .flagged-item, .user-item {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.report-item:hover, .flagged-item:hover, .user-item:hover {
    border-color: var(--accent-color);
}

.report-header, .flagged-header, .user-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
}

.report-actions, .flagged-actions, .user-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.approve-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.reject-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.settings-form {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.settings-form label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

.settings-form input[type="checkbox"] {
    margin-right: 10px;
}

.settings-form input[type="number"] {
    width: 80px;
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-left: 10px;
}

/* Social Features */
.favorite-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    background: rgba(231, 76, 60, 0.1);
    transform: scale(1.1);
}

.favorite-btn.active {
    color: #c0392b;
}

.follow-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.follow-status.following {
    background: #27ae60;
    color: white;
}

.follow-status.not-following {
    background: #95a5a6;
    color: white;
}

.user-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.user-badge.verified {
    background: #3498db;
    color: white;
}

.user-badge.artist {
    background: #9b59b6;
    color: white;
}

.user-badge.dreamer {
    background: #f39c12;
    color: white;
}

/* Responsive design for new features */
@media (max-width: 768px) {
    .profile-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-stats-inline {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .profile-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .admin-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .admin-tabs {
        flex-wrap: wrap;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Tags System */
.tags-input-container {
    position: relative;
}

.tags-input-container input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    min-height: 20px;
}

.tag-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: tagAppear 0.3s ease;
}

.tag-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.2s ease;
}

.tag-remove:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes tagAppear {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.popular-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tags-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.popular-tag {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popular-tag:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    color: #667eea;
}

/* Enhanced Filters */
.filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filters input[type="text"] {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    font-size: 0.9rem;
    min-width: 200px;
    transition: all 0.3s ease;
}

.filters input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Enhanced Drawing Tools */
.drawing-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.tool-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.tool-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.tool-group select,
.tool-group input[type="range"] {
    width: 100%;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    margin-top: 8px;
}

.palette-color {
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: all 0.2s ease;
}

.palette-color:hover {
    transform: scale(1.1);
    border-color: #667eea;
}

.palette-color.active {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

/* Set palette colors */
.palette-color[data-color="#000000"] { background: #000000; }
.palette-color[data-color="#FF0000"] { background: #FF0000; }
.palette-color[data-color="#00FF00"] { background: #00FF00; }
.palette-color[data-color="#0000FF"] { background: #0000FF; }
.palette-color[data-color="#FFFF00"] { background: #FFFF00; }
.palette-color[data-color="#FF00FF"] { background: #FF00FF; }
.palette-color[data-color="#00FFFF"] { background: #00FFFF; }
.palette-color[data-color="#FFFFFF"] { background: #FFFFFF; }
.palette-color[data-color="#808080"] { background: #808080; }
.palette-color[data-color="#800000"] { background: #800000; }
.palette-color[data-color="#008000"] { background: #008000; }
.palette-color[data-color="#000080"] { background: #000080; }

.canvas-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.canvas-info {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #666;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 8px;
}

#drawing-canvas {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: crosshair;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.artwork-tags {
    margin-bottom: 20px;
}

.artwork-tags label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

/* Language Support Styles */
.language-badge {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 8px;
}

.translation-button {
    background: none;
    border: 1px solid #e0e0e0;
    color: #667eea;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.translation-button:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

.translated-content {
    background: #f0f8ff;
    border-left: 3px solid #667eea;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.translation-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* Enhanced Dream Cards with Tags */
.dream-tags, .artwork-tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.dream-tag, .artwork-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.dream-tag:hover, .artwork-tag:hover {
    background: rgba(102, 126, 234, 0.2);
    cursor: pointer;
}

/* Tab Navigation */
.tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 8px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.tab-button.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
    font-size: 2rem;
    color: #333;
    font-weight: 600;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 5px;
}

/* Filters */
.filters {
    display: flex;
    gap: 15px;
}

.filters select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filters select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Form Styles */
.dream-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: -2px;
    left: 3px;
}

/* Content Warning Details */
.content-warning-details {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}

.content-warning-details label {
    color: #856404;
}

.content-warning-details textarea {
    border-color: #ffeaa7;
}

/* Buttons */
.submit-btn,
.draw-btn,
.tool-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover,
.draw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.tool-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    background: #f8f9fa;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Grids */
.dreams-grid,
.gallery-grid,
.my-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Dream Cards */
.dream-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dream-card h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.dream-card .dream-preview {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.dream-card .dream-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
}

.dream-mood-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.content-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.stat-card i {
    font-size: 2rem;
    opacity: 0.8;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.drawing-modal-content {
    max-width: 95vw;
    max-height: 95vh;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

/* Drawing Interface */
.drawing-interface {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawing-tools {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    flex-wrap: wrap;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-group label {
    font-weight: 600;
    color: #333;
}

#brush-size {
    width: 100px;
}

#brush-color {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#drawing-canvas {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: crosshair;
    display: block;
    margin: 0 auto;
    background: white;
}

.drawing-actions {
    text-align: center;
}

/* Artwork Grid */
.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.artwork-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.artwork-item:hover {
    transform: scale(1.05);
}

.artwork-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.artwork-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.artwork-item:hover .artwork-overlay {
    transform: translateY(0);
}

.vote-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.vote-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.vote-btn.accurate {
    background: #28a745;
    color: white;
}

.vote-btn.inaccurate {
    background: #dc3545;
    color: white;
}

.vote-btn:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .tabs {
        flex-direction: column;
        gap: 5px;
    }

    .tab-button {
        width: 100%;
    }

    .main-content {
        padding: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .filters {
        width: 100%;
        justify-content: stretch;
    }

    .filters select {
        flex: 1;
    }

    .dreams-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .drawing-tools {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .tool-group {
        justify-content: space-between;
    }

    #drawing-canvas {
        width: 100%;
        height: 400px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Auth Modal Styles */
.auth-modal {
    max-width: 450px;
}

.auth-form {
    max-width: none;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Profile Picture Section */
.profile-picture-section {
    display: flex;
    gap: 20px;
    align-items: center;
}

.current-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e0e0e0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.picture-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.avatar-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.avatar-option:hover {
    border-color: #667eea;
    transform: scale(1.1);
}

.avatar-option.selected {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

/* Comments Section */
.comments-section {
    max-height: 500px;
    overflow-y: auto;
}

.add-comment {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.comment-input-area {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

.comment-input-area textarea {
    flex: 1;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.comment-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: #333;
}

.comment-time {
    font-size: 0.85rem;
    color: #888;
}

.comment-text {
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
}

.comment-actions-bottom {
    display: flex;
    gap: 15px;
    align-items: center;
}

.comment-action {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.comment-action:hover {
    color: #667eea;
}

.comment-action.liked {
    color: #e74c3c;
}

/* Reactions */
.reaction-buttons {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.reaction-btn {
    padding: 6px 12px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.reaction-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.reaction-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.reaction-count {
    font-weight: 600;
}

/* Enhanced Dream and Artwork Cards */
.dream-card .card-footer,
.artwork-item .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.card-actions {
    display: flex;
    gap: 12px;
}

.card-action {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.card-action:hover {
    color: #667eea;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}
