/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #14b8a6;
    --primary-dark: #0d9488;
    --secondary-color: #334155;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --info: #3b82f6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--white);
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

body.menu-open {
    overflow: hidden;
}

body.loading {
    opacity: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--border-color);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-dark);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn.secondary {
    background: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    color: var(--white);
}

.btn.secondary:hover {
    background: #475569;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.nav-wrapper {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper.purple-nav {
    background: #f8f9fa;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.purple-nav .brand strong {
    color: #1e293b !important;
}

.purple-nav .brand small {
    color: #64748b !important;
}

.purple-nav .hamburger span {
    background: #1e293b;
}

.purple-nav .menu a {
    color: #1e293b;
    font-weight: 600;
}

.purple-nav .menu a:hover,
.purple-nav .menu a.active {
    color: #10b981;
}

.purple-nav .menu a.active::after {
    background: #10b981;
}

.purple-nav .admin-btn {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e5e7eb;
}

.purple-nav .admin-btn:hover {
    background: #f3f4f6;
}

/* Notice Button Styles */
.notice-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #ffffff;
    color: #1e293b;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.notice-btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notice-menu-link {
    display: none;
}

.desktop-only {
    display: inline-flex;
}

.hamburger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1400px;
    gap: 16px;
}

.menu-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.12);
    color: var(--secondary-color);
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.menu-close:hover {
    background: rgba(124, 58, 237, 0.2);
}

.menu {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: center;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.menu a:hover,
.menu a.active {
    color: var(--primary-color);
}

.menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.nav-dropdown {
    position: relative;
}

.admin-btn {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: #475569;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 150px;
    margin-top: 8px;
    display: none;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-dropdown.open .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    padding: 10px 16px;
    color: white;
    text-decoration: none;
    transition: background 0.2s ease;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.lang-switcher {
    display: flex;
    gap: 4px;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
    backdrop-filter: blur(10px);
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #1e293b;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    min-width: 45px;
}

.lang-btn:hover {
    background: #f3f4f6;
}

.lang-btn.active {
    background: #1e293b;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-text {
    display: block;
    font-weight: 700;
}

/* ============================================
   FOOTER
   ============================================ */
.modern-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--white);
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-school-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
}

