/* ==================== VARIABLES ==================== */
:root {
    --primary-color: #ff6b8b;
    --secondary-color: #6c63ff;
    --pink-light: #ff9eb5;
    --pink-dark: #ff4d6d;
    --purple-light: #8a7fff;
    --purple-dark: #5a50e5;
    --light-color: #f8f9fa;
    --dark-color: #333333;
    --gray-light: #e9ecef;
    --gray-dark: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    --pink-lighter: #fff0f3;
    --gradient-primary: linear-gradient(135deg, var(--pink-dark), var(--purple-dark));
    --gradient-secondary: linear-gradient(135deg, var(--pink-light), var(--purple-light));
    
    --border-radius: 12px;
    --box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    --box-shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    
    --mobile-padding: 15px;
    --header-height: 60px;
    --safe-area-bottom: env(safe-area-inset-bottom, 0);
    --safe-area-top: env(safe-area-inset-top, 0);
}

/* ==================== RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    font-size: 1.05rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--pink-dark);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

li {
    line-height: 1.7;
}

a {
    color: var(--pink-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--purple-dark);
}

/* ==================== BUTTONS ==================== */
.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--box-shadow);
    min-width: 44px;
    min-height: 44px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
    color: white;
}

.cta-button:active {
    transform: translateY(-1px);
}

/* ==================== HEADER & NAVIGATION ==================== */
header {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pink-dark);
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.firebase-status {
    font-size: 0.8rem;
    margin-left: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--gray-light);
    color: var(--gray-dark);
}

.firebase-status.connected {
    background: var(--success-color);
    color: white;
}

.firebase-status.error {
    background: var(--danger-color);
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-links a.active {
    color: var(--pink-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 3px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--pink-dark);
}

.admin-btn {
    background: var(--gradient-primary);
    color: white !important;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 600;
    min-height: 44px;
    min-width: 44px;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.nav-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

#onlineCount {
    background: var(--success-color);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 35px;
    display: inline-flex;
    align-items: center;
}

/* ==================== USER INFO ==================== */
.user-info-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--pink-lighter);
    padding: 8px 15px;
    border-radius: 25px;
    border: 2px solid var(--pink-light);
    min-height: 44px;
}

.user-info-display i {
    color: var(--pink-dark);
}

.logout-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    min-height: 34px;
    min-width: 60px;
}

.logout-btn:hover {
    background: #c82333;
}

