/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background: linear-gradient(135deg, #0b1020 0%, #1a1f3a 100%);
    background-color: #0b1020; /* Fallback */
    color: #e5e7eb;
    overflow-x: hidden;
    height: 100%;
}

html {
    background-color: #0b1020;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0b1020 0%, #1a1f3a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #374151;
    border-top: 3px solid #20b2aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Screen Management */
.screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.screen.hidden {
    display: none;
}

/* Authentication Styles */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: rgba(17, 24, 39, 0.8);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #20b2aa;
}

.auth-header p {
    color: #9ca3af;
    font-size: 1rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    background: rgba(31, 41, 55, 0.5);
    border-radius: 10px;
    padding: 4px;
}

.tab-button {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: #9ca3af;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: #20b2aa;
    color: white;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form.hidden {
    display: none !important;
}

.auth-form input {
    padding: 12px 15px;
    border: 1px solid #374151;
    border-radius: 8px;
    background: rgba(31, 41, 55, 0.5);
    color: #e5e7eb;
    font-size: 16px;
}

.auth-form input:focus {
    outline: none;
    border-color: #20b2aa;
}

.auth-form .form-group {
    margin-bottom: 15px;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #f3f4f6;
    font-weight: 500;
}

.auth-form .form-group small {
    display: block;
    margin-top: 5px;
}

.auth-button {
    padding: 12px;
    background: #20b2aa;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.auth-button:hover {
    background: #1a9b94;
}

.error-message {
    color: #f87171;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    background: rgba(248, 113, 113, 0.1);
    border-radius: 8px;
}

/* Main App Styles */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #374151;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header-left h1 {
    font-size: 1.5rem;
    color: #20b2aa;
}

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

