/*
  Note: These are temporary previews of the images.
  They're active for 10-15 days only. You should replace them with the actual images before using the code in production.
*/
:root {
  --image-0: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAbCAYAAAB1NA+iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEeSURBVHgBrZBBasJAFIbfezNZ1UCWLVSaI0TiBXoDQ5t9PUnTk9iuSqml3qBdiih6hCA5gOBWHDUqhJhxXka/Rci8YT7e/wNcSjP8fr8NPn2whADxwRHO31341QELKP8i+BLF73375xVqQsUDgkqaYb/nBT0PmNDJBOHFFe6U2wtVTreRuL2Q9obZC4EBUy9GwcGi7YUn2Et8RzrTci98wR6v3IsEC/Je2v1guVp2rQQHOg3penUjFPcYyIaIrDZQoN6y8XOy+68lQMCFItXNRvHgOGMLEDElQY/pMEqLc14HSn3QDbXKj1kb5HkncaK71wp2edewjrJx/A9nqBQc886HTykYOO3gTF7jBqa8WgE3bxXbCDgjSS2bx1dhAxm3XTXmig8qAAAAAElFTkSuQmCC);
  --custom-width: 100vw;
  --design-width: 1920;
  --ratio: calc(var(--custom-width) / var(--design-width));
}

/* Default classes */
.pos-abs {
  position: absolute;
}

.object-fit {
  object-fit: cover;
}

.fill-parent {
  width: 100%;
  height: 100%;
}

.bg-contain {
  background-size: contain;
}

.bg-cover {
  background-size: cover;
}

.bg-auto {
  background-size: auto;
}

.bg-crop {
  background-size: 100% 100%;
}

.bg-no-repeat {
  background-repeat: no-repeat;
}

.pos-init {
  top: 0px;
  left: 0px;
}

.image-div {
  background-color: transparent;
  background-position: center;
}

/* Default classes end */
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Content page layout --- */
#parent-div {
  flex: 1;
  min-width: 0;
  overflow: auto;
}

.parent-div {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0px;
  box-sizing: border-box;
}

.content-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.content-header {
  padding: 1% 2%;
}

.content-subheader {
  display: flex;
  align-items: center;
  gap: calc(20 * var(--ratio));
  padding: 1% 2% 2%;
  flex-wrap: wrap;
}

.content-body {
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 0 2% 1%;
}

.content-sidebar {
  width: 22%;
  flex-shrink: 0;
  padding: 0 1%;
  padding-top: 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: calc(65 * var(--ratio)) repeat(5, 1fr);
  grid-template-rows: auto 1fr 1fr;
  gap: calc(8 * var(--ratio));
  flex: 1;
  min-height: 0;
  min-width: 0;
  padding: 0 2%;
}

.calendar-corner {
  /* Empty top-left cell */
}

.calendar-time-label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: calc(22 * var(--ratio));
  font-family: Poppins;
  font-weight: 500;
  line-height: calc(24 * var(--ratio));
  color: #000000ff;
  padding: calc(4 * var(--ratio)) 0;
}

.week-nav {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--ratio));
}

.content-subheader .week-nav {
  margin-left: calc(90 * var(--ratio));
}

.nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(47 * var(--ratio));
  height: calc(39 * var(--ratio));
  border-radius: 10px;
  border: 3px solid #000000ff;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.nav-arrow:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.coordinator-select {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--ratio));
  margin-left: auto;
}

/* --- End content page layout --- */

.desktop-16 {
  width: 100%;
  height: 100%;
  top: 0%;
  left: 0%;
  opacity: 0.9;
  z-index: 1;
  transform: rotate(0deg);
  overflow: hidden;
  background: #ffffffff;
}


/* ---- Menu page layout ---- */
.top-bar {
  display: flex;
  align-items: center;
  padding: 1.5% 2%;
  gap: calc(20 * var(--ratio));
  position: relative;
}

#week-selector-bar {
  position: absolute;
  left: 55.5%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: calc(20 * var(--ratio));
}

#page-title-bar {
  margin-right: auto;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--ratio));
  min-width: 17%;
}

.top-bar-right {
  text-align: right;
}

.top-bar-icon {
  width: calc(30 * var(--ratio));
  height: calc(30 * var(--ratio));
  flex-shrink: 0;
}

.production-planner-text {
  font-size: calc(24 * var(--ratio));
  font-family: Poppins;
  font-weight: 700;
  letter-spacing: calc(1 * var(--ratio));
  line-height: calc(26 * var(--ratio));
  color: #000000ff;
}

.main-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

.sidebar {
  width: 19%;
  display: flex;
  flex-direction: column;
  padding: 2% 0;
  flex-shrink: 0;
  align-items: center;
}

.sidebar-spacer {
  flex: 1;
}