/* ==================== HERO SECTION ==================== */
.hero {
    padding: 100px 0;
    background: var(--gradient-secondary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1516035069371-29a1b244cc32?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
    opacity: 0.1;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-badge {
    background: rgba(255,255,255,0.2);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    min-width: 200px;
}

.stat-badge i {
    font-size: 1.8rem;
    margin-bottom: 15px;
    display: block;
}

.stat-badge span {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.stat-badge small {
    font-size: 0.9rem;
    opacity: 0.9;
    display: block;
}

/* ==================== PODIUM SECTION ==================== */
#podium {
    padding: 80px 0;
    background: white;
}

.podium-section {
    text-align: center;
}

.podium-section h2 {
    margin-bottom: 50px;
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.podium-stand {
    flex: 1;
    text-align: center;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.podium-stand:hover {
    transform: translateY(-10px);
}

.podium-stand.first {
    order: 2;
}

.podium-stand.second {
    order: 1;
}

.podium-stand.third {
    order: 3;
}

.podium-platform {
    height: 150px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.podium-stand.first .podium-platform {
    height: 200px;
    background: linear-gradient(135deg, #ffd166, #ffb347);
}

.podium-stand.second .podium-platform {
    height: 180px;
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
}

.podium-stand.third .podium-platform {
    height: 160px;
    background: linear-gradient(135deg, #cd7f32, #b56c27);
}

.podium-rank {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.podium-photo-container {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
}

.podium-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: var(--box-shadow);
}

.podium-info {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.podium-author {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--pink-dark);
}

.podium-title {
    font-style: italic;
    color: var(--gray-dark);
    margin-bottom: 10px;
}

.podium-score {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.podium-score span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--pink-dark);
    font-weight: 600;
}

.podium-month {
    background: var(--pink-lighter);
    color: var(--pink-dark);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ==================== STATISTICS SECTION ==================== */
#stats {
    padding: 80px 0;
    background: var(--light-color);
}

.stats-section {
    text-align: center;
}

.stats-section h2 {
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--pink-dark);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--gray-dark);
    font-size: 1.1rem;
}

/* ==================== ABOUT SECTION ==================== */
#about {
    padding: 80px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
}

/* ==================== UPLOAD SECTION ==================== */
#upload {
    padding: 80px 0;
    background: var(--light-color);
}

.upload-section {
    max-width: 800px;
    margin: 0 auto;
}

.upload-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--pink-dark);
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--pink-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--pink-dark);
    box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.15);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.month-selection {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.month-option {
    padding: 14px 12px;
    text-align: center;
    background: var(--pink-lighter);
    border: 2px solid var(--pink-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.month-option:hover {
    background: var(--pink-light);
    transform: translateY(-2px);
}

.month-option.selected {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--pink-dark);
    transform: translateY(-2px);
}

.file-input-wrapper {
    position: relative;
    margin-top: 10px;
}

.file-input-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 35px 25px;
    background: var(--pink-lighter);
    border: 2px dashed var(--pink-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-height: 120px;
}

.file-input-button:hover {
    background: var(--pink-light);
    border-color: var(--pink-dark);
    transform: translateY(-2px);
}

.file-input-button i {
    font-size: 2rem;
    color: var(--pink-dark);
}

#photoFile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-name {
    margin-top: 15px;
    color: var(--pink-dark);
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 12px;
    background: var(--pink-lighter);
    border-radius: var(--border-radius);
    border: 1px solid var(--pink-light);
}

.form-text {
    color: var(--gray-dark);
    font-size: 0.9rem;
    margin-top: 8px;
    display: block;
}

.preview-container {
    margin-top: 20px;
    display: none;
    background: white;
    border: 2px solid var(--pink-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.preview-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    background: #f8f8f8;
}

.preview-info {
    padding: 20px;
    background: var(--pink-lighter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.remove-preview {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    min-height: 44px;
}

.remove-preview:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.loading-spinner {
    display: none;
    width: 40px;
    height: 40px;
    border: 4px solid var(--pink-light);
    border-top: 4px solid var(--pink-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== GALLERY SECTION ==================== */
#gallery {
    padding: 80px 0;
    background: white;
}

.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-btn {
    padding: 12px 24px;
    background: var(--pink-lighter);
    border: 2px solid var(--pink-light);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    min-height: 44px;
    min-width: 60px;
}

.filter-btn:hover {
    background: var(--pink-light);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--pink-dark);
    transform: translateY(-2px);
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-dark);
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid var(--pink-light);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--pink-lighter);
}

.search-input:focus {
    outline: none;
    border-color: var(--pink-dark);
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.photo-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.photo-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.photo-rank {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.delete-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--danger-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
    font-size: 1.1rem;
}

.delete-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.photo-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.photo-card:hover .photo-img {
    transform: scale(1.05);
}

.photo-info {
    padding: 20px;
    position: relative;
    z-index: 3;
    background: white;
}

.photo-month {
    font-size: 0.9rem;
    color: var(--pink-dark);
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.photo-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--pink-dark);
    line-height: 1.3;
    font-weight: 600;
}

.photo-author {
    color: var(--gray-dark);
    margin-bottom: 15px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.photo-author i {
    color: var(--pink-light);
}

.photo-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.likes {
    display: flex;
    align-items: center;
    gap: 10px;
}

.like-btn {
    background: var(--pink-lighter);
    border: 2px solid var(--pink-light);
    color: var(--pink-dark);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.like-btn:hover:not(.liked):not(:disabled) {
    background: var(--pink-light);
    transform: scale(1.1);
}

.like-btn.liked {
    background: var(--pink-dark);
    color: white;
    border-color: var(--pink-dark);
    animation: heartBeat 0.5s;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.like-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comments-count {
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.limit-indicator {
    font-size: 0.8rem;
    color: var(--gray-dark);
    padding: 5px 10px;
    background: var(--pink-lighter);
    border-radius: 10px;
    margin-top: 5px;
    display: inline-block;
}

.limit-indicator.limit-reached {
    color: var(--danger-color);
    font-weight: 600;
    background: rgba(220, 53, 69, 0.1);
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

.status-pending {
    background: var(--warning-color);
    color: #856404;
}

.status-approved {
    background: var(--success-color);
    color: white;
}

.share-btn {
    background: var(--pink-lighter);
    color: var(--pink-dark);
    border: 2px solid var(--pink-light);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    min-height: 44px;
}

.share-btn:hover {
    background: var(--pink-light);
    transform: translateY(-2px);
}

.search-results-header {
    grid-column: 1 / -1;
    background: var(--pink-lighter);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.1rem;
    border: 2px solid var(--pink-light);
}

/* ==================== MODALS ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: modalBgFade 0.3s ease;
}

@keyframes modalBgFade {
    from { background: rgba(0,0,0,0); }
    to { background: rgba(0,0,0,0.7); }
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 20px 30px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
}

.close-modal:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

/* Share Modal */
.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.share-option {
    padding: 20px 15px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 120px;
    justify-content: center;
}

.share-option:hover {
    border-color: var(--pink-dark);
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.share-option i {
    font-size: 2.5rem;
}

.share-link {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.share-link input {
    flex: 1;
    padding: 14px;
    border: 2px solid var(--pink-light);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    background: var(--pink-lighter);
    transition: var(--transition);
}

.share-link input:focus {
    border-color: var(--pink-dark);
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.1);
}

.share-link button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    min-width: 80px;
    min-height: 44px;
}

.share-link button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Admin Modal */
.admin-modal .modal-content {
    max-width: 400px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-form input {
    padding: 16px;
    border: 2px solid var(--pink-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--pink-lighter);
    transition: var(--transition);
}

.admin-form input:focus {
    border-color: var(--pink-dark);
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.1);
}

.admin-form button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    min-height: 44px;
}

.admin-form button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* User Registration Modal */
.user-reg-modal {
    background: rgba(0,0,0,0.85);
}

.user-reg-content {
    background: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 450px;
    animation: modalFadeIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.user-reg-header {
    padding: 20px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.user-reg-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
}

.user-reg-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.user-reg-form {
    padding: 30px;
}

.user-reg-form input {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    border: 2px solid var(--pink-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: white;
    transition: var(--transition);
}

.user-reg-form input:focus {
    outline: none;
    border-color: var(--pink-dark);
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.1);
}

.user-reg-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
}

.user-reg-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ==================== LOADING OVERLAY ==================== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
    animation: modalBgFade 0.3s ease;
}

.loading-overlay .loading-spinner {
    display: block;
    width: 60px;
    height: 60px;
    border-width: 5px;
}

.loading-text {
    color: white;
    margin-top: 20px;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 500;
}

/* ==================== ONLINE STATUS INDICATOR ==================== */
#onlineStatus {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    z-index: 1001;
    box-shadow: var(--box-shadow-hover);
    animation: slideIn 0.3s ease;
    display: none;
    min-height: 44px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

#onlineStatus.online {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

#onlineStatus.offline {
    background: rgba(220, 53, 69, 0.9);
    color: white;
}

#onlineStatus.connecting {
    background: rgba(255, 193, 7, 0.9);
    color: #856404;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.footer-links a {
    color: #bbb;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links i {
    color: var(--pink-light);
    width: 20px;
    flex-shrink: 0;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icons a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px) scale(1.1);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
    font-size: 0.9rem;
}

#serverStatus, #firebaseConnection {
    transition: var(--transition);
}

#serverStatus.connected, #firebaseConnection.connected {
    color: var(--success-color);
}

