/* Common Styles - Shared across all pages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Date/Time Display - Top Right Corner */
.datetime-container {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color:transparent;
    color: #fff;
    padding: 8px 15px;
    border-radius:0px;
    font-size: 10px;
    z-index: 1000;
   /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); */
}

#datetime {
    font-weight: 500;
}

/* Hamburger Menu Button (Mobile Only) */
.hamburger-menu {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background-color: hsl(115, 34%, 45%);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1001;
    flex-direction: column;
    justify-content: space-around;
    padding: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.hamburger-menu:hover {
    background-color: #34495e;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Sidebar Overlay (Mobile Only) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* Primary Navigation Bar */
.primary-nav {
    background-color: #2c3e50;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu li a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    transition: background-color 0.3s ease;
}

.nav-menu li a:hover {
    background-color: #34495e;
}

.nav-menu li a:active {
    background-color: #1a252f;
}

/* Main Content Area */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    min-height: calc(100vh - 60px);
}

/* Page Counter - Bottom of page, very small font */
.counter-container {
    text-align: center;
    padding: 5px 10px;
    margin: 10px 0 0 0;
    background-color: transparent;
}

.counter-container p {
    margin: 0;
    font-size: 10px;
    color: #95a5a6;
}

#pageCounter {
    font-weight: normal;
    color: #95a5a6;
    font-size: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .datetime-container {
        font-size: 12px;
        padding: 6px 12px;
        top: 5px;
        right: 5px;
    }
    
    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
    }
    
    /* Show sidebar overlay on mobile when active */
    .sidebar-overlay {
        display: block;
    }
    
    /* Convert navigation to sidebar on mobile */
    .primary-nav {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        z-index: 999;
        overflow-y: auto;
    }
    
    .primary-nav.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        justify-content: flex-start;
        padding: 60px 0 20px 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        padding: 15px 20px;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li a:hover {
        background-color: #34495e;
        padding-left: 25px;
    }
    
    .main-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .datetime-container {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .hamburger-menu {
        width: 35px;
        height: 35px;
        top: 10px;
        left: 10px;
        padding: 6px;
    }
    
    .primary-nav {
        width: 260px;
        left: -260px;
    }
    
    .main-content {
        padding: 10px;
    }
}