.menu-button,
.profile-button,
.logout-button {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: rgba(31, 41, 55, 0.7);
    color: #e5e7eb;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.menu-button:hover,
.profile-button:hover,
.logout-button:hover {
    background: rgba(31, 41, 55, 1);
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #374151;
    z-index: 2000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.nav-menu:not(.hidden) {
    transform: translateY(0);
}

.nav-menu {
    display: flex;
    overflow-x: auto;
    padding: 10px;
    gap: 10px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px 20px;
    border: none;
    background: rgba(31, 41, 55, 0.5);
    color: #9ca3af;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 80px;
}

.nav-item.active {
    background: #20b2aa;
    color: white;
}

.nav-item:hover {
    background: rgba(31, 41, 55, 0.8);
}

.nav-item.active:hover {
    background: #1a9b94;
}

.nav-icon {
    display: none;
}

.nav-icon-fa {
    font-size: 20px;
    margin-bottom: 0;
    display: block;
}

.nav-text {
    font-size: 11px;
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page h2 {
    margin-bottom: 20px;
    color: #f3f4f6;
    font-size: 1.8rem;
}

/* Form Styles */
.observation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.close-button {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    font-weight: 600;
    color: #f3f4f6;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #374151;
    border-radius: 8px;
    background: rgba(31, 41, 55, 0.5);
    color: #e5e7eb;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #20b2aa;
}

.form-group input[readonly] {
    background: rgba(31, 41, 55, 0.3);
    color: #9ca3af;
}

/* Search Toggle */
.search-toggle {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.toggle-button {
    flex: 1;
    padding: 10px 20px;
    background: #374151;
    color: #9ca3af;
    border: 2px solid #374151;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.toggle-button:hover {
    background: #4b5563;
    border-color: #4b5563;
}

.toggle-button.active {
    background: #20b2aa;
    color: white;
    border-color: #20b2aa;
}

/* Search Group - for relative positioning */
.search-group {
    position: relative;
}

/* Species info display */
.species-info-item {
    color: #e5e7eb;
    font-size: 14px;
    margin: 5px 0;
}

.species-info-item:empty {
    display: none;
}

/* Species Suggestions */
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid #374151;
    border-radius: 8px;
    margin-top: 5px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #374151;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: rgba(31, 41, 55, 0.7);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-common {
    font-weight: 600;
    color: #f3f4f6;
    font-size: 16px;
}

.suggestion-scientific {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 2px;
    font-style: italic;
}

/* GPS Button */
.gps-button {
    padding: 8px 15px;
    background: #20b2aa;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.gps-button:hover {
    background: #1a9b94;
}

/* Map Styles */
.location-map {
    height: 300px;
    border-radius: 8px;
    border: 1px solid #374151;
}

.full-map {
    height: calc(100vh - 250px);
    min-height: 600px;
    border-radius: 8px;
    border: 1px solid #374151;
    margin-top: 20px;
}

/* Custom map markers */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

.custom-marker:hover {
    cursor: pointer;
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Submit Button */
.submit-button {
    padding: 15px 30px;
    background: #20b2aa;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #1a9b94;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 5px;
}

.view-toggle-btn {
    padding: 8px 12px;
    background: #374151;
    color: #9ca3af;
    border: 2px solid #374151;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle-btn:hover {
    background: #4b5563;
}

.view-toggle-btn.active {
    background: #20b2aa;
    color: white;
    border-color: #20b2aa;
}

/* Observations List - Card View (default) */
.observations-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* List View */
.observations-list.list-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Single column on mobile/narrow screens */
@media (max-width: 768px) {
    .observations-list {
        grid-template-columns: 1fr;
    }
}

.observation-card {
    background: rgba(31, 41, 55, 0.7);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #374151;
    transition: transform 0.2s ease;
    overflow: hidden;
}

.observation-card:hover {
    transform: translateY(-2px);
    border-color: #20b2aa;
}

.observation-photo {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* List View Row Styles */
.observation-row {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(31, 41, 55, 0.7);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #374151;
    transition: all 0.2s ease;
}

.observation-row:hover {
    border-color: #20b2aa;
    background: rgba(31, 41, 55, 0.9);
}

.observation-row-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #20b2aa;
}

.observation-row-photo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(32, 178, 170, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
    border: 2px solid #374151;
}

.observation-row-info {
    flex: 1;
    min-width: 0;
}

.observation-row-species {
    font-weight: 600;
    color: #f3f4f6;
    font-size: 16px;
    margin-bottom: 5px;
}

.observation-row-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #9ca3af;
    margin-top: 5px;
}

.observation-row-details span {
    line-height: 1.5;
}

.observation-row-scientific-inline {
    color: #d1d5db !important;
}

.observation-row-coords {
    color: #20b2aa;
    cursor: pointer;
    text-decoration: underline;
}

.observation-row-coords:hover {
    color: #1a9b94;
}

/* Clickable coordinates in card view */
.observation-coords-link {
    color: #20b2aa;
    cursor: pointer;
    text-decoration: underline;
}

.observation-coords-link:hover {
    color: #1a9b94;
    text-decoration: none;
}

.observation-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #374151;
}

.observation-species {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 4px;
}

.observation-scientific {
    font-size: 0.85rem;
    color: #d1d5db;
    margin-bottom: 4px;
}

.observation-classification {
    font-size: 0.85rem;
    color: #9ca3af;
}

.observation-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.observation-detail {
    font-size: 0.85rem;
    color: #9ca3af;
}

.observation-detail strong {
    color: #9ca3af;
}

.observation-notes {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #374151;
    color: #d1d5db;
    font-style: italic;
}

/* Leaderboard */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.leaderboard-section {
    margin-bottom: 20px;
}

.leaderboard-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(31, 41, 55, 0.7);
    border-radius: 12px;
    border: 1px solid #374151;
}

.leaderboard-rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: #20b2aa;
    min-width: 30px;
}

.leaderboard-rank.first {
    color: #ffd700;
}

.leaderboard-rank.second {
    color: #c0c0c0;
}

.leaderboard-rank.third {
    color: #cd7f32;
}

.leaderboard-profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-username {
    font-weight: 600;
    color: #f3f4f6;
}

.leaderboard-count {
    color: #9ca3af;
    font-size: 0.9rem;
}

.leaderboard-score {
    font-size: 1.2rem;
    font-weight: bold;
    color: #20b2aa;
}

/* Trophies - Gallery Style */
.trophies-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.trophy-card {
    background: rgba(31, 41, 55, 0.8);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid #374151;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.trophy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.trophy-card:hover::before {
    opacity: 1;
}

