/* Header Styling */
.header-container {
    display: grid;
    grid-template-columns: auto auto 1fr;
    background-color: #4CAF50;
    padding: 6px;
    position: sticky;
    align-items: center;
}

.header-logo-container, 
.header-title-container {
    display: grid;
    /*border: #31b1dc solid 2px;*/
}

.header-title-container a {
    color: aliceblue;
    text-decoration: none;
}

.header-logo-container {
    width: 50px;
} 

.header-logo {
    object-fit: contain;
    object-position: center;
    width: 45px;
}

.header-title-logo{
    object-fit: contain;
    object-position: center;
    width: 210px;
}

.header-title-container {
    color:aliceblue;
    font-family: 'Roboto', sans-serif;
    font-size: 36px;
    font-weight: 500;
}

.header-buttons-container {
    display: flex;
    gap: 3px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-style: bold;
    font-weight: bold;
    background-color: #4CAF50;
    text-align: right;
    align-items: right;
    justify-content: right;
}

.header-menu-container {
    display: flex;
    gap: 3px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-style: bold;
    font-weight: bold;
    background-color: #7794ac;
    text-align: left;
    align-items: left;
    justify-content: left;
    width: 100%;
}

.intro-container {
    background-color: #e9e9e9;
    color: rgb(15, 1, 1);
    text-align: center;
    padding: 6px;
    margin-top: 3px;
    font-family: 'Roboto', sans-serif;
}

.nowin-container {
    background-color: #c4d0f7;
    color: rgb(15, 1, 1);
    text-align: center;
    padding: 6px;
    margin-top: 3px;
    font-family: 'Roboto', sans-serif;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  background: white;
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 8px;
  width: 150px;
}

.dropdown-menu a {
  display: block;
  padding: 6px;
  text-decoration: none;
  color: black;
}

.dropdown-menu a:hover {
  background: #f0f0f0;
}

.hidden {
  display: none;
}

/* Left and Right Section Styling */
.left-part, .right-part {
    width: 50%;
    padding: 15px;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: top;
    margin-top: 3px;
    margin-right: 0px;    
    /*border-color: #4CAF50;
    border-style: solid;*/
}

.left-part {
    background-color: #c4d0f7;
}

.right-part {
    background-color: #e9e9e9;
}

/* Testimonials Section Styling */
.testimonials-container {
    padding-top: 3px;
    padding-left: 9px;
    padding-bottom: 9px;
    padding-right: 9px;
    margin-top: 3px;
    background-color: rgb(109, 131, 164);
    color: beige;
}

/* Footer Styling */
.footer-container {
    background-color: #f2f2f2;
    color: rgb(15, 1, 1);
    text-align: center;
    padding: 6px;
    margin-top: 30px;
    /*position: fixed;*/
    width: 100%;
    bottom: 0;
}

.footer-links {
    background-color: #f2f2f2;
    color: rgb(15, 1, 1);
    text-align: center;
    justify-content: center;    
    display: flex;
    width: 100%;
    bottom: 0;
}

/* Body container */
.body-container {
    padding-bottom: 0px; /* To ensure content is not hidden behind the footer (in case of fixed footer) */
}

.body {
    overflow-y: auto;
}

.help-content,
.privacy-content,
.terms-content {
    border-left: 3px solid #52a3d6;
    padding-left: 15px;
    font-family: 'Roboto', sans-serif;
}

/* Container */
.container {
/*    border-style: dotted;
    border-color:aqua;*/
    font-family: 'Roboto', sans-serif;    
}

.flex-container {
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap; /* allows stacking on small screens */
}

.flex-container img {
    display: block;
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
}

.round-container {
    border-width: 2px;
    border-radius: 6px;
    border-style: solid;
    border-color: rgb(55, 145, 55);
    padding: 8px;
    margin: 5px;
}

/* Table Styling */
table, td, th {
    border: 1px solid rgb(55, 145, 55);
    border-collapse: collapse;    
    padding: 8px;
    text-align: left;
}
.works-table,
.tw-table, 
.estimations-table,
.tasks-table,
.worker-works-table,
.user-works-table,
.users-list-table {
    width: 100%;
    font-family: 'Roboto', sans-serif;
}
.works-table th,
.tw-table th, 
.estimations-table th, 
.tasks-table th,
.user-works-table th,
.worker-works table th,
.users-list-table th {
    background-color: #4CAF50;
    color: white;
}

/* Work Details Styling */
.estimation-details,
.work-details,
.task-details,
.work-details-desc,
.task-details-desc,
.work-details-estimations,
.work-details-tasks,
.post-work-block,
.worker-details-input-box {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 6px;
    padding-left: 3px;
/*    border: 1px solid rgb(55, 145, 55);
    border-radius: 6px;*/
}

.estimation-details,
.work-details,
.task-details {
    display: inline-block;
    vertical-align: top;
}

.estimation-details-block,
.work-details-block,
.work-details-estimations,
.task-details-block {
    display: block;
}

