/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
    /* Color Palette: Warm, trustworthy, soft */
    --clr-bg: #FFF8F0; /* Soft beige/peach background */
    --clr-surface: #FFFFFF; /* Pure white for cards */
    --clr-primary: #FF8F6B; /* Soft Coral/Peach - welcoming */
    --clr-primary-light: #FFD3C4;
    --clr-primary-dark: #E67A55;
    --clr-secondary: #FFB347; /* Warm Orange for highlights */
    --clr-accent: #81D4FA; /* Gentle Blue for trust */
    --clr-success: #A5D6A7; /* Soft Mint Green for success/trust */
    
    /* Text Colors */
    --clr-text-main: #5D4A44; /* Soft brown, less harsh than black */
    --clr-text-muted: #9C8983;

    /* Shadow & Shapes */
    --shadow-soft: 0 12px 30px rgba(255, 143, 107, 0.08);
    --shadow-hover: 0 16px 40px rgba(255, 143, 107, 0.15);
    --radius-round: 50px;
    --radius-card: 28px;
    --radius-sm: 12px;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- RESET & TYPOGRAPHY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 800;
    color: var(--clr-text-main);
    margin-bottom: 0.5rem;
}

p {
    color: var(--clr-text-muted);
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- BUTTONS --- */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-round);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: white;
    box-shadow: 0 6px 16px rgba(255, 143, 107, 0.3);
}

.btn-primary:hover {
    background-color: var(--clr-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 143, 107, 0.4);
}

.btn-secondary {
    background-color: var(--clr-secondary);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
}

.btn-outline:hover {
    background-color: var(--clr-primary-light);
    color: var(--clr-primary-dark);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.15rem;
}

