:root {
    --brand-blue: #1E6096;
    --brand-darkblue: #213547;
    --brand-grey: #475057;
    --brand-darkgrey: #252D30;
    --brand-orange: #E76D25;
    --textbox: #f8f9fa;
    --bg: #f5f5f5;
    --topbar-height: 33px;
    --navbar-height: 66px;
    --app-menu-bg: #023E5D;
}


body {
    font-family: 'Exo 2', 'Roboto', sans-serif;
    background-color: var(--bg);
    padding-top: calc(var(--topbar-height) + var(--navbar-height)) !important;
}

h1, h2, h3, h4, .banner h1 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Force dark dropdown menus */
.dropdown-menu {
    background-color: #212529 !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 99999 !important;         /* Make sure it's on top of the top-bar */
    position: absolute !important;
}

.top-bar .dropdown-menu {
    background-color: #212529 !important;
    color: white !important;
    position: absolute !important;
    z-index: 99999 !important;
}

/* Ensure dropdown items are readable */
.dropdown-menu .dropdown-item {
    color: white !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: #343a40 !important;
    color: white !important;
}


/* Fix collapsed navbar menu items (mobile view) */
.navbar-collapse.show .navbar-nav .nav-link {
  background-color: #212529 !important; /* Match dropdown bg */
  color: #fff !important;                /* Ensure white text */
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Fix hover/focus states in mobile menu */
.navbar-collapse.show .navbar-nav .nav-link:hover,
.navbar-collapse.show .navbar-nav .nav-link:focus {
  background-color: #343a40 !important;
  color: #fff !important;
}
/* Optional: Remove margin/padding gaps in collapsed view */
.navbar-collapse.show .navbar-nav {
  padding: 0;
  margin: 0;
}

.navbar-nav .nav-item.d-lg-none .nav-link {
    background-color: var(--app-menu-bg) !important;
}
.submenu-link {
    font-weight: 400;           /* normal */
    font-size: 0.95rem;         /* same as parent section, typically ~15.2px */
    color: #ffffff !important; /* override Bootstrap if needed */
    padding-left: 1.25rem;      /* align with other links if necessary */
}


.banner h1 {
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}


html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.job-form-section, .doc-upload-section {
    background-color: var(--textbox);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}


.input-field {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* ✅ Buttons */
.create-job-btn, .upload-doc-btn {
    margin: 15px 0;
}

.center-btn {
    display: flex;
    justify-content: center;
}

/* ✅ Table Styling */
.job-table, .doc-table {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd; /* Light border */
}

/* ✅ Job Title Styling */
.job-title-highlight {
    color: #1E6096;  /* Blue */
    font-weight: bold;
    font-size: 1.2rem;
}

/* ✅ Section Spacing */
.section-divider {
    margin-top: 30px;
    border-top: 3px solid #1E6096; /* Blue divider */
    padding-top: 20px;
}

/* ✅ Spacing between sections */
.table-spacing {
    margin-top: 30px;
}



/* ✅ General Form Styling */
form .form-control {
    width: 100%;
    max-width: 400px;
}

/* ✅ Background section for forms */
.form-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

/* ✅ Table Styling */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f2f2f2;
}

/* ✅ Make job titles stand out */
th {
    text-align: left;
    background-color: #343a40;
    color: white;
}

/* ✅ Job selection form styling */
.job-selection-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    margin: 10px auto;
}

.job-dropdown {
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.job-submit-btn {
    padding: 10px;
    margin-top: 5px;
    background-color: #1E6096;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    width: 100%;
}

.job-submit-btn:hover {
    background-color: #1E6096;
}

/* ✅ Chat container: Fixed input, scrollable history */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 150px); /* Adjusted for navbar & dropdown */
    padding-top: 60px; /* Ensure space for navbar */
}

/* ✅ Chat history: Smaller, scrollable */
.chat-history {
    height: 40vh;
    overflow-y: auto;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

/* ✅ Keep input bar always visible */
.chat-bottom-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 10px;
    border-top: 2px solid #ddd;
    position: sticky;
    bottom: 0;
    width: 100%;
}

/* ✅ Chat input field */
.chat-input-container {
    display: flex;
    width: 100%;
    gap: 10px;
}

.chat-input {
    flex-grow: 1;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.chat-send-btn {
    padding: 10px 15px;
    background-color: #1E6096;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.chat-send-btn:hover {
    background-color: #1E6096;
}

/* ✅ Keep "Show Uploaded Documents" dropdown always visible */
.fixed-dropdown-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 50%;
    background: white;
    padding: 10px;
    border-top: 1px solid #ddd;
    z-index: 900;
    text-align: center;
}

