/**
 * CMS Global Layout
 * Navbar, Footer, and Page structures
 */

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
}

main {
    flex: 1;
    padding: var(--spacing-4) 0;
}

/* Navbar Customization */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-header);
    padding: 0.75rem 0;
    transition: var(--transition-base);
}

.navbar-brand {
    font-weight: var(--font-weight-bold);
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-main);
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1rem;
    transition: var(--transition-base);
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Page Containers */
.page-header {
    margin-bottom: var(--spacing-4);
}

.page-content {
    background-color: var(--bg-card);
    padding: var(--spacing-4);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* Footer Customization */
footer {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color), var(--primary-light), #d4c4a8);
    color: var(--text-white);
    margin-top: auto;
    padding: var(--spacing-4) 0;
}

footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: var(--transition-base);
}

footer a:hover {
    color: var(--text-white) !important;
}

/* Utility: Fixed Bottom Actions (for Forms/Modals) */
.fixed-bottom-buttons {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: var(--spacing-3);
    z-index: 1000;
    display: flex;
    gap: var(--spacing-2);
}

/* Dropdown Customization */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
}

.dropdown-item:hover {
    background-color: var(--primary-soft);
}

.dropdown-item.active {
    background-color: var(--primary-color);
    color: var(--text-white);
}