.menu-icon {
  width: calc(28 * var(--ratio));
  height: calc(28 * var(--ratio));
  flex-shrink: 0;
  margin-right: calc(12 * var(--ratio));
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.logout-button {
  display: flex;
  align-items: center;
  width: 80%;
  padding: 3% 8%;
  text-decoration: none;
  cursor: pointer;
}

.logout-icon-circle {
  width: calc(38 * var(--ratio));
  height: calc(38 * var(--ratio));
  border-radius: 50%;
  background: #000000ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: calc(10 * var(--ratio));
}
/* ---- End menu page layout ---- */


.user-image {
  width: 2.71%;
  height: 4.81%;
  top: 2.5%;
  left: 95.05%;
  position: absolute;
  opacity: 1;
  z-index: 1;
  transform: rotate(0deg);
  border-radius: 50%;
  background: #844685ff;
  box-sizing: border-box;
  border-left: 2px solid #844685ff;
  border-right: 2px solid #844685ff;
  border-top: 2px solid #844685ff;
  border-bottom: 2px solid #844685ff;
}

.user-name {
  width: 20%;
  height: 3.61%;
  top: 3%;
  left: 80%;
  opacity: 1;
  z-index: 24;
  transform: rotate(0deg);
  text-align: right;
  line-height: 0px;
  position: absolute;
  border-right: 20px;
}

.user-name-text {
  font-size: calc(33 * var(--ratio));
  font-family: Inter;
  font-weight: 500;

  text-decoration: none;
  text-transform: none;
  border-right: 20px;

  line-height: calc(34 * var(--ratio));
  color: #000000ff;
}

.page-title {
  text-align: left;
  padding: 0.5% 3%;
}

.page-title-text {
  font-size: calc(47 * var(--ratio));
  font-family: Inter;
  font-weight: 500;

  text-decoration: none;
  text-transform: none;
  border-right: 20px;

  line-height: calc(34 * var(--ratio));
  color: #000000ff;
  background-color: #dadada;
}


.week {
  font-size: calc(33 * var(--ratio));
  font-family: Poppins;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
  line-height: calc(34 * var(--ratio));
  color: #000000ff;
}

.year {
  letter-spacing: calc(0.32 * var(--ratio));
  font-size: calc(33 * var(--ratio));
  font-family: Poppins;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
  line-height: calc(34 * var(--ratio));
  color: #000000ff;
}

.name {
  font-size: calc(33 * var(--ratio));
  font-family: Poppins;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
  line-height: calc(34 * var(--ratio));
  color: #000000ff;
  margin-left: auto;
  margin-right: 18%;
  text-align: right;
}

.coordinator_title {
  font-size: calc(33 * var(--ratio));
  font-family: Poppins;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
  line-height: calc(34 * var(--ratio));
  color: #000000ff;
}

.coordinator {
  text-align: center;
  font-size: calc(33 * var(--ratio));
  font-family: Poppins;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
  line-height: calc(34 * var(--ratio));
  color: #000000ff;
}

.coordinator_text {
  font-size: calc(25 * var(--ratio));
  line-height: calc(26 * var(--ratio));
  text-align: center;
}


.rectangle_week {
  border-radius: 10px;
  box-sizing: border-box;
  border: 3px solid #000000ff;
  transition: background-color 0.3s ease;
}

.rectangle_week:hover {
  background-color: rgba(0, 0, 0, 0.1);
}


.my-board {
  padding: 0 5%;
  margin-bottom: calc(10 * var(--ratio));
}

.my-board-text {
  font-size: calc(25 * var(--ratio));
  font-family: Poppins;
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
  line-height: calc(26 * var(--ratio));
  color: #000000ff;
  margin-bottom: calc(16 * var(--ratio));
  display: block;
  width: 80%;
  padding: 0 8%;
}

.triangle-right {
  width: calc(15 * var(--ratio));
  height: calc(20 * var(--ratio));
  background-color: SlateBlue;
  clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
}

.triangle-left {
  width: calc(15 * var(--ratio));
  height: calc(20 * var(--ratio));
  background-color: SlateBlue;
  clip-path: polygon(100% 0%, 0% 50%, 100% 100%);
}


.day {
  text-align: center;
  font-family: Poppins;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
  color: #000000ff;
  padding: calc(4 * var(--ratio));
}

.day_name {
  font-size: calc(26 * var(--ratio));
  line-height: calc(28 * var(--ratio));
}

.day_number {
  font-size: calc(28 * var(--ratio));
  line-height: calc(28 * var(--ratio));
  align: right;
  display: inline-block;
}

.today {
    background-color: #dbbbf0;
}


.rectangle_time_slot {
  opacity: 0.89;
  border-radius: 10px;
  background: #EBF6F2;
  position: relative;
  min-height: 0;
}

.unavailable {
    background-color: #EBF6F2;
}

.available {
  background-color: #6FAF8E;
}
.holiday {
  background-color: #C06A6A;
}


.assignment-rectangle {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
 }


.summary-container {
  width: 100%;
}

.summary-title {
    width: 100%;
    display: block;
    text-align: center;
  margin-left: 5%;
  font-family: Poppins;
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
  font-size: calc(22 * var(--ratio));
  line-height: calc(18 * var(--ratio));

}

.summary-header {
    width: 100%;
    text-align: right;
      margin-left: 5%;
  font-family: Poppins;
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
  font-size: calc(17 * var(--ratio));
  line-height: calc(18 * var(--ratio));

}



.rectangle-task-container {
  height: calc((100% ) / var(--ntasks));
  width: 100%;
  display: flex;
  justify-content: space-between;
}



.rectangle-assignment-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2%;
  box-sizing: border-box;
}



