/* VisionCare BD - Complete Stylesheet Part 1 */
/* Fonts, Base Styles, Accessibility, Navigation */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Bengali:wght@300;400;500;600;700&display=swap');

/* ===== BASE RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --secondary-color: #f093fb;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --info-color: #3B82F6;

    --bg-color: #F8F9FA;
    --surface-color: #FFFFFF;
    --text-primary: #212529;
    --text-secondary: #6C757D;
    --border-color: #DEE2E6;

    --font-primary: 'Inter', sans-serif;
    --font-bangla: 'Noto Sans Bengali', sans-serif;
    --base-font-size: 16px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ===== HIGH CONTRAST MODE ===== */
.high-contrast {
    filter: contrast(1.5);
}

/* ===== BASE STYLES ===== */
body {
    font-family: var(--font-primary);
    font-size: var(--base-font-size);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.text-bangla,
.text-bangla * {
    font-family: var(--font-bangla) !important;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== ACCESSIBILITY BAR ===== */
.accessibility-bar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accessibility-bar button {
    background: none;
    border: 1px solid #DEE2E6;
    cursor: pointer;
    transition: var(--transition-fast);
}

.accessibility-bar button:hover {
    background: #f3f4f6;
    border-color: var(--primary-color);
}

/* ===== NAVIGATION ===== */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* ===== GRADIENTS ===== */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23667eea' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ===== ANIMATIONS ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* ===== CARDS ===== */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    transition: all 0.3s ease;
}

.card-hover:hover .feature-icon {
    transform: scale(1.1);
}

/* ===== TIMER DISPLAY ===== */
.timer-display {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* ===== FEEDBACK SMILEY ===== */
.feedback-smiley {
    transition: all 0.3s ease;
    cursor: pointer;
}

.feedback-smiley:hover {
    transform: scale(1.2);
}

.feedback-smiley.active {
    background: var(--primary-color);
    color: white;
}

/* ===== CHATBOT STYLES ===== */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-window {
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.message {
    margin-bottom: 15px;
    animation: slideIn 0.3s ease;
}

.user-message {
    text-align: right;
}

.bot-message {
    text-align: left;
}

.message-bubble {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message .message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bot-message .message-bubble {
    background: #f3f4f6;
    color: #1f2937;
}

.typing-indicator {
    display: inline-block;
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 12px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background: #9ca3af;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-10px);
    }
}

.quick-action {
    transition: all 0.2s ease;
    cursor: pointer;
}

.quick-action:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.chat-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    border: none;
}

.chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

/* ===== CALENDAR STYLES ===== */
.calendar-picker {
    background: white;
    border-radius: 12px;
    padding: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.calendar-day:hover:not(.text-gray-300) {
    background: #f3f4f6;
}

.calendar-day.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.calendar-day.cursor-not-allowed {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --base-font-size: 14px;
    }

    .chat-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 100px);
    }

    .hero-title {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 640px) {
    .chatbot-container {
        bottom: 10px;
        right: 10px;
    }

    .chat-fab {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none;
    /* Remove !important */
}

.visible {
    display: block;
    /* Optional: Remove !important here too for consistency */
}