.tw-full-width-block,
.post-work-block {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 6px;
    padding-left: 3px;    
    width: 99%;
}

/* Workers & Users List Styling */
.workers-list-table {
    width: 100%;
    font-family: 'Roboto', sans-serif;
}
.workers-list-table th {
    background-color: #4CAF50;
    color: white;
}

.workers-list-container,
.users-list-container,
.tw-container,
.works-container,
.work-details-container,
.signup-container,
.signin-container {
    /*border: 1px solid rgb(55, 145, 55);
    border-radius: 6px;*/
    padding: 3px;
}

.default-container {
    padding: 3px;
}

.filter-content {
    display: none;
    margin-top: 10px;
}

/* Tasks Table Styling */
.tasks-table, 
.tasks-table td,
.tasks-table th {
    border: 1px solid rgb(179, 209, 167);
    border-collapse: collapse;    
    padding: 8px;
    text-align: left;
}

.tasks-table th {
    background-color: #b3d1a7;
    color: rgba(5, 13, 24, 0.76);
}

.chat-container {
    /*border: 1px solid rgb(55, 145, 55);
    border-radius: 6px;*/
    padding: 3px;
    margin: 3px;
}

.chat-block {
    border: 1px solid rgb(55, 145, 55);
    border-radius: 6px;
    padding: 6px;
    margin: 6px;
    height: 300px;
    overflow-y: scroll;
}

/* Paragraph Styling */
p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    vertical-align: center;
/*    border: 1px solid rgb(55, 145, 55);
    border-radius: 6px;*/
}

p.no-margin {
    margin: 0;
}

p.empty-space {
    width: 30%;
}

p.help-query {
    border-left: 3px solid #b11a4a;
    padding-left: 15px;
    color:rgb(53, 163, 16)
}

/* Headings Styling */
h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
}

h3.no-margin, h2.no-margin, h4.no-margin {
    margin: 0;
}

h2.less-margin, h3.less-margin, h4.less-margin {
    margin-top: 3px;
    margin-bottom: 3px;
}

/* General Classes */
.no-decoration {
    text-decoration: none;
}

.border-bottom {
    border-bottom: 1px solid rgb(55, 145, 55);
}

.title-header {
    font-family: 'Roboto', sans-serif;
    margin-top: 6px;
    margin-bottom: 6px;
    padding-left: 6px;
    padding-top: 0px;
    padding-bottom: 0px;
    border: 1px solid rgb(185, 211, 193);
    border-radius: 6px;
    background-color: rgb(185, 211, 193);
    display: flex;
    align-items: center;
}

.filter {
    text-align: right;
    width: 83%;
    margin-left: 10px;
    border:rgb(4, 144, 35) solid 1px;
    border-radius: 6px;
}

.filter-button {
    background-color: rgb(185, 211, 193);
    border: none;
    color: rgb(0, 0, 0);
    padding: 6px 12px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-style: bold;
    margin: 2px 1px;
    cursor: pointer;
    border-radius: 6px;
}

.filter-button:hover {
    background-color: #505e51;
    color: #ffffff;
}

.anchor-button,
.review-button,
.button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 6px;    
    font-weight: bold;
}

.anchor-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    /* font-family: 'Roboto', sans-serif;     */
    /* transition: all 0.3s ease; */
    /* white-space: nowrap; */
}

.button:disabled {
    background-color: #6c757d;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.6;
}

/* BEGIN */
.task-review-overlay,
.chat-overlay,
.update-status-overlay {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    z-index: 9999; /* Make sure it's on top */
    justify-content: center;
    align-items: center;
}

.task-review-overlay-content,
.chat-overlay-content,
.update-status-overlay-content {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

button.close-review-btn,
button.close-chat-btn,
button.close-update-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #000;
}

button.close-review-btn:hover,
button.close-chat-btn:hover,
button.close-update-btn:hover {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #007bff;
    border: none;
    border-radius: 6px;
    font-size: 20px;
    color: #e3e1e7;
    cursor: pointer;
}

.chat-block {
    margin-top: 3px;
    max-height: 200px;
    overflow-y: auto;
}

.chat-messages {
    margin-top: 3px;
    padding: 9px;
    border-radius: 5px;
}
/* END */

.chat-button {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
}

.header-button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 9px 9px;
    text-align: bottom;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 9px 9px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
}

.header-button:hover {
    background-color: #4b6e4e;
    border: none;
    color: white;
    padding: 9px 9px;
    text-align: bottom;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 9px 9px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
}

.help-menu-button,
.header-menu-button {
    background-color: #7794ac;
    border: none;
    color: white;
    padding: 6px 6px;
    text-align: left;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 6px 6px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
}

.help-menu-button {
    background-color: #f4d510;
}

.help-menu-button:hover {
    background-color: #09247b;
}

.header-menu-button:hover {
    background-color: #09247b;
    border: none;
    color: white;
    padding: 6px 6px;
    text-align: bottom;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 6px 6px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
}

.header-menu-label {
    background-color: #7794ac;
    border: none;
    color: rgb(14, 48, 120);
    padding: 6px 6px;
    text-align: left;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 6px 6px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
}