/* --- NAVBAR --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--clr-primary);
    cursor: pointer;
}

.logo i {
    font-size: 2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--clr-text-muted);
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--clr-primary);
}

.nav-link.active {
    color: var(--clr-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--clr-primary);
    border-radius: 3px;
}

/* Header Profile Button Animation */
.profile-header-btn {
    padding: 5px 12px 5px 5px;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.profile-header-btn:hover {
    background: #fdfdfd;
    border: 1px solid #ebebeb;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* --- VIEWS CONTAINER --- */
.main-content {
    max-width: 1200px;
    margin: 20px auto 60px;
    padding: 0 20px;
    min-height: calc(100vh - 100px);
}

.view {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.view.active-view {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HOME HERO SECTION --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
    min-height: calc(100vh - 140px); /* Vertically centers the content taking full screen height */
}

.hero-text {
    flex: 1;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--clr-text-main);
}

.hero-text h1 span {
    color: var(--clr-primary);
    position: relative;
}

/* Hand-drawn underline effect */
.hero-text h1 span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 12px;
    background-color: var(--clr-primary-light);
    bottom: 5px;
    left: 0;
    z-index: -1;
    border-radius: 10px;
    transform: rotate(-1deg);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 35px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image-blob {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, var(--clr-primary-light), #FFEAD9);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: blobMove 10s ease-in-out infinite alternate;
}

@keyframes blobMove {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

.hero-image-blob i {
    font-size: 10rem;
    color: var(--clr-primary);
    filter: drop-shadow(0 15px 20px rgba(255,143,107,0.3));
    margin: 0 -20px;
}

/* Features List on Home */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px; /* Reduced gap since the hero is now taller */
    margin-bottom: 100px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Premium Apple-like Reveal */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(120px) scale(0.95);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1); /* Custom ease-out */
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.feature-card {
    background: var(--clr-surface);
    padding: 30px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--clr-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 2rem;
    color: var(--clr-primary);
}

/* --- FOOTER --- */
.home-footer {
    text-align: center;
    padding: 60px 20px 40px;
    margin-top: 40px;
    border-top: 1px solid #f0f0f0;
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* --- LISTINGS SECTION --- */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-header h2 {
    font-size: 2.5rem;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background: white;
    border: 2px solid #EBEBEB;
    border-radius: 20px;
    font-family: inherit;
    font-weight: 600;
    color: var(--clr-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
    background: var(--clr-primary-light);
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.pet-card {
    background: var(--clr-surface);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.pet-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.pet-image-container {
    height: 220px;
    background: #f0f0f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #ccc;
}

.pet-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--clr-surface);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 5px;
}

.pet-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.pet-name {
    font-size: 1.4rem;
    font-weight: 800;
}

.pet-gender {
    color: var(--clr-text-muted);
    font-size: 1.2rem;
}

.pet-details {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.pet-detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pet-desc {
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pet-action {
    margin-top: auto;
    width: 100%;
}

/* --- PROFILE SECTION --- */
.profile-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
    padding-top: 40px;
}

.profile-card {
    background: var(--clr-surface);
    border-radius: var(--radius-card);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: var(--clr-primary-light);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--clr-primary);
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.profile-name {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--clr-success);
    color: #1b5e20;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    margin-top: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

.profile-tabs {
    background: var(--clr-surface);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.tab-btn.active {
    color: var(--clr-primary);
    border-bottom: 3px solid var(--clr-primary);
}

.tab-content {
    padding: 30px;
}

.review-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

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

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-author {
    font-weight: 700;
    color: var(--clr-text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #FFB347;
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--clr-surface);
    border-radius: var(--radius-card);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: translateY(30px);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--clr-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-btn:hover {
    color: var(--clr-text-main);
    transform: rotate(90deg);
}

.modal-body-padding {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--clr-text-main);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #EBEBEB;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--clr-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--clr-primary-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.alert-success i {
    font-size: 3rem;
}

/* --- AUTH & POST AD FORMS --- */
.auth-container, .post-ad-container {
    max-width: 500px;
    margin: 50px auto;
    background: var(--clr-surface);
    padding: 40px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.post-ad-container {
    max-width: 700px;
}

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

/* --- DASHBOARD --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}
.application-card {
    background: var(--clr-surface);
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--clr-primary);
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}
.toast {
    background: var(--clr-surface);
    color: var(--clr-text-main);
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.toast.show {
    transform: translateX(0);
    opacity: 1;
}
.toast-icon {
    font-size: 1.5rem;
    color: var(--clr-primary);
}
.toast.success .toast-icon { color: var(--clr-success); }
.toast.error .toast-icon { color: #E53935; }

/* --- MOBILE MENU --- */
.mobile-menu-btn {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--clr-text-main);
}
.mobile-menu {
    display: none;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--clr-text-muted);
}
.empty-state i {
    font-size: 4rem;
    color: #e0e0e0;
    margin-bottom: 15px;
}

/* --- PET DETAIL VIEW --- */
.pet-detail-container {
    background: var(--clr-surface);
    border-radius: var(--radius-card);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.pet-detail-gallery {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pet-detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.pet-detail-specs { display: flex; flex-direction: column; }
.pet-detail-specs h2 { font-size: 2.5rem; margin-bottom: 10px; line-height: 1.2; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.spec-table tr { border-bottom: 1px solid #f0f0f0; }
.spec-table td { padding: 12px 0; font-size: 1rem; }
.spec-table td:first-child { font-weight: 700; color: var(--clr-text-muted); width: 40%; }
.advertiser-card { background: var(--clr-bg); padding: 20px; border-radius: var(--radius-sm); margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.pet-full-desc { background: var(--clr-surface); border-radius: var(--radius-card); padding: 40px; box-shadow: var(--shadow-soft); }

/* --- FILE UPLOAD & AUTH STEPS --- */
.file-upload-dropzone { border: 2px dashed #ccc; border-radius: var(--radius-sm); padding: 40px; text-align: center; cursor: pointer; transition: var(--transition-smooth); margin-bottom: 20px; position: relative; overflow: hidden; }
.file-upload-dropzone:hover { border-color: var(--clr-primary); background: var(--clr-primary-light); }
.file-upload-dropzone img { max-width: 100%; max-height: 200px; border-radius: var(--radius-sm); object-fit: contain; }
.file-input { position: absolute; top:0; left:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.auth-step { display: none; }
.auth-step.active { display: block; animation: fadeIn 0.4s ease; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .profile-container, .pet-detail-container { grid-template-columns: 1fr; }
    
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-btn { display: block; }
    
    .mobile-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--clr-surface);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        gap: 15px;
    }
}
@media (max-width: 600px) {
    .features { grid-template-columns: 1fr; }
    .auth-container, .post-ad-container { padding: 30px 20px; }
    .pet-detail-gallery { height: 300px; }
}

/* --- CHAT WIDGET --- */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: var(--clr-surface);
    border-radius: var(--radius-card);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chat-widget.active { transform: translateY(0); }
.chat-header { background: var(--clr-primary); color: white; padding: 15px 20px; border-radius: var(--radius-card) var(--radius-card) 0 0; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.chat-header button { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }
.chat-actions { padding: 10px; background: #f8f9fa; border-bottom: 1px solid #eee; display: flex; gap: 10px; justify-content: center; align-items: center;}
.chat-body { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: #fcfcfc; }
.chat-bubble { max-width: 80%; padding: 10px 15px; border-radius: 15px; font-size: 0.95rem; line-height: 1.4; word-wrap: break-word; }
.chat-bubble.sent { background: var(--clr-primary-light); color: var(--clr-primary-dark); align-self: flex-end; border-bottom-right-radius: 2px; }
.chat-bubble.received { background: #ebebeb; color: var(--clr-text-main); align-self: flex-start; border-bottom-left-radius: 2px; }
.chat-footer { padding: 15px; border-top: 1px solid #eee; display: flex; gap: 10px; }
.chat-footer input { flex: 1; padding: 10px 15px; border: 1px solid #ccc; border-radius: 20px; outline: none; }
.chat-footer button { background: var(--clr-primary); color: white; border: none; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; }
/* --- NOTIFICATIONS BELL --- */
.notif-wrapper { position: relative; cursor: pointer; display: flex; align-items: center; margin-right: 15px; }
.notif-badge { position: absolute; top: -5px; right: -8px; background: #F44336; color: white; font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 10px; border: 2px solid var(--clr-surface); }
.notif-dropdown { position: absolute; top: 40px; right: -10px; width: 250px; background: var(--clr-surface); border-radius: var(--radius-sm); box-shadow: 0 10px 25px rgba(0,0,0,0.15); display: none; flex-direction: column; z-index: 1000; overflow: hidden; }
.notif-dropdown.active { display: flex; animation: fadeIn 0.3s ease; }
.notif-item { padding: 12px 15px; border-bottom: 1px solid #eee; font-size: 0.9rem; cursor: pointer; transition: background 0.2s; }
.notif-item:hover { background: #f9f9f9; }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { font-weight: 700; background: #e3f2fd; }

/* --- FLOATING CHAT BUTTON --- */
.floating-chat-btn { position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px; background: var(--clr-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 10px 25px rgba(255, 99, 71, 0.4); cursor: pointer; z-index: 999; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.floating-chat-btn:hover { transform: scale(1.1); }
.chat-badge { position: absolute; top: -5px; right: -5px; background: #F44336; color: white; font-size: 0.75rem; font-weight: 800; padding: 2px 8px; border-radius: 10px; border: 3px solid var(--clr-bg); }

.chat-list-item { display: flex; align-items: center; gap: 15px; padding: 15px; border-bottom: 1px solid #eee; cursor: pointer; transition: 0.2s; }
.chat-list-item:hover { background: white; }
.chat-list-avatar { width: 45px; height: 45px; background: var(--clr-primary-light); color: var(--clr-primary-dark); display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; font-size: 1.2rem; }
.chat-list-details { flex: 1; overflow: hidden; }
.chat-list-name { font-weight: 700; margin-bottom: 3px; display: flex; justify-content: space-between;}
.chat-list-name span { font-size: 0.75rem; color: #aaa; font-weight: normal; }
.chat-list-msg { font-size: 0.85rem; color: var(--clr-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.chat-list-unread { width: 10px; height: 10px; background: #F44336; border-radius: 50%; }

@media (max-width: 600px) {
    .chat-widget { width: 100%; height: 100vh; bottom: 0; right: 0; border-radius: 0; }
    .chat-header { border-radius: 0; }
    .floating-chat-btn { width: 50px; height: 50px; font-size: 1.5rem; bottom: 15px; right: 15px; }
}

/* --- IDEAS VIEW (LIGHT THEME) --- */
.ideas-container {
    max-width: 900px;
    margin: 40px auto;
    background: var(--clr-surface);
    color: var(--clr-text-main);
    padding: 40px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.ideas-header h2 { font-size: 2.2rem; margin-bottom: 5px; }
.ideas-header p { color: var(--clr-text-muted); font-size: 0.95rem; margin-bottom: 30px; }

.ideas-form-card { margin-bottom: 10px; }
.ideas-form-card .form-control { background: var(--clr-surface) !important; color: var(--clr-text-main) !important; border: 2px solid #EBEBEB !important; border-radius: 10px !important; }
.ideas-form-card .form-control::placeholder { color: #aaa; }
.ideas-form-card .form-control:focus { border-color: var(--clr-primary) !important; box-shadow: 0 0 0 3px var(--clr-primary-light) !important; }

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