#serverStatus.error, #firebaseConnection.error {
    color: var(--danger-color);
}

/* ==================== FACEBOOK-STYLE CHAT (LIVECHAT) ==================== */
.chatroom-fixed-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    max-height: 600px;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    min-height: 60px;
    min-width: 300px;
}

.chatroom-fixed-container.collapsed {
    height: 60px !important;
    max-height: 60px !important;
    overflow: hidden;
}

.chatroom-fixed-container.collapsed .chatroom-fixed-body {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

.chatroom-fixed-container.collapsed .chatroom-fixed-header {
    border-radius: 12px !important;
}

.chatroom-fixed-header {
    background: var(--gradient-primary);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 12px 12px 0 0;
    min-height: 60px;
    flex-shrink: 0;
    user-select: none;
}

.chatroom-fixed-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.chatroom-fixed-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 30px;
    min-height: 30px;
}

.chatroom-fixed-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.chatroom-fixed-container:not(.collapsed) .toggle-icon {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.chatroom-fixed-container.collapsed .toggle-icon {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.chatroom-fixed-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-height: 540px;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chatroom-fixed-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f0f2f5;
    min-height: 200px;
    max-height: 400px;
    scroll-behavior: smooth;
}

.chatroom-fixed-messages::-webkit-scrollbar {
    width: 8px;
}

.chatroom-fixed-messages::-webkit-scrollbar-track {
    background: #f0f2f5;
    border-radius: 4px;
}

.chatroom-fixed-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.chatroom-fixed-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Facebook-style message bubbles */
.fb-message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.fb-message.own {
    align-items: flex-end;
    margin-left: auto;
}

.fb-message-bubble {
    background: white;
    padding: 10px 14px;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    word-wrap: break-word;
    max-width: 100%;
    border: 1px solid #e4e6eb;
}

.fb-message.own .fb-message-bubble {
    background: var(--pink-light);
    border-color: var(--pink-light);
    color: black;
}

.fb-message-text {
    line-height: 1.4;
    font-size: 0.95rem;
}

.fb-message-time {
    font-size: 0.75rem;
    color: #65676b;
    margin-top: 4px;
    text-align: right;
}

.fb-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.fb-message-user-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--pink-light);
}