.trophy-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #20b2aa;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(32, 178, 170, 0.3);
}

.trophy-card.earned {
    border-color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(245, 158, 11, 0.2) 100%);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.4), 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.trophy-card.earned::before {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.trophy-card.earned .trophy-icon {
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.6));
}

.trophy-card.earned .trophy-icon img {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 15px rgba(251, 191, 36, 0.6));
}

.trophy-card.earned .trophy-name {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.trophy-card:hover {
    transform: translateY(-2px);
    border-color: #20b2aa;
    cursor: pointer;
}

.trophy-icon {
    font-size: 8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    z-index: 2;
}

.trophy-icon img {
    width: 200px !important;
    height: 200px !important;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.trophy-card:hover .trophy-icon img {
    transform: scale(1.1);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

.trophy-name {
    font-size: 1rem;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}

.trophy-description {
    color: #9ca3af;
    font-size: 0.8rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.trophy-earned-date {
    font-size: 0.8rem;
    color: #20b2aa;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none !important;
}

/* Photo Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    cursor: pointer;
}

.lightbox.hidden {
    display: none !important;
}

.lightbox-image {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 3001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-content {
    background: rgba(17, 24, 39, 0.95);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #374151;
}

/* Trophy Progress Modal - No background, no borders, just the trophy */
#trophyProgressModal .modal-content {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
}

#trophyProgressModal .modal-header {
    display: none !important;
}

#trophyProgressModal .modal-body {
    padding: 0 !important;
    margin: 0 !important;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: #f3f4f6;
    font-size: 1.5rem;
}

.close-button {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.close-button:hover {
    color: #f3f4f6;
}

.profile-picture-section {
    text-align: center;
    margin-bottom: 20px;
}

.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #20b2aa;
}

.upload-button {
    display: inline-block;
    padding: 10px 20px;
    background: #20b2aa;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.upload-button:hover {
    background: #1a9b94;
}

.edit-profile-button {
    width: 100%;
    padding: 12px 20px;
    background: #20b2aa;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.edit-profile-button:hover {
    background: #1a9b94;
}

.profile-info p {
    margin-bottom: 10px;
    color: #d1d5db;
}

.profile-info strong {
    color: #f3f4f6;
}

/* Toast Notifications */
.toasts {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(17, 24, 39, 0.95);
    color: #e5e7eb;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #20b2aa;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    max-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast.error {
    border-left-color: #f87171;
}

.toast.success {
    border-left-color: #10b981;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .observation-details {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        flex-wrap: wrap;
    }

    .nav-item {
        min-width: 70px;
        padding: 12px 15px;
    }

    .trophies-list {
        grid-template-columns: 1fr;
    }

    .leaderboard-item {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        margin: 20px;
        padding: 20px;
    }

    .modal-content {
        padding: 20px;
        width: 95%;
    }

    .app-header {
        padding: 12px 15px;
    }

    .header-left h1 {
        font-size: 1.3rem;
    }
}

/* PWA Specific Styles */
@media (display-mode: standalone) {
    .app-header {
        padding-top: 25px;
    }
}

/* Leaflet Map Customization */
.leaflet-container {
    background: #1a1f3a !important;
}

.leaflet-popup-content-wrapper {
    background: rgba(17, 24, 39, 0.95) !important;
    color: #e5e7eb !important;
    border-radius: 8px !important;
}

.leaflet-popup-tip {
    background: rgba(17, 24, 39, 0.95) !important;
}

.leaflet-control-zoom a {
    background-color: rgba(17, 24, 39, 0.9) !important;
    color: #e5e7eb !important;
    border: 1px solid #374151 !important;
}

.leaflet-control-zoom a:hover {
    background-color: rgba(31, 41, 55, 0.9) !important;
}

/* ==================== PROFILE PAGE STYLES ==================== */

/* Profile Banner (Cover Photo + Profile Picture) */
.profile-banner {
    position: relative;
    margin: -20px -20px 30px -20px;
}