.rectangle-available-user-container {
  width: 74%;
  height: 96%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2% 0;
}

.rectangle-task {
  width: 20%;
  height: 100%;
  opacity: 1;
  z-index: 3;
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.rectangle-task:last-child {
  margin-bottom: 0;
}

.rectangle-task:hover {
  width: 100%;
}

.task-text {
  font-size: calc(16 * var(--ratio));
  font-family: Poppins;
  font-weight: 400;
  text-decoration: none;
  text-transform: none;
  line-height: calc(18 * var(--ratio));
  color: #000000ff;
  text-align: center;
  display: block;
}

.task-fullname {
  display: none;
  font-size: calc(22 * var(--ratio));
  font-family: Poppins;
  font-weight: 400;
  color: #000000ff;
  text-align: center;
  opacity: 1
}

.rectangle-task:hover .task-text {
  display: none;
}
.rectangle-task:hover ~ .assigned-user-name-text {
  display: none;
}
.rectangle-task:hover ~ .rectangle-assigned-user-name {
  display: none;
}

.rectangle-task:hover .task-fullname {
  display: block;
  opacity: 1;
}

.rectangle-assigned-user-name {
  width: 75%;
  height: 100%;
  align-items: center;
  display: flex;
  justify-content: left;
}
.assigned-user-name-text {
  text-align: left;
  margin-left: 5%;
  font-family: Poppins;
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
  font-size: calc(22 * var(--ratio));
  line-height: calc(24 * var(--ratio));
}


.menu-button {
  display: flex;
  align-items: center;
  width: 80%;
  padding: 3% 8%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 8px;
  margin-bottom: calc(6 * var(--ratio));
}

.menu-button:hover,
.menu-button.active {
  background-color: LightGray;
}

.menu-text {
  font-size: calc(26 * var(--ratio));
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  text-decoration: none;
  text-transform: none;
  line-height: calc(26 * var(--ratio));
  color: #000000ff;
}


.hor-line {
  width: 100%;
  border-top: 1.5px solid #f3f1f1ff;
}

.vert-line {
  width: 1px;
  background-color: #f3f1f1;
  flex-shrink: 0;
}

.pledge-container {
  position: absolute;
  top: 50%;
  left: 85%;
  z-index: 50;
}

.pledge-text {
  font-size: calc(23 * var(--ratio));
  font-family: Inter;
  font-weight: 500;

  text-decoration: none;
  text-transform: none;

  display: flex;
  justify-content: center;
}


.range-slider {
  width: 100%;
  height: 1%;
  background-color: #cccccc;
  border-radius: 5px;
  display: flex;
  justify-content: center;
}


.availibility-legend {
  text-align: left;
}

.available-legend-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: calc(10 * var(--ratio));
  margin-bottom: calc(10 * var(--ratio));
}

.available-legend-item-divider {
    width: 100%;
    height: 5%;
}


.rectangle-legend {
  width: calc(35 * var(--ratio));
  height: calc(35 * var(--ratio));
  opacity: 0.89;
  border-radius: 7px;
  flex-shrink: 0;
}




.legend-item-text {
  font-size: calc(27 * var(--ratio));
  font-family: Inter;
  font-weight: 500;

  text-decoration: none;
  text-transform: none;

  line-height: calc(28 * var(--ratio));
  color: #000000ff;
  align-items: center;
  width: 80%;
  display: grid;
  text-align: center;
}


.welcome {
  font-size: calc(63 * var(--ratio));
  font-family: Inter;
  font-weight: 500;
  line-height: calc(34 * var(--ratio));
  color: #000000ff;
  padding: 10% 5%;
}



.notification-sphere {
  width: 0.5%;
  height: 0.9%;
  top: 3.2%;
  left: 87.5%;
  opacity: 1;
  z-index: 2;
  transform: rotate(0deg);
  border-radius: 50%;
  background: #ff0000ff;
  position: absolute;
}