.fb-message-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid var(--pink-light);
}

.fb-message-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pink-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.fb-message-author::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success-color);
    border-radius: 50%;
    display: inline-block;
}

/* Chat input area */
.chatroom-fixed-input-area {
    padding: 16px;
    background: white;
    border-top: 1px solid #e4e6eb;
    position: relative;
    flex-shrink: 0;
}

.chat-input-with-sticker {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.chatroom-fixed-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e4e6eb;
    border-radius: 20px;
    font-size: 0.95rem;
    background: #f0f2f5;
    transition: all 0.2s ease;
    min-height: 40px;
}

.chatroom-fixed-input:focus {
    outline: none;
    background: white;
    border-color: var(--pink-light);
    box-shadow: 0 0 0 2px rgba(255, 77, 109, 0.1);
}

.chatroom-fixed-send {
    background: var(--gradient-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chatroom-fixed-send:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(255, 77, 109, 0.3);
}

.chatroom-fixed-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.status-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Sound wave animation */
.sound-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: 10px;
}

.sound-wave-bar {
    width: 3px;
    height: 12px;
    background: white;
    border-radius: 3px;
    animation: soundWave 1.2s infinite ease-in-out;
}

.sound-wave-bar:nth-child(1) { animation-delay: 0s; }
.sound-wave-bar:nth-child(2) { animation-delay: 0.2s; }
.sound-wave-bar:nth-child(3) { animation-delay: 0.4s; }
.sound-wave-bar:nth-child(4) { animation-delay: 0.6s; }
.sound-wave-bar:nth-child(5) { animation-delay: 0.8s; }

@keyframes soundWave {
    0%, 100% { height: 12px; }
    50% { height: 20px; }
}