.cover-photo {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #1a1f3a 0%, #0b1020 100%);
    position: relative;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

/* Gradually increase height as screen gets wider */
@media (min-width: 900px) {
    .cover-photo {
        height: 280px;
    }
}

@media (min-width: 1100px) {
    .cover-photo {
        height: 320px;
    }
}

@media (min-width: 1300px) {
    .cover-photo {
        height: 360px;
    }
}

@media (min-width: 1500px) {
    .cover-photo {
        height: 400px;
    }
}

.edit-cover-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.edit-cover-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.profile-header-info {
    display: flex;
    align-items: flex-end;
    padding: 20px;
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

.profile-picture-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #0b1020;
    background: rgba(32, 178, 170, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    flex-shrink: 0;
    overflow: hidden;
}

.profile-picture-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header-details {
    margin-left: 20px;
    margin-bottom: 10px;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.profile-username {
    color: #f3f4f6;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.edit-profile-btn {
    padding: 8px 16px;
    background: rgba(32, 178, 170, 0.2);
    color: #20b2aa;
    border: 2px solid #20b2aa;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.edit-profile-btn:hover {
    background: #20b2aa;
    color: white;
}

/* Profile Sections */
.profile-section {
    margin-bottom: 30px;
    background: rgba(31, 41, 55, 0.5);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #374151;
}

.section-title {
    color: #20b2aa;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Profile Map */
.profile-map {
    height: 400px;
    border-radius: 8px;
    border: 1px solid #374151;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.stat-box {
    background: rgba(32, 178, 170, 0.1);
    border: 2px solid #20b2aa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #20b2aa;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Horizontal Scroll Container */
.horizontal-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    margin: -5px;
    padding: 5px;
}

.observation-cards-scroll {
    display: flex;
    gap: 15px;
    padding-bottom: 10px;
}

.profile-observation-card {
    min-width: 200px;
    max-width: 200px;
    background: rgba(17, 24, 39, 0.7);
    border-radius: 8px;
    border: 2px solid #374151;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.profile-observation-card:hover {
    transform: translateY(-5px);
    border-color: #20b2aa;
    box-shadow: 0 8px 20px rgba(32, 178, 170, 0.3);
}

.profile-card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.profile-card-placeholder {
    width: 100%;
    height: 150px;
    background: rgba(32, 178, 170, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.profile-card-content {
    padding: 12px;
}

.profile-card-name {
    font-weight: 600;
    color: #f3f4f6;
    font-size: 0.95rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-card-scientific {
    font-size: 0.8rem;
    color: #d1d5db;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-card-date {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Highlighted Species Grid */
.highlighted-species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Trophy Shelf */
.trophy-shelf {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.trophy-card-small {
    min-width: 150px;
    background: rgba(17, 24, 39, 0.7);
    border-radius: 8px;
    border: 2px solid #374151;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.trophy-card-small:hover {
    transform: translateY(-5px);
    border-color: #20b2aa;
}

.trophy-card-small.earned {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.trophy-card-small.earned .trophy-icon {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.trophy-card-small.progress {
    opacity: 0.7;
}

.trophy-card-small .trophy-icon {
    font-size: 8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    z-index: 2;
}

.trophy-icon img {
    width: 200px !important;
    height: 200px !important;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.trophy-card:hover .trophy-icon img {
    transform: scale(1.1);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

.trophy-card-small .trophy-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 5px;
}

.trophy-progress-indicator {
    font-size: 0.75rem;
    color: #20b2aa;
    margin-top: 5px;
}

/* Star Button */
.star-button {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #ffd700;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.star-button:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.1);
}

/* Star button in card view - top right */
.observation-card {
    position: relative;
}

.observation-card .star-button.card-star {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Star button in list view - middle right */
.observation-row {
    position: relative;
}

.observation-row-actions {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Edit Button */
.edit-button {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #20b2aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.edit-button:hover {
    background: rgba(32, 178, 170, 0.3);
    transform: scale(1.1);
}

/* Edit button in card view - bottom right */
.observation-card .edit-button.card-edit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
}

/* Share Profile Button */
.share-profile-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #20b2aa, #1a9b94);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.3);
}

.share-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 178, 170, 0.5);
}

/* Share Modal Specific Styles */
.share-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.share-option-btn {
    flex: 1;
    padding: 15px;
    background: rgba(32, 178, 170, 0.2);
    color: #20b2aa;
    border: 2px solid #20b2aa;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-option-btn:hover {
    background: #20b2aa;
    color: white;
}

.share-preview {
    margin-top: 20px;
}

.share-card {
    background: linear-gradient(135deg, #1a1f3a 0%, #0b1020 100%);
    border: 2px solid #20b2aa;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.share-card h3 {
    color: #20b2aa;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.share-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0;
}

.share-stats div {
    color: #e5e7eb;
}

.share-stats strong {
    display: block;
    font-size: 2rem;
    color: #20b2aa;
    margin-bottom: 5px;
}

/* Mobile Responsiveness for Profile Page */
@media (max-width: 768px) {
    .profile-header-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .highlighted-species-grid {
        grid-template-columns: 1fr;
    }

    .share-options {
        flex-direction: column;
    }

    .profile-username {
        font-size: 1.4rem;
    }
}

/* ==================== SOCIAL PAGE STYLES ==================== */

.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc2626;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

.social-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #374151;
    flex-wrap: wrap;
}

.social-tab {
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-tab i {
    font-size: 18px;
}

.social-tab:hover {
    color: #20b2aa;
}

.social-tab.active {
    color: #20b2aa;
    border-bottom-color: #20b2aa;
}

.tab-badge {
    background: #dc2626;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    margin-left: 6px;
}

.social-tab-content {
    display: none;
}

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

.search-section {
    margin-bottom: 20px;
}

.search-section h3 {
    color: #20b2aa;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.search-input {
    width: 100%;
    padding: 12px;
    background: #1f2937;
    border: 2px solid #374151;
    border-radius: 8px;
    color: #e5e7eb;
    font-size: 14px;
    margin-bottom: 15px;
}

.search-input:focus {
    outline: none;
    border-color: #20b2aa;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-result,
.friend-card,
.request-card {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.user-result:hover,
.friend-card:hover {
    background: #374151;
    transform: translateX(5px);
}

.user-avatar,
.friend-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #374151;
}

.user-info,
.friend-info {
    flex: 1;
}

.user-name,
.friend-name {
    color: #e5e7eb;
    font-weight: 600;
    font-size: 16px;
}

.user-meta,
.friend-meta {
    color: #9ca3af;
    font-size: 13px;
    margin-top: 4px;
}

.user-actions,
.friend-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #20b2aa;
    color: white;
}

.btn-primary:hover {
    background: #1a9b94;
    transform: scale(1.05);
}

.btn-secondary {
    background: #374151;
    color: #e5e7eb;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-pending {
    background: #fbbf24;
    color: #111827;
}

.requests-list,
.friends-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.activity-controls {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

.settings-btn {
    padding: 10px 20px;
    background: #374151;
    color: #e5e7eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.settings-btn:hover {
    background: #4b5563;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 15px;
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #374151;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.activity-user {
    color: #20b2aa;
    font-weight: 600;
}

.activity-time {
    color: #9ca3af;
    font-size: 12px;
}

.activity-text {
    color: #e5e7eb;
    margin-bottom: 8px;
}

.activity-observation {
    background: #111827;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
}

.activity-species {
    color: #20b2aa;
    font-weight: 600;
    margin-bottom: 5px;
}

.activity-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 8px;
}

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

.preference-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
}

.preference-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preference-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: #374151;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.preference-toggle.active {
    background: #20b2aa;
}

.preference-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.preference-toggle.active::after {
    transform: translateX(24px);
}

/* ID Confirmation Modal Styles */
#idModal {
    z-index: 1100;
}

.id-section {
    margin-bottom: 20px;
}

.current-id-box {
    background: #1f2937;
    border: 2px solid #20b2aa;
    border-radius: 8px;
    padding: 15px;
}

.id-species-name {
    color: #20b2aa;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.id-common-name {
    color: #e5e7eb;
    font-size: 16px;
    margin-bottom: 10px;
}

.id-details {
    color: #9ca3af;
    font-size: 14px;
}

.id-action-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

/* Witness Badge Styles */
.witness-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 2px;
}

.witness-badge:hover {
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.witness-badge-icon {
    font-size: 14px;
}

/* Witness Modal Styles */
.witness-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
}

.witness-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.witness-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.witness-username {
    font-weight: 600;
    color: #333;
}

.witness-date {
    font-size: 12px;
    color: #666;
}

.no-witnesses {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Smaller remove friend button */
.remove-friend-btn {
    display: inline-block !important;
    width: auto !important;
    max-width: 120px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    margin: 0 !important;
}

/* Friend profile actions container */
#friendProfileActions {
    display: inline-block;
    width: auto;
    text-align: left;
    padding: 10px;
    margin: 0 0 20px 0;
}

.confirmation-item {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.confirmation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.confirmation-species {
    color: #20b2aa;
    font-weight: 600;
}

.confirmation-count {
    background: #20b2aa;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.confirmation-users {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.confirmation-user {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #111827;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirmation-user:hover {
    background: #374151;
}

.confirmation-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.confirmation-user-name {
    color: #e5e7eb;
    font-size: 13px;
}

.suggestion-item-card {
    background: #1f2937;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.suggestion-species {
    color: #fbbf24;
    font-weight: 600;
}

.suggestion-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.suggestion-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.id-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #20b2aa;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.id-badge:hover {
    background: #1a9b94;
    transform: scale(1.05);
}

.id-badge-icon {
    font-size: 14px;
}

/* User Profile Modal Styles */
.view-profile-header {
    margin-bottom: 20px;
}

.view-cover-photo {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: -40px;
}

/* Gradually increase height as screen gets wider */
@media (min-width: 900px) {
    .view-cover-photo {
        height: 280px;
    }
}

@media (min-width: 1100px) {
    .view-cover-photo {
        height: 320px;
    }
}

@media (min-width: 1300px) {
    .view-cover-photo {
        height: 360px;
    }
}

@media (min-width: 1500px) {
    .view-cover-photo {
        height: 400px;
    }
}

.view-profile-info {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 0 20px;
}

.view-profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #111827;
    object-fit: cover;
    background: #374151;
}

.view-profile-details {
    flex: 1;
    padding-bottom: 10px;
}

.friendship-status {
    color: #9ca3af;
    font-size: 14px;
    margin-top: 5px;
}

.friend-actions-bar {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: #1f2937;
    border-radius: 8px;
}

.friend-actions-bar button {
    flex: 1;
}

.mutual-friends-section {
    margin: 20px 0;
    padding: 15px;
    background: #1f2937;
    border-radius: 8px;
}

.mutual-friends-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mutual-friend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #111827;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mutual-friend-item:hover {
    background: #374151;
}

.mutual-friend-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.mutual-friend-name {
    color: #e5e7eb;
    font-size: 14px;
}

.view-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.view-stat-box {
    background: rgba(31, 41, 55, 0.7);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.view-stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #20b2aa;
    margin-bottom: 4px;
}

.view-stat-label {
    font-size: 0.85rem;
    color: #9ca3af;
}

.friends-banner-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(32, 178, 170, 0.1);
    border: 1px solid #20b2aa;
    border-radius: 8px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.friends-banner-box:hover {
    background: rgba(32, 178, 170, 0.2);
    transform: translateY(-2px);
}

.friends-banner-content {
    display: flex;
    align-items: center;
}

.friends-banner-text {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.friends-banner-number {
    font-size: 1.4rem;
    font-weight: bold;
    color: #20b2aa;
}

.friends-banner-label {
    font-size: 0.95rem;
    color: #e5e7eb;
}

.friends-banner-action {
    color: #20b2aa;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
}

.user-observations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.user-observation-card {
    background: #1f2937;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-observation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.user-observation-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #374151;
}

.user-observation-info {
    padding: 10px;
}

.user-observation-species {
    color: #20b2aa;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.user-observation-date {
    color: #9ca3af;
    font-size: 11px;
}

@media (max-width: 768px) {
    .social-tabs {
        gap: 5px;
    }

    .social-tab {
        padding: 10px 12px;
        font-size: 12px;
    }

    .user-result,
    .friend-card,
    .request-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-actions,
    .friend-actions {
        width: 100%;
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    .view-stats-row {
        grid-template-columns: 1fr;
    }

    .user-observations-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .friend-actions-bar {
        flex-direction: column;
    }
}