/* MyNatais Global Styles */

:root {
    --primary-color: #FFC107;
    --primary-hover: #ffca2c;
    --primary-text: #fff;
    /* or #000 if yellow is too light */
    --body-bg: #f4f6f8;
    --sidebar-bg: #FBFAF9;
    --sidebar-text: #333;
    --sidebar-active-bg: rgba(0, 0, 0, 0.05);
    --sidebar-active-color: #FFC107;
    --navbar-bg: #ffffff;
    --card-radius: 8px;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

html,
body {
    height: 100%;
}

body {
    background-color: var(--body-bg);
    font-family: 'Montserrat', 'Inter', sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
}

/* Limitless-style Layout Fix */
/* Wrapper from constructor.php */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Force full viewport height */
    flex: 1;
}

/* Main flex container from page.php */
.page-content {
    display: flex;
    flex-grow: 1;
    /* Expand to fill page-container */
    align-items: stretch;
    /* Stretch sidebar and content */
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.content-wrapper {
    flex: 1;
    /* Take remaining width */
    display: flex;
    flex-direction: column;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}

/* Sidebar Styles */
.sidebar {
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-dark .nav-sidebar .nav-item>.nav-link {
    color: var(--sidebar-text);
}

.sidebar-dark .nav-sidebar .nav-item>.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--sidebar-active-bg);
}

.sidebar-dark .nav-sidebar .nav-item>.nav-link.active {
    color: var(--primary-color);
    background-color: var(--sidebar-active-bg);
}

.sidebar-dark .nav-sidebar .nav-item-header {
    color: rgba(0, 0, 0, 0.5);
}

.sidebar-section {
    background-color: transparent !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
}

/* Logo in Sidebar */
.sidebar-logo-icon {
    max-height: 40px;
}

/* Navbar Styles */
.navbar {
    background-color: var(--navbar-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: none;
}

.navbar-brand {
    padding: 0;
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    /* Ensure text is readable */
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Badge / Labels */
.badge-primary {
    background-color: var(--primary-color);
}

/* Form Controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Table */
.table th {
    font-weight: 600;
    border-bottom-width: 1px;
}