/* --------------------------------------------------
   2. Root Variables
-------------------------------------------------- */
:root {
    --main-bg-color: #008000;
    --dark-green: #006400;
    --main-white: #fff;
    --main-green: #c1d70a;
    --main-green-light: #e4f171;
    --main-black: #050505;
    --main-pink: #fe8482;
    --main-gray: #777676;
    --main-grey: #777676;
    /* Extended theme */
    --bg-body: #f5f5f5; /* Light neutral background for dashboard pages */
    --bg-box: #ffffff; /* Box or card backgrounds */
    --text-color: #050505; /* Main text color (using main-black) */
    --text-muted: #777676; /* Muted text (using main-gray) */
    --btn-text: #ffffff; /* Button text color */
    --btn-hover-opacity: 0.9; /* Slight hover effect */
    --border-color: #e0e0e0; /* Light border for boxes, table edges, etc. */
}

/* 
   Base font size:
   - 14px on smaller screens
   - 16px on >=768px screens
*/
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    background-color: var(--bg-body);
    color: var(--text-color);
    /* Use the new Google font */
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    margin-bottom: 60px; /* For footer space if fixed */
}

    /* Example custom style overrides or additions */
    body.ms-Fabric {
        background-color: #f9f9f9;
    }

/* --------------------------------------------------
   3. Headings
-------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

/* Style <h1> */
h1 {
    text-align: center;
    font-weight: 700;
    font-size: 24px; /* or 1.5rem */
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Style <h2> */
h2 {
    font-size: 20px;
    text-align: center;
    font-weight: 600;
    width: 100%;
    background-color: var(--main-green-light);
    color: var(--main-black);
    padding: 12px 0;
    margin-bottom: 1rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

/* Style <h3> (example) */
h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* --------------------------------------------------
   4. Utility classes
-------------------------------------------------- */
.text-muted {
    color: var(--text-muted) !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

/* --------------------------------------------------
   5. Dashboard Boxes / Cards
-------------------------------------------------- */
.dashboard-box {
    background-color: var(--bg-box);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    margin-bottom: 1rem;
}

.dashboard-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Pink header example */
.dashboard-box.pink-header h2 {
    background-color: var(--main-pink);
    color: #fff;
    padding: 0.5rem;
    margin: -1rem -1rem 1rem -1rem;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

/* --------------------------------------------------
   6. Buttons
-------------------------------------------------- */
.btn {
    display: inline-block;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
    cursor: pointer;
}

    .btn:hover {
        opacity: var(--btn-hover-opacity);
    }

/* Button color variations */
.btn-green {
    background-color: var(--main-green-light);
    color: var(--btn-text);
}

.btn-black {
    background-color: var(--main-black);
    color: var(--btn-text);
}

.btn-pink {
    background-color: var(--main-pink) !important;
    color: var(--btn-text) !important;
}

/* Bootstrap overrides for .btn-primary, .btn-secondary, etc. */
.btn-primary {
    background-color: var(--main-pink) !important;
    border-color: var(--border-color) !important;
    color: #fff !important;
}

.btn-secondary {
    background-color: var(--main-gray) !important;
    border-color: var(--border-color) !important;
    color: #fff !important;
}


/* --------------------------------------------------
   8. Footer, Navbar, etc.
-------------------------------------------------- */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

.navbar .nav-link.btn {
    margin-right: 0.5rem;
    border-radius: 6px;
}

    .navbar .nav-link.btn:hover {
        background-color: #efefef;
    }

ul.navbar-nav.d-flex.flex-wrap > li.nav-item {
    flex: 0 0 auto !important;
    width: auto !important;
    margin-bottom: 0.5rem; /* spacing between rows when wrapped */
}

.nav-link.btn {
    display: inline-block !important; /* ensures they don't fill the parent */
    width: auto !important;
    white-space: nowrap; /* optional to prevent text from wrapping */
}

/* --------------------------------------------------
   9. Misc. Additional Utility
-------------------------------------------------- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-container {
    text-align: center;
    color: white;
}

.spinner-text {
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

a i {
    /*border: 1px solid;*/
    padding: 5px;
    font-size: 14pt;
}

.badge {
    font-size: 10pt;
}

.btn-add-campaign, .btn-preview, .btn-sm {
    padding: 5px;
    font-size: 10pt;
}

.campaign-link {
    font-weight: bold;
}

.table-sm td, .table-sm th {
    
    font-size: 10pt;
}

label{
    padding-top: 10px;

}

.min-w-200 {
    min-width: 200px;
}

.min-w-300{
    min-width: 300px;
}