/* ============================================
   UNICOM DIAGNOSTICS - TAILWIND CSS STYLES
   Common Styles & Custom Components
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;600;700&family=Noto+Sans+Bengali:wght@300;400;500;600;700&display=swap');

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Font family override for body */
body {
    font-family: 'Noto Sans', system-ui, sans-serif;
}

/* Bengali text support */
.bengali {
    font-family: 'Noto Sans Bengali', 'Noto Sans', sans-serif;
}

/* Animation classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #E11D48;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Header Styles */
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    color: inherit;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.25rem;
    font-weight: 700;
    color: #E11D48;
}

.logo-tagline {
    font-size: 0.75rem;
    color: #64748b;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #E11D48;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: #f1f5f9;
    color: #E11D48;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #E11D48;
    color: white;
}

.btn-primary:hover {
    background: #be123c;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #475569;
    transition: all 0.3s;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 73px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 73px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .header-actions .btn {
        display: none;
    }
}

/* Footer Styles */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 3rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-section h4 {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #E11D48;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #334155;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.social-link:hover {
    background: #E11D48;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #94a3b8;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* Dark Mode Support */
[data-theme="dark"] {
    background: #0f172a;
    color: #e2e8f0;
}

[data-theme="dark"] body {
    background: #0f172a !important;
}

[data-theme="dark"] .bg-slate-50 {
    background: #1e293b !important;
}

[data-theme="dark"] .bg-slate-100 {
    background: #1e293b !important;
}

[data-theme="dark"] .bg-white {
    background: #0f172a !important;
}

[data-theme="dark"] .text-slate-900 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .text-slate-600 {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .text-slate-700 {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .border-slate-200 {
    border-color: #334155 !important;
}

[data-theme="dark"] .border-rose-200 {
    border-color: #9f1239 !important;
}

[data-theme="dark"] .border-rose-400 {
    border-color: #be123c !important;
}

[data-theme="dark"] header {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .nav-menu {
    background: #1e293b !important;
}

/* Dark Mode - Foundation Day Section */
[data-theme="dark"] section.bg-slate-100 {
    background: #0f172a !important;
}

[data-theme="dark"] .bg-rose-600 {
    background: #be123c !important;
}

[data-theme="dark"] .bg-rose-700 {
    background: #9f1239 !important;
}

[data-theme="dark"] .hover\:bg-rose-700:hover {
    background: #9f1239 !important;
}

[data-theme="dark"] .border-rose-700 {
    border-color: #881337 !important;
}

[data-theme="dark"] .text-rose-600 {
    color: #fb7185 !important;
}

[data-theme="dark"] .text-rose-100 {
    color: #ffe4e6 !important;
}

[data-theme="dark"] .bg-rose-300 {
    background: #9f1239 !important;
}

[data-theme="dark"] .hover\:border-rose-400:hover {
    border-color: #be123c !important;
}

[data-theme="dark"] .hover\:bg-rose-600:hover {
    background: #be123c !important;
}