.im-production-planner {
  background-image: url("./images/icon");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.im-notification {
  width: 1.9%;
  height: 2.9%;
  top: 3.5%;
  left: 86.5%;
  opacity: 1;
  z-index: 1;
  position: absolute;
  opacity: 1;
  background-color: transparent;
  background-position: center;
  background-image: url("./images/Notification");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;

}


.im-availibility {
  background-image: url("./images/icon-availability.svg");
}

.im-tasks {
  background-image: url("./images/icon-tasks.svg");
}

.im-my-profile {
  background-image: url("./images/icon-profile.svg");
}

.im-production-calendar {
  background-image: url("./images/icon-calendar.svg");
}

.im-history {
  background-image: url("./images/icon-assignment.svg");
}

.im-users {
  background-image: url("./images/icon-users.svg");
}

.im-task-assignment {
  background-image: url("./images/icon-taskassignment.svg");
}

.im-logout {
  width: 60%;
  height: 60%;
  background-image: url("./images/Logout.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.logout-text:hover {
  background-color: #f07676;
  border: 2px solid #bd0101;
  cursor: pointer;
}

.logout-text {
  font-family: Poppins;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
  color: #000000;
  font-size: calc(22 * var(--ratio));
  line-height: calc(15 * var(--ratio));
  padding: 10px;
  border-radius: 10px;
  transition: background-color 0.3s ease, border 0.3s ease;
}

/*-----------page showusers-------*/

table {
  width: 75%;
  border-collapse: collapse;
  margin-top: 20px;
}

th,
td {
  border: 1px solid #ddd;
  padding: 8px;
}

th {
  background-color: #f2f2f2;
  text-align: left;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

tr:hover {
  background-color: #f1f1f1;
}

.container {
  max-width: 80%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5%;
}

h1 {
  text-align: center;
}

.btn {
  margin-right: 10px;
  display: inline-block;
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  outline: none;
  color: #fff;
  background-color: #4CAF50;
  border: none;
  border-radius: 4px;
  box-shadow: 0 4px #999;
}

.btn-danger {
  background-color: #d9534f;
    padding: 8px 10px;
      font-size: 16px;
      margin-left: 20px;
}

.btn-danger:hover {
  background-color: #d73731;
}

.btn-warning:hover {
  background-color: #45a049
}

.btn-availability {
  background-color: #33b5ff
}

.btn-assignment{
    background-color: darkcyan;
}

.btn:active {
  background-color: #45a049;
  box-shadow: 0 2px #666;
  transform: translateY(2px);
}

/*------------Page Profile-----------*/

    .profile-card {
        border: 1px solid #ccc;
        border-radius: 5px;
        padding: 20px;
        margin: 10px;
        width: 380px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .profile-field {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }
    .profile-field label {
        font-weight: bold;
        margin-right: 10px;
        width: 100px;
    }
    .profile-field input {
        flex: 1;
        padding: 8px;
        box-sizing: border-box;
    }

    .profile-field select {
        flex: 1;
        padding: 8px;
        box-sizing: border-box;
    }

    .update-button button {
      padding: 10px 20px;
      font-size: 16px;
      cursor: pointer;
      background-color: #4CAF50;
      color: white;
      border: none;
      border-radius: 5px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .update-button button:hover {
      background-color: #45a049;
    }

/* === Profile page (new layout) === */
.profile-layout {
  gap: calc(24 * var(--ratio));
  padding: 1% 3%;
  align-items: stretch;
}

.profile-panel {
  flex: 1;
  background: #f8f8f8;
  border-radius: calc(10 * var(--ratio));
  padding: calc(28 * var(--ratio)) calc(32 * var(--ratio));
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  overflow-y: auto;
  min-height: 0;
}

.profile-section-title {
  font-family: Cinzel, serif;
  font-size: calc(17 * var(--ratio));
  font-weight: 600;
  letter-spacing: calc(1 * var(--ratio));
  margin-bottom: calc(22 * var(--ratio));
  color: #222;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: calc(10 * var(--ratio));
}

.profile-updated-badge {
  font-family: Poppins;
  font-size: calc(13 * var(--ratio));
  font-weight: 600;
  color: #2a7a2a;
  background: #e6f4e6;
  border: 1px solid #b2d8b2;
  border-radius: calc(20 * var(--ratio));
  padding: calc(4 * var(--ratio)) calc(12 * var(--ratio));
  margin-top: calc(8 * var(--ratio));
  text-align: right;
}

.profile-error-badge {
  font-family: Poppins;
  font-size: calc(13 * var(--ratio));
  font-weight: 600;
  color: #7a2a2a;
  background: #f4e6e6;
  border: 1px solid #d8b2b2;
  border-radius: calc(20 * var(--ratio));
  padding: calc(4 * var(--ratio)) calc(12 * var(--ratio));
  margin-top: calc(4 * var(--ratio));
}

.profile-password-hint {
  font-family: Poppins;
  font-size: calc(11 * var(--ratio));
  color: #888;
  margin-top: calc(4 * var(--ratio));
  margin-left: calc(2 * var(--ratio));
}

.profile-row {
  display: flex;
  align-items: center;
  margin-bottom: calc(12 * var(--ratio));
  gap: calc(12 * var(--ratio));
}

.profile-label {
  font-family: Poppins;
  font-weight: 600;
  font-size: calc(13 * var(--ratio));
  color: #666;
  width: calc(130 * var(--ratio));
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-input {
  flex: 1;
  padding: calc(7 * var(--ratio)) calc(11 * var(--ratio));
  font-family: Poppins;
  font-size: calc(15 * var(--ratio));
  border: 1px solid #ddd;
  border-radius: calc(5 * var(--ratio));
  background: #fff;
  color: #333;
}

.profile-input:focus {
  outline: none;
  border-color: #888;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}

.profile-input:disabled {
  background: #ebebeb;
  color: #999;
  cursor: not-allowed;
}

.profile-submit {
  margin-top: calc(18 * var(--ratio));
  display: flex;
  justify-content: flex-end;
}

.profile-button {
  font-family: Poppins;
  font-weight: 600;
  font-size: calc(13 * var(--ratio));
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: calc(9 * var(--ratio)) calc(22 * var(--ratio));
  background-color: #222;
  color: white;
  border: none;
  border-radius: calc(5 * var(--ratio));
  cursor: pointer;
  transition: background-color 0.2s;
}

.profile-button:hover {
  background-color: #444;
}

.profile-skills-grid {
  display: flex;
  flex-direction: column;
  gap: calc(6 * var(--ratio));
}

.profile-skill-item {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--ratio));
  cursor: pointer;
  padding: calc(5 * var(--ratio)) calc(8 * var(--ratio));
  border-radius: calc(5 * var(--ratio));
  transition: background 0.15s;
}

.profile-skill-item:hover {
  background: #eee;
}

.profile-skill-dot {
  width: calc(11 * var(--ratio));
  height: calc(11 * var(--ratio));
  border-radius: 50%;
  flex-shrink: 0;
}

.profile-skill-name {
  font-family: Poppins;
  font-size: calc(15 * var(--ratio));
  color: #333;
}

/* === Single-panel form pages (add user, edit task) === */
.single-form-layout {
  padding: 2% 3%;
  justify-content: center;
}

.single-form-panel {
  flex: 0 0 auto;
  width: 38%;
  min-width: calc(340 * var(--ratio));
}

.profile-back-btn {
  font-family: Poppins;
  font-weight: 500;
  font-size: calc(14 * var(--ratio));
  color: #666;
  cursor: pointer;
  padding: calc(9 * var(--ratio)) calc(16 * var(--ratio));
  border-radius: calc(5 * var(--ratio));
  margin-right: calc(8 * var(--ratio));
  transition: background 0.15s;
}

.profile-back-btn:hover {
  background: #eee;
  color: #333;
}

.profile-color-row {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--ratio));
  flex: 1;
}

.profile-color-picker {
  width: calc(42 * var(--ratio));
  height: calc(34 * var(--ratio));
  border: 1px solid #ddd;
  border-radius: calc(5 * var(--ratio));
  cursor: pointer;
  padding: 2px;
  background: none;
}

.profile-color-hex {
  font-family: monospace;
  font-size: calc(15 * var(--ratio));
  color: #555;
}

.form-hint {
  font-family: Poppins;
  font-size: calc(13 * var(--ratio));
  color: #999;
  margin: calc(-4 * var(--ratio)) 0 calc(14 * var(--ratio)) 0;
  padding-left: calc(142 * var(--ratio));
}

/* === Data tables (users, tasks) === */
.data-layout {
  padding: 1% 3% 2%;
  align-items: stretch;
}

.data-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f8f8f8;
  border-radius: calc(10 * var(--ratio));
  padding: calc(22 * var(--ratio)) calc(28 * var(--ratio));
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.data-panel-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: calc(20 * var(--ratio));
  padding-bottom: calc(12 * var(--ratio));
  border-bottom: 2px solid #e0e0e0;
}

.data-panel-title {
  font-family: Cinzel, serif;
  font-size: calc(17 * var(--ratio));
  font-weight: 600;
  letter-spacing: calc(1 * var(--ratio));
  color: #222;
}

.data-add-btn {
  font-family: Poppins;
  font-weight: 600;
  font-size: calc(13 * var(--ratio));
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: calc(8 * var(--ratio)) calc(18 * var(--ratio));
  background-color: #222;
  color: white;
  border: none;
  border-radius: calc(5 * var(--ratio));
  cursor: pointer;
  transition: background-color 0.2s;
}

.data-add-btn:hover {
  background-color: #444;
}

.data-table {
  /* CSS grid: grid-template-columns and grid-template-rows set per-table via inline style */
  display: grid;
  grid-auto-rows: auto;
  width: 100%;
  font-family: Poppins;
  font-size: calc(15 * var(--ratio));
}

/* Tasks table: rows fill viewport equally */
.data-table-fit {
  flex: 1;
  min-height: 0;
}

.data-table thead,
.data-table tbody,
.data-table thead tr,
.data-table tbody tr {
  display: contents;
}

.data-table th {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(9 * var(--ratio)) calc(12 * var(--ratio));
  font-size: calc(13 * var(--ratio));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  border-bottom: 2px solid #e0e0e0;
}

.data-table td {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(10 * var(--ratio)) calc(12 * var(--ratio));
  color: #333;
  border-bottom: 1px solid #ebebeb;
  overflow: hidden;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: #f0f0f0;
}

.data-table .action-cell {
  justify-content: flex-end;
  white-space: nowrap;
}

.data-action-btn {
  font-family: Poppins;
  font-size: calc(13 * var(--ratio));
  font-weight: 500;
  padding: calc(5 * var(--ratio)) calc(12 * var(--ratio));
  border: none;
  border-radius: calc(4 * var(--ratio));
  cursor: pointer;
  margin-left: calc(4 * var(--ratio));
}

.data-action-btn.edit {
  background-color: #c0c0c0;
  color: #111;
}

.data-action-btn.edit:hover {
  background-color: #a8a8a8;
}

.data-action-btn.danger {
  background-color: #f08080;
  color: #6e0000;
}

.data-action-btn.danger:hover {
  background-color: #e06060;
}

.data-action-btn.avail {
  background-color: #7ab8e8;
  color: #002f5c;
}

.data-action-btn.avail:hover {
  background-color: #5aa0d8;
}

.data-action-btn.assign {
  background-color: #6ecfa0;
  color: #003322;
}

.data-action-btn.assign:hover {
  background-color: #4eb888;
}

.task-color-swatch {
  display: inline-block;
  width: calc(12 * var(--ratio));
  height: calc(12 * var(--ratio));
  border-radius: calc(3 * var(--ratio));
  vertical-align: middle;
  margin-right: calc(6 * var(--ratio));
}

#availableusers {
  font-family: Poppins;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
  color: #000000ff;
}

.unavailableuser {
  background-color: lightgrey;
}

.available-section-user {
  background-color: rgba(17, 174, 131, 0.1);
  margin: 22px 0;
}

.availableusers-text.available-section-user {
  font-size: calc(28 * var(--ratio));
}

.assigned-this-task {
  border: 2px solid #28a745;
  font-weight: 700;
  background-color: rgba(17, 174, 131, 0.25) !important;
}

.assigned-this-task:hover {
  background-color: rgba(220, 53, 69, 0.15) !important;
  border-color: #dc3545;
  cursor: pointer;
}

.assigned-other-task {
  opacity: 0.65;
}

.unavailable-status-user {
  background-color: #fde8d8;
}

.undefined-status-user {
  background-color: #f0f0f0;
}

.availableusers-text-small {
  font-size: calc(14 * var(--ratio));
  margin: 4px 0;
  padding: 4px 4px;
}

.user-task-badge {
  display: inline-block;
  padding: calc(1 * var(--ratio)) calc(5 * var(--ratio));
  border-radius: 4px;
  font-size: calc(13 * var(--ratio));
  font-weight: 600;
  color: white;
  margin-left: calc(6 * var(--ratio));
  vertical-align: middle;
}


.availableusers-titel {
  font-size: calc(25 * var(--ratio));
  line-height: calc(30 * var(--ratio));
  font-weight: 600;
  display: flex;
  justify-content: center;
  white-space: nowrap;
}

.availableusers-task-text {
  font-family: Poppins;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
  color: #000000ff;
  font-size: calc(27 * var(--ratio));
  line-height: calc(30 * var(--ratio));
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  white-space: nowrap;
}

.available-user-rectangle-task {
  position: relative;
  width: 100%;
  height: calc(38 * var(--ratio));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: calc(10 * var(--ratio));
}

.availableusers-date {
  font-family: Poppins;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
  color: #666;
  font-size: calc(16 * var(--ratio));
  line-height: calc(20 * var(--ratio));
  display: flex;
  justify-content: center;
  white-space: nowrap;
  margin-top: 10px;
}


.availableusers-list {
  list-style-type: none;
  padding-left: 0;
  margin-top: 30px;
}

.availableusers-text {
  font-family: Poppins;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
  color: #000000ff;
  font-size: calc(24 * var(--ratio));
  line-height: calc(18 * var(--ratio));
  margin: 15px 0;
  padding: 10px 4px;
  border-radius: 10px;
  transition: background-color 0.3s ease, border 0.3s ease;
}

.no-user-assigned {
    background-color: #8fc0f1;
    text-align: center;
    width: 100%;
    margin-top: 30px;
    display: flex;
    justify-content:center;
}

.availableusers-separator {
  list-style: none;
  border-top: 2px solid #28a745;
  margin: 32px 0;
  padding: 0;
}

.no-skill-user {
  opacity: 0.45;
}

.day-initial-not-available {
    color: #ae1b11;
    font-size: calc(11 * var(--ratio))
}

.day-initial-unavailable {
    color: #ae1b11;
    font-size: calc(11 * var(--ratio))
}

.day-initial-available {
    color: #11ae83;
    font-size: calc(11 * var(--ratio))
}

.day-initial-undefined {
    color: #aaaaaa;
    font-size: calc(11 * var(--ratio))
}


.availableusers-text:hover {
  cursor: default;
}

.availableusers-clickable:hover {
  background-color: #f0f0f0;
  border: 2px solid #d0d0d0;
  cursor: pointer;
}

.container-skills {
  max-width: 800px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/*----------LOGIN PAGE --------*/

.login-page {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.login-container {
  background-color: #fff;
  padding: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  text-align: center;
}

.login-container h2 {
  margin-bottom: 1.5rem;
  font-size: 24px;
  color: #333;
}

.login-container input[type="text"],
.login-container input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
}

.login-container button {
  width: 100%;
  padding: 0.75rem;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.login-container button:hover {
  background-color: #18771d;
}

.login-error {
  background-color: #fde8e8;
  color: #c0392b;
  border: 1px solid #e74c3c;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: calc(15 * var(--ratio));
  font-family: Poppins, sans-serif;
}

/*----------CALENDAR PAGE --------*/

.calendar-left-panel {
  position: fixed;
  left: 20%;
  top: 0;
  width: 16%;
  height: 100vh;
  padding: calc(110 * var(--ratio)) 1% 1% 1%;
  display: flex;
  flex-direction: column;
  gap: calc(40 * var(--ratio));
  overflow-y: auto;
  box-sizing: border-box;
}

.calendar-left-section {
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--ratio));
}

.calendar-left-label {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: calc(20 * var(--ratio));
  color: #000;
}

.calendar-coordinator-select {
  font-family: Poppins, sans-serif;
  font-size: calc(15 * var(--ratio));
  padding: calc(4 * var(--ratio));
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
}

.calendar-task-filters {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: calc(5 * var(--ratio));
}

.calendar-filter-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: calc(12 * var(--ratio));
  height: calc(20 * var(--ratio));
  border-radius: 3px;
  color: #000;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.calendar-filter-badge:hover {
  opacity: 0.8;
}