/* Chat welcome message */
.chat-welcome {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.chat-welcome i {
    font-size: 4rem;
    color: var(--pink-light);
    margin-bottom: 20px;
    opacity: 0.7;
}

.chat-welcome h4 {
    color: var(--pink-dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.chat-welcome p {
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

.chat-welcome small {
    color: #999;
    font-size: 0.9rem;
    display: block;
    margin-top: 20px;
}

/* ==================== CHAT ENHANCEMENTS ==================== */
.fb-message-instagram {
    font-size: 0.8rem;
    color: var(--gray-dark);
    font-weight: normal;
}

.message-link {
    color: var(--pink-dark);
    text-decoration: underline;
    word-break: break-all;
}

.message-link:hover {
    color: var(--purple-dark);
}

.message-emoji {
    font-size: 1.2em;
    line-height: 1;
}

/* Message with photo */
.fb-message-with-photo {
    max-width: 250px;
}

.fb-message-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.fb-message-image:hover {
    transform: scale(1.02);
}

/* Sticker message */
.fb-message-sticker {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.sticker-display {
    font-size: 3rem;
    text-align: center;
    padding: 10px;
}

.sticker-label {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-dark);
    margin-top: 5px;
}

/* Voice message */
.fb-voice-message {
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e4e6eb;
    max-width: 250px;
}

.fb-voice-message audio {
    flex: 1;
    height: 32px;
}

.voice-play-btn {
    background: var(--pink-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.voice-play-btn:hover {
    background: var(--pink-dark);
    transform: scale(1.1);
}

.voice-duration {
    font-size: 0.8rem;
    color: var(--gray-dark);
    min-width: 40px;
}

/* Location message */
.fb-message-location {
    max-width: 300px !important;
}

.location-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--pink-dark);
    font-weight: 600;
}

.location-map-preview {
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.location-map-preview:hover {
    opacity: 0.9;
}

.location-coordinates {
    font-size: 0.8rem;
    color: var(--gray-dark);
    text-align: center;
    margin-bottom: 5px;
}

.location-accuracy {
    font-size: 0.8rem;
    color: var(--gray-dark);
    text-align: center;
}

.fb-message-location-stop {
    background: var(--gray-light) !important;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
}

/* ==================== CHAT CONTROLS ==================== */
.chat-action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.chat-action-btn {
    background: var(--pink-lighter);
    border: 2px solid var(--pink-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--pink-dark);
    font-size: 1.1rem;
}

.chat-action-btn:hover {
    background: var(--pink-light);
    transform: scale(1.1);
}

.chat-action-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--pink-dark);
}

/* Chat photo upload */
.chat-photo-upload {
    position: relative;
    margin-bottom: 10px;
}

.chat-photo-preview {
    position: relative;
    max-width: 200px;
    margin-top: 10px;
}

.chat-image-preview {
    width: 100%;
    max-height: 200px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--pink-light);
}

.chat-remove-photo {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--danger-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.chat-upload-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.chat-upload-btn {
    background: var(--pink-lighter);
    border: 2px solid var(--pink-light);
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--pink-dark);
}

.chat-upload-btn:hover {
    background: var(--pink-light);
}

.chat-upload-progress {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 10px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.chat-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--gray-light);
    border-radius: 3px;
    overflow: hidden;
}

.chat-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

/* Voice chat */
.voice-chat-container {
    background: white;
    border-top: 1px solid #e4e6eb;
    padding: 15px;
}

.voice-chat-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.voice-chat-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.voice-start-btn {
    background: var(--success-color);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.voice-stop-btn {
    background: var(--danger-color);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.voice-chat-btn:hover {
    transform: scale(1.1);
}

.voice-chat-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.voice-chat-status {
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.voice-visualizer {
    display: flex;
    justify-content: center;
    gap: 3px;
    height: 30px;
    align-items: center;
    margin: 15px 0;
}

.voice-visualizer-bar {
    width: 4px;
    height: 10px;
    background: var(--pink-light);
    border-radius: 2px;
    transition: height 0.1s ease;
}

.voice-recording-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    color: var(--danger-color);
    font-weight: 600;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.recording-dot {
    width: 12px;
    height: 12px;
    background: var(--danger-color);
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.voice-permission-warning {
    background: var(--warning-color);
    color: #856404;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

/* Chat sections */
.chat-section-container {
    background: white;
    border-top: 1px solid #e4e6eb;
    padding: 15px;
    max-height: 250px;
    overflow-y: auto;
}

/* User photo upload */
.user-photo-container {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--pink-light);
}

.user-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    font-size: 0.8rem;
}

.user-photo-container:hover .user-photo-overlay {
    opacity: 1;
}

/* Location controls */
.location-controls {
    text-align: center;
}

.location-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin: 5px;
    min-height: 44px;
}

.location-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-2px);
}

.location-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.location-status {
    margin: 15px 0;
    padding: 10px;
    background: var(--pink-lighter);
    border-radius: 10px;
    font-size: 0.9rem;
}

/* Coming soon features */
.coming-soon-features {
    margin: 20px 0;
    text-align: left;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    background: var(--pink-lighter);
    border-radius: 8px;
}

/* ==================== NOTIFICATIONS ==================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 3000;
    animation: slideInRight 0.3s ease;
    max-width: 350px;
    border-left: 4px solid var(--info-color);
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.error {
    border-left-color: var(--danger-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

.notification-content {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification.success .notification-content i {
    color: var(--success-color);
}

.notification.error .notification-content i {
    color: var(--danger-color);
}

.notification.warning .notification-content i {
    color: var(--warning-color);
}

.notification.info .notification-content i {
    color: var(--info-color);
}

.notification.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ==================== ANIMASI MINIMIZE CHAT ==================== */
@keyframes minimizeChat {
    from {
        max-height: 600px;
    }
    to {
        max-height: 60px;
    }
}

@keyframes expandChat {
    from {
        max-height: 60px;
    }
    to {
        max-height: 600px;
    }
}

.chatroom-fixed-container.collapsed {
    animation: minimizeChat 0.3s ease forwards;
}

.chatroom-fixed-container:not(.collapsed) {
    animation: expandChat 0.3s ease forwards;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
    }
    
    .podium-container {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }
    
    .podium-stand {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .stat-badge {
        padding: 15px 20px;
        min-width: 180px;
    }
    
    .stat-badge span {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .month-selection {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .month-selection {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .upload-form {
        padding: 25px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .modal-content {
        margin: 10px;
    }
    
    /* Mobile hamburger menu */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--pink-dark);
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links a {
        width: 100%;
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid var(--gray-light);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .admin-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Header adjustments */
    header {
        padding: 10px 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: var(--header-height);
        background: white;
        z-index: 1002;
        box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    }
    
    /* Hero section mobile */
    .hero {
        padding: 100px 0 60px;
        margin-top: var(--header-height);
    }
    
    /* User info responsive */
    .user-info-display {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    /* Podium mobile */
    .podium-container {
        flex-direction: column;
        align-items: center;
    }
    
    .podium-stand {
        width: 100%;
        max-width: 300px;
        margin-bottom: 30px;
    }
    
    /* Gallery grid mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Form adjustments */
    .upload-form {
        padding: 20px;
    }
    
    /* Modal mobile */
    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: 85vh;
    }
    
   /* ==================== CHAT MOBILE FIXES ==================== */
@media (max-width: 768px) {
    .chatroom-fixed-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: calc(100% - 40px);
        max-height: 70vh;
        z-index: 1002;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .chatroom-fixed-container.collapsed {
        height: 60px !important;
        max-height: 60px !important;
        bottom: 20px;
        animation: minimizeChatMobile 0.3s ease forwards;
    }
    
    @keyframes minimizeChatMobile {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(calc(100vh - 100px));
            opacity: 0.9;
        }
    }
    
    .chatroom-fixed-container:not(.collapsed) {
        animation: expandChatMobile 0.3s ease forwards;
        bottom: 20px;
    }
    
    @keyframes expandChatMobile {
        from {
            transform: translateY(calc(100vh - 100px));
            opacity: 0.9;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .chatroom-fixed-body {
        max-height: calc(70vh - 60px);
    }
    
    .chatroom-fixed-messages {
        max-height: calc(70vh - 180px);
    }
    
    /* Ensure chat doesn't overlap important elements */
    #upload, #gallery, footer {
        margin-bottom: 100px;
    }
}
    /* ==================== CHAT FEATURES ENHANCEMENT ==================== */
.feature-hint {
    margin: 15px 0;
    text-align: left;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid var(--pink-light);
}

.feature-hint small {
    display: block;
    margin: 5px 0;
    color: rgba(255,255,255,0.9);
}

.feature-hint i {
    margin-right: 8px;
    color: var(--pink-light);
}

/* Coming soon badge */
.coming-soon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--warning-color);
    color: #856404;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    z-index: 1;
}

/* Voice recording animation */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.voice-recording .voice-start-btn {
    animation: pulse-glow 1.5s infinite;
}

/* Progress animation */
@keyframes progress-shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}
/* Pending Photos Container */
.pending-container {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-top: 20px;
}

.pending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pending-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
}

.pending-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: #856404;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.pending-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pending-info {
    padding: 15px;
}

.pending-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--pink-dark);
}

