/* Ponnuri Book Main Stylesheet */

/* ============================================
   CSS Variables (Custom Properties)
   ============================================ */
:root {
    /* Color Palette */
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --success-color: #2ecc71;
    --info-color: #17a2b8;
    
    /* Theme Colors */
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #fff;
    --text-muted: #999;
    --text-link: #3498db;
    --text-link-hover: #2980b9;
    
    --bg-primary: #f8f9fa;
    --bg-secondary: #f8f9fa;
    --bg-header: #ffffff;
    --bg-footer: #2c3e50;
    --primary-bg: rgba(52, 152, 219, 0.1);
    
    /* Border & Shadows */
    --border-color: #ddd;
    --border-light: #eee;
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 15px;
    
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 15px 40px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Gradients */
    --gradient-primary: linear-gradient(45deg, #3498db, #2ecc71);
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Z-Index */
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-chatbot: 1040;
    --z-modal: 1050;
    --z-dropdown: 1060;
}
.page-body > * {
    width: 100%;
}
/* ============================================
   Reset and Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--text-link-hover);
    text-decoration: underline;
}

/* ============================================
   Layout Containers
   ============================================ */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* ============================================
   Header & Navigation
   ============================================ */
.main-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background-color: var(--bg-header);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    text-decoration: none;
}
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-family: var(--font-primary);
    font-weight: 700;
}

.logo-subtext {
    font-size: 0.875rem;
    opacity: 0.8;
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-link i {
    margin-right: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background-color: var(--primary-bg);
}

/* ============================================
   User & Notification Components
   ============================================ */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar i {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
}

.notification-bell {
    position: relative;
    padding: 0.5rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
}

.notification-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--danger-color);
    color: white;
    font-size: 0.75rem;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* ============================================
   Cards
   ============================================ */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 20px;
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
    padding: 15px 20px;
    font-weight: 600;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

.card-title {
    margin-bottom: 0;
    font-size: 1.25rem;
    color: var(--text-light);
}

.card-body {
    padding: 20px;
}

.card-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius) !important;
}

/* ============================================
   Stats Cards
   ============================================ */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: var(--gradient-primary);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

.widget {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.widget-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.widget-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.widget-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* ============================================
   Forms
   ============================================ */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
}

.search-form {
    position: relative;
}

.search-form .form-control {
    padding-right: 40px;
}

.search-form .btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    border: none;
    background: none;
    color: var(--text-secondary);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    border-radius: var(--border-radius);
    padding: 8px 20px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
}

/* ============================================
   Tables
   ============================================ */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background: white;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

/* ============================================
   Badges & Alerts
   ============================================ */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-primary {
    background-color: var(--primary-color);
}

.badge-success {
    background-color: var(--secondary-color);
}

.badge-warning {
    background-color: var(--warning-color);
}

.badge-danger {
    background-color: var(--danger-color);
}

.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

.alert-dismissible .btn-close {
    padding: 1rem;
}

/* ============================================
   Main Content & Page Structure
   ============================================ */
main {
    min-height: calc(100vh - 300px);
    padding: 2rem 0;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
}

/* ============================================
   Footer
   ============================================ */
.main-footer {
    background-color: var(--bg-footer);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    margin-top: 60px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-heading {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    margin-top: 0.25rem;
    color: var(--primary-color);
}

.newsletter-form {
    margin-top: 1.5rem;
}

.newsletter-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: white;
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    filter: brightness(90%);
    transform: translateY(-3px);
}

/* ============================================
   AI Chatbot
   ============================================ */
.ai-chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 100px;
    z-index: var(--z-chatbot);
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    font-size: 1.5rem;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.chatbot-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-window.show {
    display: flex;
}

.chatbot-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.btn-close-chatbot {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.btn-close-chatbot:hover {
    opacity: 1;
}

.chatbot-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: var(--bg-secondary);
}

.chatbot-message {
    margin-bottom: 1rem;
    max-width: 80%;
}

.chatbot-message.user {
    margin-left: auto;
}

.chatbot-message.bot {
    margin-right: auto;
}

.message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    position: relative;
    word-wrap: break-word;
}