/* ✅ Place document dropdown inside the input bar */
.document-dropdown-container {
    width: 100%;
    text-align: center;
    margin-top: 5px;
}

/* ✅ Style document dropdown */
#documents-dropdown {
    width: 100%;
    background: white;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid #ccc;
}

/* ✅ Make the uploaded document list bulleted */
.bulleted-list {
    padding-left: 20px;
    list-style-type: disc;
    max-height: 120px; /* Enable scrolling after 5 items */
    overflow-y: auto;
}

/* 🔹 Make document list left-justified */
#document-list {
    max-height: 150px; /* Enable scrolling after 5 items */
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: white;
    width: 100%;
}

/* ✅ Make "Go to Doc Manager" a button */
.doc-manager-btn {
    width: 100%;
    margin-top: 5px;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}

.doc-manager-btn:hover {
    background-color: #218838;
}

/* ✅ Style the expandable dropdown */
#documents-dropdown summary {
    cursor: pointer;
    padding: 8px;
    font-weight: bold;
    text-align: center;
}

#documents-dropdown[open] summary {
    background-color: #f0f0f0;
}



/* ✅ Chat Container */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 150px); /* Adjusted for navbar & dropdown */
    padding-top: 60px;
}

/* ✅ Chat History */
.chat-history {
    height: 40vh;
    overflow-y: auto;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

/* ✅ Keep Input Bar Fixed */
.chat-bottom-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 10px;
    border-top: 2px solid #ddd;
    position: sticky;
    bottom: 0;
    width: 100%;
}

/* ✅ Input Field */
.chat-input-container {
    display: flex;
    width: 100%;
    gap: 10px;
}

.chat-input {
    flex-grow: 1;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.chat-send-btn {
    padding: 10px 15px;
    background-color: #1E6096;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.chat-send-btn:hover {
    background-color: #1E6096;
}

/* ✅ Fix table alignment */
.table td, .table th {
    vertical-align: middle;
}

/* ✅ Style the role badges */
.badge {
    padding: 5px 10px;
    font-size: 14px;
}

/* ✅ Make the table more compact */
.table {
    width: 100%;
    margin-top: 20px;
}

/* ✅ Adjust spacing for forms */
.form-select, .btn-sm {
    margin-left: 5px;
}


input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f8f9fa;
    font-size: 1rem;
}

.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--topbar-height);
    background-color: #f8f9fa; /* light gray */
    border-bottom: 1px solid #ddd;
    font-size: 13px;
    z-index: 10000;
}

.top-bar a {
    color: #333;
    padding: 0 10px;
}

.top-bar a:hover {
    text-decoration: underline;
}

.top-navbar {
    position: fixed !important;
    top: var(--topbar-height) !important;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    z-index: 1040;
}

