/* Custom CSS for Monir Hasan Website */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --black: #000000;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    padding-top: 76px; /* Account for fixed navbar */
}

.content-wrapper {
    min-height: calc(100vh - 200px);
}

/* Profile Image */
.profile-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-content .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* Feature Boxes */
.feature-box {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

/* Enhanced Round Profile Photo */
.profile-photo-container {
    position: relative;
    display: inline-block;
    margin: 2rem 0;
}

.profile-photo-round {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(102, 126, 234, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #667eea, #764ba2);
    padding: 4px;
}

.profile-photo-round:hover {
    transform: scale(1.05);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 6px rgba(102, 126, 234, 0.5),
        inset 0 0 25px rgba(255, 255, 255, 0.2);
}

.profile-status-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.profile-status-badge i {
    margin-right: 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Wiki-style Bio Styles */
.wiki-bio-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wiki-infobox {
    background: #fff;
    border: 2px solid #c6c9cc;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    width: 100%;
    max-width: 350px;
    float: right;
    margin-left: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wiki-infobox-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    border-radius: 6px 6px 0 0;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.wiki-infobox-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0;
}

.wiki-infobox-row:last-child {
    border-bottom: none;
}

.wiki-infobox-label {
    font-weight: bold;
    min-width: 120px;
    color: #495057;
    font-size: 0.9rem;
}

.wiki-infobox-value {
    flex: 1;
    color: #212529;
    font-size: 0.9rem;
}

.wiki-infobox-image {
    text-align: center;
    margin-bottom: 1rem;
}

.wiki-infobox-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #667eea;
}

.wiki-section {
    margin: 2rem 0;
}

.wiki-section h3 {
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #495057;
}

.wiki-subsection {
    margin: 1.5rem 0;
}

.wiki-subsection h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.wiki-timeline {
    border-left: 3px solid #667eea;
    padding-left: 2rem;
    margin: 1rem 0;
}

.wiki-timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.wiki-timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: #667eea;
    border-radius: 50%;
    border: 3px solid #fff;
}

.wiki-timeline-date {
    font-weight: bold;
    color: #667eea;
    font-size: 0.9rem;
}

.wiki-timeline-content {
    margin-top: 0.5rem;
}

/* Admin CRUD Styles */
.admin-crud-section {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.crud-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.crud-table {
    width: 100%;
    margin-top: 1rem;
}

.crud-table th {
    background: #667eea;
    color: white;
    font-weight: 600;
    border: none;
}

.crud-table td {
    vertical-align: middle;
    border-color: #dee2e6;
}

.crud-actions {
    display: flex;
    gap: 0.5rem;
}

.crud-actions .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.edit-inline {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.5rem;
}

/* Knowledge Base Schema Styles */
.knowledge-base-entry {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.knowledge-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.knowledge-tags {
    margin-top: 1rem;
}

.knowledge-tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.knowledge-metadata {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1);
    background: #0056b3;
}

.chat-toggle i {
    font-size: 24px;
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
}

.message.user-message {
    margin-left: auto;
}

.message.bot-message {
    margin-right: auto;
}

.message-content {
    padding: 10px 15px;
    border-radius: 15px;
    word-wrap: break-word;
}

.user-message .message-content {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message .message-content {
    background: white;
    color: var(--dark-color);
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 5px;
}

.message-time {
    font-size: 11px;
    color: var(--secondary-color);
    text-align: right;
    margin-top: 5px;
}

.user-message .message-time {
    text-align: right;
}

.bot-message .message-time {
    text-align: left;
}

.chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #e9ecef;
}

/* Admin Panel Styles */
.admin-sidebar {
    background: var(--dark-color);
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: #adb5bd;
    padding: 12px 20px;
    margin: 5px 0;
    border-radius: 0;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

.admin-content {
    padding: 30px;
    background: #f8f9fa;
    min-height: 100vh;
}

.stats-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Blog Styles */
.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 20px;
}

.blog-meta {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 10px;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .chat-window {
        width: 300px;
        height: 400px;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 576px) {
    .chat-window {
        width: 280px;
        bottom: 70px;
        right: -10px;
    }
    
    .hero-section {
        padding: 50px 0;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Alert Styles */
.alert-floating {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
}

/* File Upload Styles */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.1);
}

/* Table Styles */
.table-custom {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table-custom th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
    padding: 15px;
}

.table-custom td {
    padding: 15px;
    border-color: #f1f3f4;
}

/* Button Enhancements */
.btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}