/* Neural Junction Platform - Main CSS */

:root {
    --primary-color: #25D366;
    --primary-dark: #128C7E;
    --primary-light: #DCF8C6;
    --secondary-color: #34B7F1;
    --dark-color: #075E54;
    --light-color: #ECE5DD;
    --gray-color: #f8f9fa;
    --text-color: #333;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    transition: all 0.3s ease;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background-color: var(--primary-color);
    position: relative;
}

/* Features Section */
.feature-icon {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Pricing Section */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Contact Form */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(37, 211, 102, 0.25);
}

/* Footer */
footer a:hover {
    color: var(--primary-light) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }
}

/* Admin & Client Login Pages */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-color);
}

.login-card {
    max-width: 400px;
    width: 100%;
}

.login-logo {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Dashboard Styles */
.sidebar {
    min-height: 100vh;
    background-color: var(--dark-color);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.content-wrapper {
    min-height: 100vh;
    background-color: var(--gray-color);
}

.dashboard-card {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.dashboard-card .card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.stat-card {
    border-left: 4px solid var(--primary-color);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(37, 211, 102, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Chat Interface */
.chat-container {
    height: calc(100vh - 56px - 2rem);
    display: flex;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.chat-sidebar {
    width: 300px;
    background-color: white;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--light-color);
}

.chat-header {
    padding: 1rem;
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.chat-input {
    padding: 1rem;
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.message {
    max-width: 75%;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    position: relative;
}

.message-incoming {
    background-color: white;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.message-outgoing {
    background-color: var(--primary-light);
    align-self: flex-end;
    border-top-right-radius: 0;
}

.message-time {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.5);
    text-align: right;
    margin-top: 0.25rem;
}

.contact-list {
    overflow-y: auto;
    height: calc(100% - 56px);
}

.contact-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-item:hover, .contact-item.active {
    background-color: rgba(0, 0, 0, 0.05);
}

.contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.unread-badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

/* Utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