.pending-author {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.pending-month {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
}

.pending-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.approve-btn, .reject-btn, .view-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.approve-btn {
    background: #28a745;
    color: white;
}

.reject-btn {
    background: #dc3545;
    color: white;
}

.view-btn {
    background: #007bff;
    color: white;
}

/* Modal Detail Pending */
.pending-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.pending-detail-content {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 15px;
    overflow-y: auto;
}

/* Admin Panel */
.admin-panel {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 0;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.admin-tab {
    padding: 10px 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
}

.admin-tab.active {
    background: var(--pink-light);
    border-color: var(--pink-dark);
    color: var(--pink-dark);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Pending Badge */
.pending-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Style untuk pending section */
.pending-section {
    padding: 40px 0;
}

.pending-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.pending-tab {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.pending-tab.active {
    background: var(--pink-light);
    color: var(--pink-dark);
    font-weight: bold;
}

.pending-container {
    min-height: 300px;
}

.no-pending {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-pending i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 20px;
}

.pending-badge {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: #f0f2f5;
    border-radius: 10px;
    margin: 5px 0;
    color: #666;
    font-size: 0.9rem;
}

.typing-dots {
    display: flex;
    margin-right: 10px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #888;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.reaction-picker {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Video Call Modal */
.video-call-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-call-modal.active {
    display: flex;
}

.video-call-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
}

.video-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    padding: 20px;
    height: 500px;
}

.local-video-container,
.remote-video-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.local-video-container video,
.remote-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.video-control-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}

.video-control-btn.end-call {
    background: #f44336;
}

.call-actions {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.call-action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: var(--pink-dark);
    color: white;
    cursor: pointer;
    font-size: 1rem;
}

/* Emoji picker enhanced */
.emoji-search-container {
    margin-bottom: 10px;
}

.emoji-category-tabs {
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 10px;
}

.emoji-category-tab.active {
    background: var(--pink-lighter) !important;
    font-weight: bold !important;
}

.emoji-btn-enhanced:hover {
    transform: scale(1.2) !important;
}

/* Message reactions */
.fb-message {
    position: relative;
}

.fb-message:hover {
    background: rgba(0,0,0,0.02);
}
.chatroom-fixed-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: hidden;
}

.chatroom-fixed-container.collapsed {
    height: 60px;
}

.chatroom-fixed-container.collapsed .chatroom-fixed-body,
.chatroom-fixed-container.collapsed .chatroom-fixed-input-area {
    display: none;
}

.chatroom-fixed-header {
    background: var(--pink-dark);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 15px 15px 0 0;
}

.chatroom-fixed-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chatroom-fixed-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
}