.calendar-filter-active {
  border-color: #000;
  border-width: 3px;
  transform: scale(1.2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* Filter header: label + active task name on one line */
.calendar-filter-header {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--ratio));
  flex-wrap: wrap;
}

.calendar-active-filter-label {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: calc(13 * var(--ratio));
  padding: calc(2 * var(--ratio)) calc(10 * var(--ratio));
  border-radius: calc(4 * var(--ratio));
  color: #000;
  white-space: nowrap;
  display: none;
}

.calendar-table-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
  margin-left: 16%;
  margin-right: 25%;
}

.calendar-table-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.calendar-subheader {
  display: flex;
  align-items: center;
  gap: calc(20 * var(--ratio));
  padding: 0.5% 0;
  flex-wrap: wrap;
  justify-content: center;
}

.calendar-sidebar-fixed {
  position: fixed;
  right: 0;
  top: 0;
  width: 25%;
  height: 100vh;
  padding: calc(110 * var(--ratio)) 1% 1% 1%;
  overflow-y: auto;
  box-sizing: border-box;
}

.calendar-table {
  border-collapse: collapse;
  margin: 10px 0;
  align-self: flex-start;
}

.calendar-table th,
.calendar-table td {
  border: 1px solid #ddd;
  padding: 6px;
  text-align: center;
  font-family: Poppins, sans-serif;
  font-size: calc(17 * var(--ratio));
}

