/* --- VARIABLES & RESET --- */
:root {
    --primary: #00e5ff; /* Vibrant Cyan */
    --primary-dark: #00b3cc;
    --bg-dark: #0a0e17; /* Deep premium dark blue/black */
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-light: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- UTILITIES --- */
.glass {
    background: rgba(10, 14, 23, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
}
.glass-panel {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}
.glass-panel-light {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 15px;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
button {
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    transition: var(--transition);
}

.primary-btn {
    background: var(--primary);
    color: #000;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}
.primary-btn:hover {
    background: #00b3cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.3);
}

.profile-oval-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.profile-oval-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.profile-dropdown {
    position: relative;
    display: inline-block;
}
/* Kapsayıcıya eklenen şeffaf köprü, imlecin aradaki boşlukta düşmesini engeller */
.profile-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}
.profile-dropdown-content {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px); /* Butondan sadece 10px aşağıda başlar */
    background: rgba(15, 23, 42, 0.95);
    min-width: 180px;
    border-radius: 15px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transform: translateY(-10px);
    transition: all 0.3s ease;
}
.profile-dropdown:hover .profile-dropdown-content {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}
.profile-dropdown-content a {
    color: var(--text-light);
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
}
.profile-dropdown-content a:hover {
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary);
}
.profile-dropdown-content a i {
    font-size: 1.2rem;
}
.primary-btn.fluid {
    width: 100%;
}

.icon-btn {
    color: var(--text-main);
    font-size: 1.25rem;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
}
.icon-btn:hover {
    background: var(--bg-card-hover);
    color: var(--primary);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}
.logo i {
    color: var(--primary);
    font-size: 2rem;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5% 50px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?q=80&w=2075&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
}
.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}
.orb-2 {
    width: 300px;
    height: 300px;
    background: #4f46e5;
    bottom: 100px;
    left: -100px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}
.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 50px;
}

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

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    border-radius: 50px;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}
.search-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    text-align: left;
}
.search-group i {
    font-size: 1.5rem;
    color: var(--primary);
}
.input-wrap label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}
.input-wrap input, .input-wrap select {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    width: 100%;
}
.input-wrap select option {
    background: var(--bg-dark);
}
.divider {
    width: 1px;
    height: 40px;
    background: var(--border-glass-light);
}
.search-btn {
    background: var(--primary);
    color: #000;
    border-radius: 50px;
    padding: 15px 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}
.search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* --- LISTINGS SECTION --- */
.listings-section {
    padding: 80px 5%;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
}
.view-all {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}
.view-all:hover {
    text-decoration: underline;
}

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

/* Property Card */
.property-card {
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}
.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--border-glass-light);
}
.property-img-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
}
.property-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.property-card:hover .property-img-wrap img {
    transform: scale(1.1);
}
.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-glass);
}
.fav-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.fav-btn:hover, .fav-btn.active {
    background: rgba(239, 68, 68, 0.8);
    color: white;
    border-color: transparent;
}
.property-info {
    padding: 20px;
}
.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}
.property-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.property-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}
.property-features {
    display: flex;
    gap: 15px;
    border-top: 1px solid var(--border-glass);
    padding-top: 15px;
}
.feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.feature i {
    color: var(--text-main);
}

/* --- CHAT INTERFACE (WhatsApp Style) --- */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.4);
    z-index: 998;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.floating-chat-btn:hover {
    transform: scale(1.1);
}
.unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
}

.chat-overlay {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    height: 500px;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
    transform-origin: bottom right;
}
.chat-overlay.expanded {
    width: 750px;
}
.chat-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-window {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row; /* Changed to row for sidebar */
    overflow: hidden;
}

/* Chat Sidebar */
.chat-sidebar {
    width: 280px;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
}
.chat-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-glass);
}
.chat-sidebar-header h3 {
    font-size: 1.1rem;
    margin: 0;
}
.chat-list {
    flex: 1;
    overflow-y: auto;
}
.chat-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}
.chat-list-item:hover, .chat-list-item.active {
    background: var(--bg-card-hover);
}
.chat-list-item .contact-avatar {
    font-size: 2.2rem;
}
.chat-list-info {
    flex: 1;
    overflow: hidden;
}
.chat-list-info h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-list-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-list-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Chat Main */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close-chat {
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.close-chat:hover {
    color: #ef4444;
    transform: scale(1.1);
}
.chat-contact {
    display: flex;
    align-items: center;
    gap: 12px;
}
.contact-avatar {
    position: relative;
    font-size: 2.5rem;
    color: var(--primary);
}
.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
}
.contact-info h3 {
    font-size: 1rem;
    margin: 0;
}
.contact-info span {
    font-size: 0.8rem;
    color: #10b981;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}
.message {
    max-width: 85%;
    display: flex;
    flex-direction: column;
}
.message.received {
    align-self: flex-start;
}
.message.sent {
    align-self: flex-end;
    align-items: flex-end;
}
.msg-content {
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 0.95rem;
}
.message.received .msg-content {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-bottom-left-radius: 4px;
}
.message.sent .msg-content {
    background: var(--primary);
    color: #000;
    border-bottom-right-radius: 4px;
}
.msg-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    margin-left: 5px;
    margin-right: 5px;
}