/* Sound wave animation */
.sound-wave {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

.sound-wave-bar {
    width: 3px;
    height: 10px;
    background: white;
    margin: 0 2px;
    border-radius: 3px;
    animation: soundWave 1s infinite ease-in-out;
}

.sound-wave-bar:nth-child(2) { animation-delay: 0.1s; }
.sound-wave-bar:nth-child(3) { animation-delay: 0.2s; }
.sound-wave-bar:nth-child(4) { animation-delay: 0.3s; }
.sound-wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes soundWave {
    0%, 100% { height: 10px; }
    50% { height: 20px; }
}

/* Chat input area */
.chatroom-fixed-input-area {
    border-top: 1px solid var(--border-color);
    background: white;
}

.chat-input-with-sticker {
    display: flex;
    padding: 10px;
    align-items: center;
    gap: 10px;
}

.chatroom-fixed-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    outline: none;
    font-size: 0.95rem;
}

.chatroom-fixed-send {
    background: var(--pink-dark);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chatroom-fixed-send:hover {
    background: var(--pink-darker);
}

/* Message bubbles */
.fb-message {
    margin-bottom: 15px;
    max-width: 80%;
}

.fb-message.own {
    margin-left: auto;
}

.fb-message-bubble {
    background: white;
    padding: 10px 15px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.fb-message.own .fb-message-bubble {
    background: var(--pink-light);
    border-radius: 15px 15px 0 15px;
}

.fb-message-time {
    font-size: 0.7rem;
    color: #999;
    margin-top: 5px;
    text-align: right;
}

/* Voice recording */
.voice-recording-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #ff4444;
    color: white;
    border-radius: 10px;
    margin: 10px;
}

.recording-dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive */
@media (max-width: 768px) {
    .chatroom-fixed-container {
        width: 300px;
        right: 10px;
        bottom: 10px;
        height: 450px;
    }
}
/* Visitor Counter Styles */
.visitor-counter {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.visitor-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex: 1;
}

.visitor-stat i {
    font-size: 2rem;
    color: var(--pink-dark);
}

.visitor-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--pink-dark);
}

.visitor-label {
    font-size: 0.9rem;
    color: #666;
}