.user .message-bubble {
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.bot .message-bubble {
    background-color: white;
    color: var(--text-primary);
    border-bottom-left-radius: 0.25rem;
    box-shadow: var(--shadow-sm);
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-align: right;
}

.chatbot-input {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background-color: white;
    display: flex;
    gap: 0.5rem;
}

.chatbot-input .form-control {
    flex: 1;
}

.chatbot-input .btn {
    min-width: 40px;
}

/* ============================================
   Loading States
   ============================================ */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   Profile Cards
   ============================================ */
.profile-card {
    text-align: center;
    padding: 20px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-role {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* ============================================
   Charts Container
   ============================================ */
.chart-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

/* ============================================
   Social Feed
   ============================================ */
.post-card {
    margin-bottom: 30px;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.post-author {
    font-weight: 600;
    margin-bottom: 3px;
}

.post-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.post-content {
    margin-bottom: 15px;
}

.post-actions {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.comment-box {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 15px;
}

.comment-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.comment-item:last-child {
    border-bottom: none;
}

/* ============================================
   Social Module Styles
   ============================================ */
.social-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.social-wrapper {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Social Navigation */
.social-nav {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-logo h2 {
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.social-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.social-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 0.95rem;
}

.social-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.social-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Social Content */
.social-content {
    display: flex;
    min-height: calc(100vh - 150px);
}

/* Left Sidebar */
.social-sidebar-left {
    width: 250px;
    border-right: 1px solid #eee;
    padding: 20px;
    background: #f8f9fa;
}

.user-profile-summary {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-color);
}

.user-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.user-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.user-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.sidebar-menu {
    margin-top: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.menu-item:hover {
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
}

.menu-item.active {
    background: var(--primary-color);
    color: white;
}

.menu-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Main Feed */
.social-main {
    flex: 1;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Create Post */
.create-post {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.post-input-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.post-input {
    flex: 1;
    border: none;
    resize: none;
    font-size: 1rem;
    min-height: 60px;
    padding: 10px;
    border-radius: 10px;
    background: #f8f9fa;
}

.post-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.media-options {
    display: flex;
    gap: 15px;
}

.media-option {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.media-option:hover {
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
}

.media-option i {
    font-size: 1.2rem;
}

.post-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Post Feed */
.post-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.post-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.post-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.post-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.post-author-info {
    flex: 1;
}

.post-author-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #888;
}

.post-privacy {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-options {
    position: relative;
}

.post-menu-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s;
}

.post-menu-btn:hover {
    background: #f0f0f0;
}

.post-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    z-index: var(--z-dropdown);
    display: none;
}

.post-menu.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.menu-item-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.menu-item-btn:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.post-content {
    margin-bottom: 15px;
}

.post-text {
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.post-media {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.post-media img,
.post-media video {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: #f8f9fa;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 5px;
}

.media-grid-item {
    aspect-ratio: 1;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
}

.media-grid-item img,
.media-grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.likes-count,
.comments-count,
.shares-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
}

.likes-count:hover,
.comments-count:hover,
.shares-count:hover {
    color: var(--primary-color);
}

.post-actions-bar {
    display: flex;
    justify-content: space-around;
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #666;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    justify-content: center;
}

.post-action-btn:hover {
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
}

.post-action-btn.active {
    color: var(--primary-color);
    background: rgba(52, 152, 219, 0.1);
}

.post-action-btn.liked {
    color: #e74c3c;
}

.post-action-btn i {
    font-size: 1.1rem;
}

/* Comments Section */
.comments-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.comment-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 10px 15px;
    resize: none;
    font-size: 0.95rem;
    min-height: 40px;
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    display: flex;
    gap: 12px;
}

.comment-content {
    flex: 1;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 12px 15px;
    position: relative;
}

.comment-author {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.comment-text {
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
}

.comment-like-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 5px;
    transition: all 0.3s;
}

.comment-like-btn:hover {
    color: #e74c3c;
}

.comment-like-btn.liked {
    color: #e74c3c;
}

.comment-reply-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 5px;
    transition: all 0.3s;
}

.comment-reply-btn:hover {
    color: var(--primary-color);
}

.replies {
    margin-left: 50px;
    margin-top: 10px;
    padding-left: 15px;
    border-left: 2px solid #eee;
}

/* Right Sidebar */
.social-sidebar-right {
    width: 300px;
    border-left: 1px solid #eee;
    padding: 20px;
    background: #f8f9fa;
}

.online-friends {
    margin-bottom: 30px;
}

.section-title {
    color: var(--dark-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    font-size: 1.1rem;
}

.online-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.online-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
}

.online-user:hover {
    background: rgba(52, 152, 219, 0.1);
}

.online-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
}

.online-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 2px solid white;
}

.online-name {
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.95rem;
}

/* Trending Topics */
.trending-topics {
    margin-bottom: 30px;
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
}

.topic-item:hover {
    background: rgba(52, 152, 219, 0.1);
}

.topic-name {
    font-weight: 500;
    color: var(--dark-color);
}

.topic-count {
    background: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Upcoming Events */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    cursor: pointer;
}

.event-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-date {
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
}

.event-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.event-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.event-actions {
    display: flex;
    gap: 10px;
}

/* Media Viewer */
.media-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.media-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.media-content img,
.media-content video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

.media-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.media-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.media-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.media-prev {
    left: 20px;
}

.media-next {
    right: 20px;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rounded-circle {
    border-radius: 50% !important;
}

.cursor-pointer {
    cursor: pointer;
}

.user-select-none {
    user-select: none;
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-sm {
    box-shadow: var(--box-shadow) !important;
}

.rounded-lg {
    border-radius: 15px !important;
}

.hover-lift:hover {
    transform: translateY(-5px);
    transition: var(--transition);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .no-print {
        display: none !important;
    }
    
    .main-header,
    .main-footer,
    .back-to-top,
    .ai-chatbot-container {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* ============================================
   High Contrast Mode
   ============================================ */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-primary: #000000;
        --text-secondary: #333333;
    }
    
    .card {
        border: 2px solid var(--border-color);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .social-sidebar-right {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .social-sidebar-left {
        width: 200px;
    }
    
    .social-sidebar-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        padding: 10px 0;
    }
    
    .nav-link {
        padding: 10px !important;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-responsive {
        margin-bottom: 20px;
    }
    
    /* Social Module Mobile */
    .social-container {
        padding: 10px;
    }
    
    .social-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-search {
        max-width: 100%;
    }
    
    .social-content {
        flex-direction: column;
    }
    
    .social-sidebar-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .user-profile-summary {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
    }
    
    .user-avatar-large {
        margin: 0;
        width: 60px;
        height: 60px;
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .menu-item {
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }
    
    .post-input-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .post-avatar {
        align-self: flex-start;
    }
    
    .post-input {
        min-height: 50px;
    }
    
    .post-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .media-options {
        width: 100%;
        justify-content: space-between;
    }
    
    .post-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .social-wrapper {
        border-radius: 10px;
    }
    
    .social-nav {
        padding: 10px 15px;
    }
    
    .social-main {
        padding: 15px;
    }
    
    .create-post,
    .post-card {
        padding: 15px;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .post-author-avatar {
        margin-right: 0;
    }
    
    .post-actions-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-action-btn {
        justify-content: flex-start;
    }
    
    .comment-item {
        flex-direction: column;
    }
    
    .comment-avatar {
        align-self: flex-start;
    }
    
    .replies {
        margin-left: 20px;
    }
}

/* ============================================
   Dark Mode for Social
   ============================================ */
[data-theme="dark"] .social-container {
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
}

[data-theme="dark"] .social-wrapper {
    background: #2d3436;
}

[data-theme="dark"] .social-sidebar-left {
    background: #3d4448;
    border-right-color: #404040;
}

[data-theme="dark"] .user-name {
    color: #e0e0e0;
}

[data-theme="dark"] .user-title {
    color: #b0b0b0;
}

[data-theme="dark"] .menu-item {
    color: #b0b0b0;
}

[data-theme="dark"] .post-input {
    background: #3d4448;
    color: #e0e0e0;
}

[data-theme="dark"] .post-card {
    background: #3d4448;
}

[data-theme="dark"] .post-author-name {
    color: #e0e0e0;
}

[data-theme="dark"] .post-text {
    color: #e0e0e0;
}

[data-theme="dark"] .comment-content {
    background: #2d3436;
}

[data-theme="dark"] .comment-author {
    color: #e0e0e0;
}

[data-theme="dark"] .comment-text {
    color: #e0e0e0;
}

/* Skip to Content */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 9999;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 0;
}
.chatbot-window { display: none; }
.chatbot-window.show { display: flex; flex-direction: column; }
.typing-dots span { animation: typing 1.4s infinite; }
@keyframes typing { 0%,80%,100% { transform: scale(0); } 40% { transform: scale(1); } }