.calendar-user-header {
  text-align: left;
  width: 1%;
  white-space: nowrap;
}

.calendar-day-header {
  font-weight: 600;
}

.calendar-meridiem-header {
  font-weight: 500;
  font-size: calc(15 * var(--ratio));
}

.calendar-user-name {
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}

.calendar-cell {
  width: calc(60 * var(--ratio));
  height: calc(35 * var(--ratio));
  background-color: #ffffff;
}

.calendar-cell.available {
  background-color: #6FAF8E;
}

.calendar-cell.holiday {
  background-color: #C06A6A;
}

.calendar-col-highlight {
  box-shadow: inset 0 0 0 2px rgba(80, 140, 220, 0.55);
}

/* --- Calendar: visual day separation --- */

/* Stronger right border on PM columns (separates day groups) */
.calendar-table thead tr:first-child > th:not(:first-child) {
  border-right: 2px solid #aaa;
}
.calendar-table thead tr:nth-child(2) > th:nth-child(even) {
  border-right: 2px solid #aaa;
}
.calendar-table tbody tr > td:nth-child(odd):not(:first-child) {
  border-right: 2px solid #aaa;
}

/* Alternating background tint on even days (TUE & THU):
   - day-name header: TUE=th:nth-child(3), THU=th:nth-child(5)  → odd positions ≥ 3
   - AM/PM header:    TUE-AM(3),TUE-PM(4),THU-AM(7),THU-PM(8)  → 4n+3 and 4n+4
   - body cells:      TUE-AM(4),TUE-PM(5),THU-AM(8),THU-PM(9)  → 4n and 4n+1 (≥2)
*/
.calendar-table thead tr:first-child > th:nth-child(odd):not(:first-child):not(.today) {
  background-color: #eeeeee;
}
.calendar-table thead tr:nth-child(2) > th:nth-child(4n+3),
.calendar-table thead tr:nth-child(2) > th:nth-child(4n+4) {
  background-color: #eeeeee;
}
.calendar-table tbody tr > td:nth-child(4n):not(.available):not(.holiday),
.calendar-table tbody tr > td:nth-child(4n+1):not(:first-child):not(.available):not(.holiday) {
  background-color: #eeeeee;
}