/* Admin Delete Button */
.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-auth-prompt {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* Style untuk input chat yang disabled */
.chat-input-disabled {
    background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    cursor: not-allowed;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Tooltip untuk chat */
.chat-tooltip {
    position: relative;
    display: inline-block;
}

.chat-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.chat-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
.delete-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* User Registration Modal */
.modal-content {
    max-width: 500px;
}

.required-note {
    color: #dc3545;
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.chat-progress-fill.uploading {
    background: linear-gradient(90deg, var(--pink-light), var(--pink-dark), var(--pink-light));
    background-size: 200px 100%;
    animation: progress-shimmer 2s infinite linear;
}
    /* Pastikan section halaman utama bisa di-scroll */
    section {
        padding-bottom: 100px;
    }
    
    /* Beri margin bottom pada elemen yang mungkin tertutup */
    footer {
        margin-bottom: 80px;
    }
    
    .upload-form,
    .gallery-grid,
    .podium-container {
        margin-bottom: 20px;
    }
    
    /* Beri padding pada konten utama untuk menghindari chatroom */
    main {
        padding-bottom: 80px;
    }
    
    /* Touch-friendly elements */
    .nav-links a,
    .cta-button,
    .admin-btn,
    .filter-btn,
    .month-option,
    .like-btn,
    .share-btn,
    .delete-btn,
    .close-modal,
    .chatroom-fixed-toggle,
    .chatroom-fixed-send {
        min-height: 48px;
        min-width: 48px;
        touch-action: manipulation;
    }
    
    .container {
        padding: 0 var(--mobile-padding);
    }
    
    /* Fix for iOS Safari */
    @supports (-webkit-touch-callout: none) {
        .hero {
            background-attachment: scroll;
        }
    }
    
    /* Prevent zoom on input focus in mobile */
    input,
    textarea,
    select {
        font-size: 16px;
    }
    
    /* Chat adjustments */
    .chat-upload-buttons {
        flex-direction: column;
    }
    
    .fb-message-with-photo {
        max-width: 200px;
    }
    
    .voice-chat-controls {
        gap: 15px;
    }
    
    .voice-chat-btn {
        width: 50px;
        height: 50px;
    }
    
    .fb-voice-message {
        max-width: 200px;
    }
    
    .fb-message-user-photo,
    .fb-message-user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .sticker-display {
        font-size: 2.5rem;
    }
    
    .fb-message-location {
        max-width: 250px !important;
    }
    
    .chat-action-buttons {
        justify-content: center;
    }
    
    .chat-action-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.4rem; }
    
    .month-selection {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        white-space: nowrap;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-badge {
        width: 100%;
        max-width: 250px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .share-options {
        grid-template-columns: 1fr 1fr;
    }
    
    .user-info-display {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px;
    }
    
    .photo-rank, .delete-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .chatroom-fixed-container {
        width: calc(100vw - 30px);
        right: 15px;
        left: 15px;
    }
    
    .chatroom-fixed-container.collapsed {
        bottom: 15px;
    }
    
    .chatroom-fixed-messages {
        padding: 15px;
    }
    
    .fb-message {
        max-width: 85%;
    }
}

/* Safe area for notched phones */
.safe-area-padding {
    padding-top: var(--safe-area-top);
    padding-bottom: var(--safe-area-bottom);
}
/* Responsive Chat Styles */
@media (max-width: 768px) {
    .chatroom-fixed-container {
        width: 100% !important;
        height: 70vh !important;
        max-height: 70vh !important;
        right: 0 !important;
        bottom: 0 !important;
        border-radius: 15px 15px 0 0 !important;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.2) !important;
    }
    
    .chatroom-fixed-container.minimized {
        height: 50px !important;
        max-height: 50px !important;
    }
    
    .chatroom-fixed-toggle {
        touch-action: manipulation !important;
    }
    
    .chatroom-fixed-toggle i {
        pointer-events: none !important;
    }
    
    .chat-input-with-sticker {
        padding: 8px 5px !important;
    }
    
    .chatroom-fixed-input {
        font-size: 14px !important;
        padding: 8px !important;
    }
    
    /* Prevent touch highlight */
    button:active {
        opacity: 0.8 !important;
    }
    
    /* Better touch targets */
    .chat-upload-btn, 
    .chatroom-fixed-send {
        min-width: 44px !important;
        min-height: 44px !important;
    }
}