/* Chat Property Attachment */
.chat-property-attachment {
    background: rgba(0,0,0,0.4);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
    width: 200px;
    border: 1px solid rgba(255,255,255,0.1);
}
.chat-property-attachment img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}
.chat-property-info {
    padding: 8px;
}
.chat-property-title {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-property-price {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: bold;
}
.message.sent .chat-property-attachment {
    background: rgba(0,0,0,0.1);
    border-color: rgba(0,0,0,0.2);
}
.message.sent .chat-property-price {
    color: #000;
}

.chat-footer {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 10px;
}
#chatInput {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 10px 15px;
    border-radius: 20px;
    color: var(--text-main);
    outline: none;
}
.send-btn {
    background: var(--primary);
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* --- LISTING DETAIL MODAL --- */
.detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.detail-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.detail-modal-content {
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    transform: translateY(30px);
    transition: var(--transition);
}
.detail-modal-overlay.active .detail-modal-content {
    transform: translateY(0);
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
}
.close-modal:hover {
    background: var(--primary);
    color: #000;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.main-image-container {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}
.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-video-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}
.play-video-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateX(-50%) scale(1.05);
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}
.thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    object-fit: cover;
    border: 2px solid transparent;
}
.thumb:hover, .thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

.detail-badge {
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
}
.detail-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0 25px;
}
.detail-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}
.detail-description {
    margin-bottom: 30px;
}
.detail-description h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: white;
}
.detail-description p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Mortgage Calculator */
.mortgage-calc {
    margin-bottom: 30px;
}
.mortgage-calc h3 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}
.calc-row {
    margin-bottom: 15px;
}
.calc-row label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.calc-row input[type="range"] {
    width: calc(100% - 50px);
    accent-color: var(--primary);
}
.calc-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 12px 15px;
    border-radius: 10px;
    margin-top: 15px;
}
.calc-result strong {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Favorites List in Modal */
.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}
.fav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: var(--transition);
}
.fav-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}
.fav-item img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}
.fav-item-info {
    flex: 1;
}
.fav-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
}
.fav-item-price {
    font-size: 0.85rem;
    color: var(--primary);
}
.empty-favorites {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}
.empty-favorites i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 900px) {
    .chat-overlay.expanded {
        width: 360px;
    }
    .chat-sidebar {
        display: none; /* Hide sidebar on mobile */
    }
    .detail-layout {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .search-bar {
        flex-direction: column;
        border-radius: 20px;
    }
    .divider {
        width: 100%;
        height: 1px;
    }
}

/* --- ADMIN MODALS & TABLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--bg-dark);
    border-radius: 20px;
    padding: 30px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-glass);
}
.close-modal {
    font-size: 1.5rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
}
.close-modal:hover {
    color: var(--primary);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th, .data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}
.data-table th {
    color: var(--text-muted);
    font-weight: 500;
}

/* --- SLIDER BUTTONS --- */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 14, 23, 0.7);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}
.slider-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}
.prev-btn {
    left: 10px;
}
.next-btn {
    right: 10px;
}

/* Message Actions Dropdown */
.message {
    position: relative;
}
.msg-actions-dropdown {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--transition);
}
.message:hover .msg-actions-dropdown {
    opacity: 1;
}
.message.sent .msg-actions-dropdown {
    right: 100%;
    margin-right: 5px;
}
.message.received .msg-actions-dropdown {
    left: 100%;
    margin-left: 5px;
}
.msg-actions-btn {
    background: transparent;
    border: none;
    color: inherit;
    opacity: 0.6;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 2px;
    transition: var(--transition);
}
.msg-actions-btn:hover {
    opacity: 1;
}
.msg-actions-menu {
    position: absolute;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 5px;
    display: none;
    flex-direction: column;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    min-width: 110px;
    backdrop-filter: blur(10px);
}
.message.sent .msg-actions-menu {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 5px;
}
.message.received .msg-actions-menu {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 5px;
}
.msg-actions-dropdown:hover .msg-actions-menu {
    display: flex;
}
.msg-actions-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: white;
    text-align: left;
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}
.msg-actions-menu button:hover {
    background: rgba(255, 255, 255, 0.1);
}
.msg-actions-menu button.delete-btn {
    color: #ef4444;
}
.msg-actions-menu button.delete-btn:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* WhatsApp Floating Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}