.header-menu-label:hover {
    background-color: #7794ac;
    border: none;
    color: rgb(65, 85, 128);
    padding: 6px 6px;
    text-align: bottom;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 6px 6px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
}

.menu-container {
  position: relative;   /* anchor for dropdown */
  display: inline-block;
}

/* Input button styling */
input.post-work-input-box,
input.worker-details-input-box,
input.verysmall-input-box,
input.small-input-box,
input.medium-input-box,
input.large-input-box,
input.xl-input-box,
input.xxl-input-box,
textarea,
select {
    border: 1px solid rgb(55, 145, 55);
    color: black;
    padding: 6px 9px;
    text-decoration: none;
    display: inline-block;
    font-size: 15px;
    margin: 3px 3px;
    border-radius: 6px;    
}

.small-input-box:disabled,
.medium-input-box:disabled,
.large-input-box:disabled {
    color: gray;
}

.post-work-input-box,
.worker-details-input-box {
    width: 70%;
}

input.checkbox-input {
    width: auto;
    margin: 0 6px;
    border-color: #4CAF50;
    color:rgb(50, 155, 21);    
}

.page-center {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgb(50, 155, 21);
  border-radius: 6px;
}

form {
    width: 90%;
}

input.works-details-numeric-text-box,
input.worker-details-numeric-text-box {
    border: 1px solid rgb(55, 145, 55);
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    border-radius: 6px;
    width: 15%;
}

label.whatsapp-opt-in {
    display: flex;
    align-items: center;
    gap: 4px;
}

input.whatsapp-opt-in {
    width: 18px;
    height: 18px;
    margin: 9px 6px;
    vertical-align: middle;
    cursor: pointer;    
}

/* Label styling */
label {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-style: bold;
}

label.info-box {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: rgb(4, 144, 35);
    width: auto;
    font-style: bold;
}

label.default-details,
label.signup-details,
label.worker-details,
label.user-details,
label.work-details,
label.estimation-details,
label.right-align
 {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    vertical-align: center;
    text-align: right;
/*    border: 1px solid rgb(55, 145, 55);
    border-radius: 6px;*/
    width:30%;
}

.verysmall-input-box {
    width: 5%;
}

.small-input-box {
    width: 15%;
}

.medium-input-box {
    width: 20%;
}

.large-input-box {
    width: 30%;
}

.xl-input-box {
    width: 45%;
}

.xxl-input-box {
    width: 60%;
}

.worker-only-options {
    display: none;
}

/* Helpers */
.empty-box {
    height: 20px;
    width: 100%;
}

.group {
    display: inline-block;
    border: 1px solid #121412;
}

/* Display all items in DIV on same line and vertically center aligned. */
div.group-box {
    display: flex;
    align-items: center;   /* Vertical center */
    gap: 3px;
 /*   border: 1px solid rgb(243, 118, 206);
    border-radius: 6px;*/
    width: 100%;
}

div.role-group-box {
    display: flex;
    align-items: center;   /* Vertical center */
    gap: 3px;
/*    border: 1px solid rgb(243, 118, 206);
    border-radius: 6px;*/
    width: auto;
}

/* Pagination Styling */
.pagination {
    margin-top: 20px;
}

.pagination a, .pagination span {
    margin: 0 5px;
    text-decoration: none;
    color: #007bff;
}

.pagination span.disabled {
    color: #6c757d;
}
    
/* Error Message Styling */
.error-message {
    color: red;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    margin-top: 5px;
}

/* Success Message Styling */
.success-message {
    color: green;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    margin-top: 5px;
}

/* Select multiple box styling */
select[multiple] {
    height: auto;
    width: 45%;
}

/* Notification styling */
.notification-item {
    color: #363936;
    padding: 10px;
    top: 10px;
    right: 10px;
    border-radius: 6px;
}

.notifications-block {
    border: 1px solid rgb(55, 145, 55);
    border-radius: 6px;
}

/* Image styling */
img.notifications-icon {
    width: 33px;
    height: 33px;
    object-fit: contain;
    object-position: center;
    margin-right: 6px;
}

img.icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    object-position: center;
    margin-right: 6px;
}

img.notifications-icon:hover {
    cursor: pointer;
}

img.icon-refresh {
    width: 24px;
    height: 24px;
    object-fit: contain;
    object-position: bottom;
    margin-right: 6px;
}

img.icon-refresh:hover {
    width: 24px;
    height: 24px;
    object-fit: contain;
    object-position: bottom;
    margin-right: 6px;
    cursor: pointer;
    opacity: 0.8;
}

div.image-container {
    width: 45px;
    height: 51px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 6px;
}

.no-match {
    color: red;
    font-weight: normal;
    margin-left: 5px;
}

.match {
    color: blue;
    font-weight: normal;
    margin-left: 5px;
}

.gidugu-regular {
  font-family: "Gidugu", sans-serif;
  font-weight: 400;
  font-style: normal;
}