.navbar.bg-dark {
    background-color: #212529;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* ✅ Navbar Spacing */
.navbar-nav {
    margin-left: auto;
    margin-right: auto;
}

/* ✅ Make the navbar always visible */
.navbar {
    position: fixed;
    top: var(--topbar-height);
    height: var(--navbar-height);
    width: 100%;
    z-index: 9999 !important;
    margin-top: 0 !important;
}
/* ✅ Navbar link styling */
.navbar-nav .nav-link {
    font-size: 1.1rem;             /* Slightly larger text */
    color: white !important;       /* Always white font */
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar-nav .nav-link:hover {
    color: #dddddd !important;     /* Softer white on hover */
}

/* ✅ Make sure left alignment doesn't get lost */
.navbar-nav {
    justify-content: flex-start;
}
.navbar .nav-link {
    position: relative;
    padding-bottom: 4px;
    color: #ccc;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: #fff;
}

.navbar .nav-link.active {
    color: #fff;
    font-weight: 600;
    border-bottom: 3px solid #0d6efd; /* Bootstrap primary blue */
}

.banner {
    width: 100%;
    margin: 0;
    padding: 75px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 0;
    margin-top: -25px;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #f1f1f1;
}

.banner h1 {
    font-size: 3rem;
    color: #f1f1f1;
}



.hero-section {
  background-color: var(--brand-darkblue); /* fallback */
  color: white;
  /*margin-top: 0px;*/
background-image:
  linear-gradient(to bottom,
      rgba(18, 35, 51, .9) 0%,
      rgba(18, 35, 51, 0) 15%,
      rgba(18, 35, 51, 0) 85%,
      rgba(18, 35, 51, .9) 100%
  ),
    /* Grid overlay */
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    /* Background image */
    url("images/bg05.jpg");
background-repeat: no-repeat, repeat, repeat, repeat;
background-size: cover, 20px 20px, 20px 20px, auto;
background-blend-mode: normal, normal, normal, soft-light;
background-position: center;
  opacity: 1; /* keep text visible */
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
  flex-wrap: wrap;
}

/* Left text area */
.hero-text {
  padding-left: 25px;
  flex: 1;
  min-width: 300px;
  position: relative; /* Make it a positioned container for ::before */
  z-index: 1; /* Ensure text is above the pattern */
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.2rem;
  line-height: 1.5;
}

.hero-btn {
  margin-top: 15px;
  background-color: #1E6096;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.hero-btn:hover {
  background-color: #17466b;
}

/* Right image area */
.hero-image {
  flex: 1;
  min-width: 450px;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}



.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}


.review-box {
    border: 2px solid #1E6096; /* Bootstrap primary blue */
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa; /* light gray */
}

.review-heading {
    font-size: 1.25rem;
    color: #1E6096;
    font-weight: bold;
    margin-bottom: 0.75rem;
}
.flip-card-title {
    color: var(--brand-darkblue);
    font-weight: 700;
    margin-bottom: 20px;
}


.flip-card-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.flip-card {
    width: 185px;
    height: 200px;
    flex: 0 0 auto;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 10px;
    overflow: hidden;
}

.flip-card-front h4,
.flip-card-back p {
    font-weight: 600;
    color: white;
}

.flip-card-front {
    background-color: var(--brand-darkblue);;
    color: white;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 20px 20px;

}

.flip-card-back {
    background-color: var(--brand-orange);;
    color: black;
    transform: rotateY(180deg);
}


.base-footer {
    background-color: var(--brand-darkblue); /* or your custom color */
    color: white;
    padding: 20px 0;
    text-align: center;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-top: 2px solid var(--brand-darkblue);
    background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    background-repeat: repeat;
}

.base-footer p {
    margin: 0;

}


.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
    color: white;
    width: 100%;
    padding: 1px 0;
    margin: 8px 0;
    max-width: none;
    min-width: 120px;
    flex-wrap: nowrap;
}


.divider-line {
    flex-grow: 1;
    height: 2px;
    transform: scaleY(0.5);
    transform-origin: top;
}

.divider-left {
  background: linear-gradient(to left, #003366, transparent);
}

.divider-right {
  background: linear-gradient(to right, #003366, transparent);
}


/* Copyright */

	#copyright {
		background: #79B51B;
		border-top: solid 1px #b5bec3;
		box-shadow: inset 0px 1px 0px 0px #313A41;
		text-shadow: 1px 1px  rgba(1, 1, 1, 0.5);
		text-align: center;
		padding: 10px 0 10px 0;
		color: white;
		/*text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);*/
	}

		#copyright a {
			color: #252D30;
		}

		#copyright a {
			color: white; /* Match copyright text */
			text-decoration: underline; /* Keep underline */
			font-size: inherit; /* Ensure the same font size as copyright text */
			font-family: inherit;
			padding-left: 15px
		}

		/* Add hover effect */
		#copyright a:hover {
			color: #ddd; /* Slightly lighter color on hover */

}

#page-footer {
    padding-left: 20px;
    background: var(--brand-blue);
    text-shadow: 1px 1px rgba(1, 1, 1, 0.9);
    color: white;
    background-image: url("images/bg05.jpg");
    background-repeat: repeat; /* makes it tile like a pattern */
    background-size: auto;
    background-blend-mode: soft-light; /* or 'multiply', 'overlay' */
    opacity: 1; /* keep text visible */
}

#page-footer h2,
#page-footer h5 {
    font-size: 1.5em;
    color: white;
    margin: 0 0 5px 0;
}

#page-footer a {
    color: white;
    text-decoration: none;
}

#page-footer a:hover {
    text-decoration: underline;
    color: var(--brand-orange);
}


/* Product Card */
.product-card {
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Image section */
.product-card-img {
    background-color: #ffffff; /* or light gray if you want contrast */
    /*padding: 1rem;*/
    text-align: center;
}

/* Text section */
.product-card-body {
    background-color: #1d3f72; /* BizyButler dark blue */
    color: #fff;
    padding: 1.5rem;
}

.product-card-body h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.product-card-body p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}