.footer-tagline {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

.footer-description {
    font-size: 14px;
    line-height: 1.8;
    color: #cbd5e1;
    margin: 0 0 20px 0;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    color: #cbd5e1;
}

.contact-icon-svg {
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    color: var(--white);
    font-size: 14px;
    margin-bottom: 4px;
}

.contact-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.contact-link:hover {
    color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-content p {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

.footer-bottom-links span {
    color: #475569;
}

/* ============================================
   WHATSAPP CHATBOT WIDGET
   ============================================ */
.whatsapp-chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.whatsapp-button {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.chat-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.whatsapp-chat-window {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 360px;
    max-width: calc(100vw - 40px);
    max-height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    transform: scale(0) translateY(20px);
    transform-origin: bottom right;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    z-index: 9998;
    display: flex;
    flex-direction: column;
}

.whatsapp-chat-window.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 16px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chat-header-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.chat-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-header p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.chat-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-toggle-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 42px;
}

.lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-toggle-btn:active {
    transform: translateY(0);
}

.chat-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    height: 400px;
    max-height: calc(60vh - 150px);
    overflow-y: auto;
    padding: 16px;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f0f2f5;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f0f2f5;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.bot-message,
.user-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    word-wrap: break-word;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bot-message {
    background: white;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    border-radius: 16px 16px 16px 4px;
}

.bot-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #1f2937;
}

.user-message {
    background: linear-gradient(135deg, #dcf8c6 0%, #d0f0c0 100%);
    align-self: flex-end;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.15);
    border-radius: 16px 16px 4px 16px;
}

.user-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #1f2937;
    font-weight: 500;
}

.typing-dots {
    display: flex;
    gap: 5px;
    padding: 10px 0;
    align-items: center;
}

.typing-dots span {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.3);
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { 
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    30% { 
        transform: translateY(-12px) scale(1.2);
        opacity: 1;
    }
}

.quick-replies {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.quick-reply-btn {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.quick-reply-btn:hover {
    background: #f3f4f6;
    border-color: #25d366;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-input-container {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid #e5e7eb;
    background: white;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #f8f9fa;
}

.chat-input:focus {
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
    background: white;
}

.chat-input::placeholder {
    color: #9ca3af;
    font-style: italic;
    transition: opacity 0.3s ease;
}

.chat-input:focus::placeholder {
    opacity: 0.6;
}

.voice-input-btn, .send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
}

.voice-input-btn svg, .send-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.voice-input-btn {
    background: linear-gradient(135deg, #25d366 0%, #20b358 100%);
    color: white;
}

.voice-input-btn:hover {
    background: linear-gradient(135deg, #20b358 0%, #128c7e 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.voice-input-btn:active {
    transform: scale(0.95);
}

.send-btn {
    background: linear-gradient(135deg, #25d366 0%, #20b358 100%);
    color: white;
}

.send-btn:hover {
    background: linear-gradient(135deg, #20b358 0%, #128c7e 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.send-btn:active {
    transform: scale(0.95) rotate(-5deg);
}

/* Voice button recording state with pulse animation */
.voice-input-btn.recording {
    animation: pulse 1.5s infinite;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.6);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.6);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 30px rgba(255, 68, 68, 0.8);
    }
}

.chat-footer {
    padding: 10px 12px;
    background: white;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 16px 16px;
}

.typing-indicator {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.whatsapp-direct-btn {
    width: 100%;
    background: #25d366;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.whatsapp-direct-btn:hover {
    background: #1ea952;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

@media (max-width: 480px) {
    .whatsapp-chat-window {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 90px;
    }
    
    .chat-messages {
        height: 350px;
    }
    
    .quick-replies {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 968px) {
    .nav {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 10px 16px;
    }

    .brand {
        flex: 0 1 auto;
        max-width: calc(100% - 180px);
    }
    
    .brand img {
        width: 42px !important;
        height: 42px !important;
    }
    
    .brand > div {
        display: grid;
        line-height: 1;
    }
    
    .brand strong {
        font-size: 14px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .brand small {
        font-size: 10px !important;
    }

    .hamburger {
        display: flex;
        z-index: 1002;
        order: 3;
        padding: 6px;
        margin-left: 8px;
    }
    
    .hamburger span {
        width: 22px;
        height: 2px;
    }
    
    .nav-controls {
        position: static;
        gap: 8px;
        margin-left: 0;
        order: 2;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .notice-menu-link {
        display: block !important;
        padding: 12px 0;
        color: #1e293b;
        text-decoration: none;
        font-weight: 600;
        width: 100%;
        border-top: 1px solid #e5e7eb;
        margin-top: 8px;
        padding-top: 16px;
    }

    .menu {
        position: fixed;
        top: 78px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 78px);
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
        gap: 4px;
        z-index: 1000;
    }

    .menu.open {
        left: 0;
        box-shadow: 8px 0 32px rgba(15, 23, 42, 0.15);
    }

    .menu a {
        width: 100%;
        padding: 12px 0;
        color: #1e293b;
    }

    .menu-close {
        display: inline-flex;
        margin-left: auto;
        margin-bottom: 10px;
        font-size: 28px;
        color: #1e293b;
    }
    
    .nav-dropdown {
        position: relative;
    }
    
    .admin-btn {
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
        border-radius: 6px;
        min-width: auto;
    }
    
    .dropdown-menu {
        position: absolute;
        right: 0;
        top: 100%;
        min-width: 140px;
        margin-top: 8px;
        z-index: 1004;
    }
    
    .dropdown-menu a {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .dropdown-menu a:hover {
        background: rgba(251, 191, 36, 0.2);
        color: #fbbf24;
    }

    .lang-switcher {
        position: relative;
        padding: 0;
        gap: 0;
        border-radius: 6px;
        border-width: 1px;
        background: transparent;
        border: none;
    }
    
    .lang-switcher::before {
        content: '🌐';
        font-size: 20px;
        cursor: pointer;
        padding: 6px 8px;
        background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
    }

    .lang-btn {
        display: none;
        padding: 8px 16px;
        font-size: 12px;
        min-width: auto;
        min-height: auto;
        border-radius: 0;
        width: 100%;
        text-align: left;
        justify-content: flex-start;
    }
    
    .lang-btn:first-child {
        border-radius: 6px 6px 0 0;
    }
    
    .lang-btn:last-child {
        border-radius: 0 0 6px 6px;
    }
    
    .lang-switcher.open .lang-btn {
        display: flex;
    }
    
    .lang-switcher.open {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 8px;
        background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 6px;
        padding: 0;
        flex-direction: column;
        gap: 0;
        min-width: 120px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .lang-switcher.open::before {
        display: none;
    }

    .purple-nav .menu {
        background: var(--white);
    }

    .purple-nav .menu a {
        color: var(--text-color);
    }

    .purple-nav .menu a:hover,
    .purple-nav .menu a.active {
        color: #7c3aed;
    }

    .purple-nav .menu a.active::after {
        background: #7c3aed;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }
    
    /* WhatsApp Chatbot Mobile Styles */
    .whatsapp-chatbot-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-button {
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-chat-window {
        bottom: 90px;
        right: 15px;
        left: 15px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 180px);
    }
    
    .chat-messages {
        height: auto;
        max-height: calc(100vh - 320px);
        min-height: 300px;
    }
    
    .quick-replies {
        grid-template-columns: 1fr;
    }
    
    .chat-header h4 {
        font-size: 15px;
    }
    
    .chat-header p {
        font-size: 11px;
    }
    
    .chat-logo {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .whatsapp-chat-window {
        bottom: 80px;
        max-height: calc(100vh - 160px);
    }
    
    .chat-messages {
        max-height: calc(100vh - 300px);
        min-height: 250px;
    }
    
    .bot-message, .user-message {
        max-width: 85%;
        font-size: 13px;
    }
}
