/* base.css - Common styles shared between index.css and style.css */

:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
}

.navbar {
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: auto;
    max-height: 60px;
    width: auto;
    max-width: 300px;
}

@media (max-width: 767px) {
    .navbar-brand img {
        max-height: 40px;
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        max-height: 25px;
        max-width: 120px;
    }
}

.nav-item .nav-link.active{
    color: #17202a;
    font-weight: bold;
}

.dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 0;
}

.feature-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.footer {
    background-color: #212529;
    color: white;
    padding: 60px 0 30px;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* Body padding for pages with/without tabs (from style.css) */
body {
    padding-top: 80px;
}

/* Only apply tabs-related padding if tabs wrapper exists */
body:has(.tabs-wrapper) {
    padding-top: 180px;
}

@media (max-width: 767px) {
    body {
        padding-top: 70px;
    }
    
    body:has(.tabs-wrapper) {
        padding-top: 180px;
    }
}

@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
    body:has(.tabs-wrapper) {
        padding-top: 270px;
    }
}

/* Desktop dropdown hover behavior (from style.css) */
@media (min-width: 992px) {
    .navbar-nav {
        display: flex !important;
    }
    
    .dropdown:hover > .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .dropdown > .dropdown-toggle:active {
        pointer-events: none;
    }
}

/* Mobile navbar styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #fff;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
}

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

/* Responsive padding for PICUNO title */
.picuno-title {
    padding-top: 10px; /* Default for desktop */
}

@media (max-width: 767px) {
    .picuno-title {
        padding-top: 5px !important; /* Less padding on mobile */
    }
}

@media (max-width: 576px) {
    .picuno-title {
        padding-top: 2px !important; /* Even less padding on very small screens */
    }
}


/*Video tag responsive style*/
.responsive-video {
    width: 100%;
    height: auto;
    max-height: 250px;
    max-width: 400px;
    display: block;
}

/* Responsive padding for MUNICO title */
.munico-title {
    padding-top: 10px; /* Default for desktop */
}

@media (max-width: 767px) {
    .munico-title {
        padding-top: 5px !important; /* Less padding on mobile */
    }
}

@media (max-width: 576px) {
    .munico-title {
        padding-top: 2px !important; /* Even less padding on very small screens */
    }
}

.zoom-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.zoom-btn:active {
    transform: scale(0.95) !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,.02);
}

/*Sidebar styles*/
/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 70px; /* Adjust based on your header height */
    left: 15px;
    z-index: 1000;
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-backdrop.show {
    display: block;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -300px; /* Hide sidebar off-screen */
        width: 300px;
        height: 100vh;
        background: white;
        z-index: 1001;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }
    
    .sidebar.show {
        left: 0; /* Show sidebar */
    }
    
    .main-container {
        padding-left: 0; /* Remove left padding on mobile */
    }
    
    .content {
        margin-left: 0; /* Remove left margin on mobile */
        padding: 20px 15px;
    }
}