.calendar-separator td {
  font-weight: 600;
  font-size: calc(22 * var(--ratio));
  text-align: center;
  padding: 16px 6px;
  background-color: #ffffff;
  border: none;
}

.calendar-assign-panel {
  padding: calc(10 * var(--ratio));
}

.calendar-summary-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.calendar-summary-panel .calendar-summary-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.calendar-assign-title {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: calc(20 * var(--ratio));
  margin-bottom: calc(4 * var(--ratio));
}

.calendar-assign-user {
  font-family: Poppins, sans-serif;
  font-weight: 500;
  font-size: calc(22 * var(--ratio));
  color: #333;
  margin-bottom: calc(4 * var(--ratio));
}

.calendar-assign-date {
  font-family: Poppins, sans-serif;
  font-size: calc(17 * var(--ratio));
  color: #666;
  margin-bottom: calc(12 * var(--ratio));
}

.calendar-assign-tasks {
  display: flex;
  flex-direction: column;
  gap: calc(2 * var(--ratio));
}

.calendar-assign-task {
  padding: calc(8 * var(--ratio)) calc(10 * var(--ratio));
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.calendar-assign-task:hover {
  opacity: 0.8;
}

.calendar-assign-task-name {
  font-family: Poppins, sans-serif;
  font-weight: 500;
  font-size: calc(17 * var(--ratio));
}

.calendar-assign-none {
  font-family: Poppins, sans-serif;
  font-size: calc(16 * var(--ratio));
  color: #999;
}

.calendar-assign-task-current {
  cursor: pointer;
  border: 3px solid #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.calendar-assign-task-current .calendar-assign-task-name {
  font-weight: 700;
  font-size: calc(19 * var(--ratio));
}

.calendar-assign-task-taken {
  opacity: 0.4;
  cursor: default;
}

.calendar-assign-task-hint {
  display: block;
  font-family: Poppins, sans-serif;
  font-size: calc(13 * var(--ratio));
  font-style: italic;
  opacity: 0.7;
}

.calendar-day-clickable {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.calendar-day-clickable:hover {
  background-color: #e0e0e0;
}

.calendar-day-clickable.today:hover {
  background-color: #c9a8e0;
}

.calendar-cell-tasks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 1px;
}

.calendar-cell-tasks.multi .calendar-cell-task {
  min-width: calc(22 * var(--ratio));
  height: calc(15 * var(--ratio));
  font-size: calc(10 * var(--ratio));
  padding: 0 calc(2 * var(--ratio));
}

.calendar-cell-task {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: calc(12 * var(--ratio));
  min-width: calc(28 * var(--ratio));
  height: calc(18 * var(--ratio));
  padding: 0 calc(3 * var(--ratio));
  border-radius: 3px;
  color: #000;
  border: 1px solid #000;
  box-sizing: border-box;
}

.calendar-user-name-text {
  font-weight: 500;
}

.calendar-user-skills {
  margin-top: calc(2 * var(--ratio));
}

.calendar-skill-badge {
  display: inline-block;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: calc(10 * var(--ratio));
  padding: calc(1 * var(--ratio)) calc(2 * var(--ratio));
  border-radius: 2px;
  color: #000;
  margin-right: calc(1 * var(--ratio));
}

.calendar-summary-list {
  display: flex;
  flex-direction: column;
  gap: calc(3 * var(--ratio));
  width: 100%;
}

.calendar-summary-task {
  display: grid;
  grid-template-columns: 1fr calc(90 * var(--ratio)) calc(90 * var(--ratio));
  align-items: center;
  padding: calc(4 * var(--ratio)) calc(8 * var(--ratio));
  border-radius: 6px;
  flex: 1;
}

.calendar-summary-task-name {
  font-family: Poppins, sans-serif;
  font-weight: 500;
  font-size: calc(14 * var(--ratio));
}

.calendar-summary-half {
  display: flex;
  align-items: center;
  gap: calc(3 * var(--ratio));
}

.calendar-summary-meridiem {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: calc(11 * var(--ratio));
  background-color: rgba(0,0,0,0.18);
  color: #fff;
  border-radius: 3px;
  padding: 0 calc(3 * var(--ratio));
  letter-spacing: 0.05em;
}

.calendar-summary-task-user {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: calc(15 * var(--ratio));
  color: #000;
}

.calendar-summary-task-unassigned {
  font-family: Poppins, sans-serif;
  font-weight: 400;
  font-size: calc(16 * var(--ratio));
  color: #555;
  font-style: italic;
}
