/******************************** Root CSS ********************************/
html {
  background-color: #f4f6fa;
}

* {
  font-family: Poppins, Arial, Helvetica, sans-serif;
  padding: 0;
  margin: 0;
  box-sizing: border-box !important;
}

:root {
  --blue: #1999ce;
  --white: #ffffff;
  --black: #000000;
  --grey: #484848;
  --purple: #151732;
}

p {
  margin: 0 !important;
}

a {
  text-decoration: none !important;
}

li {
  list-style: none !important;
}

/******************************** HEADER ********************************/

.entry-title {
  display: none !important;
}

/* Fixed Header */
#staff-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  z-index: 1001;
}

#staff-header .head-btn a {
  color: var(--white);
  margin: 0px 15px;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 10px;
  background-color: var(--blue);
}

#staff-header .head-btn a:hover {
  background-color: var(--white);
  color: var(--blue);
}

/* Fixed Sidebar */
#staff-sidebar {
  position: fixed;
  top: 60px;
  /* below header */
  left: 0;
  width: 220px;
  height: calc(100vh - 60px);
  background-color: var(--purple);
  padding: 20px 10px;
  z-index: 1000;
  overflow-y: auto;
  color: var(--white);
}

#staff-sidebar .head-image img {
  width: 100%;
  margin-bottom: 20px;
}

#staff-sidebar .head-nav ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  width: 100%;
}

#staff-sidebar .head-nav ul li {
  width: 100%;
  margin-bottom: 20px;
}

#staff-sidebar .head-nav ul li a {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

#staff-sidebar .head-nav ul li a:hover {
  background: var(--blue);
}

#staff-sidebar .side-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  object-fit: contain;
}

/******************************** Footer ********************************/

.main-copyright {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  color: var(--white);
  background-color: var(--blue);
  padding: 10px 0px;
  z-index: 1000;
  /* Ensure it stays on top */
}

/* MAIN CONTAINER */
.main-content {
  margin-left: 210px;
  /* leave space for sidebar */
  padding: 50px 10px 10px 10px;
  /* top padding for header */
  transition: margin-left 0.3s ease;
  /* Smooth transition for sidebar toggle */
}

/* RESPONSIVE BREAKPOINTS */

/* Large tablets and small desktops */
@media screen and (max-width: 1024px) {
  .main-content {
    margin-left: 180px;
    /* Reduce sidebar space */
    padding: 40px 15px 15px 15px;
  }

  .main-copyright {
    font-size: 14px;
    padding: 8px 0px;
  }
}

/* Tablets */
@media screen and (max-width: 768px) {
  .main-content {
    margin-left: 0;
    /* Remove sidebar margin */
    padding: 60px 20px 20px 20px;
    /* Increase padding for touch targets */
  }

  .main-copyright {
    font-size: 13px;
    padding: 12px 10px;
    position: relative;
    /* Change from fixed to relative on mobile */
  }
}

/* Mobile devices */
@media screen and (max-width: 480px) {
  .main-content {
    margin-left: 0;
    padding: 15px 15px 15px 15px;
  }

  .main-copyright {
    font-size: 12px;
    padding: 10px 5px;
    position: relative;
  }
}

/* Extra small mobile devices */
@media screen and (max-width: 320px) {
  .main-content {
    padding: 10px 10px 10px 10px;
  }

  .main-copyright {
    font-size: 11px;
    padding: 8px 5px;
  }
}

/* For sidebar toggle functionality (if you have a collapsible sidebar) */
.sidebar-collapsed .main-content {
  margin-left: 60px;
  /* Adjust based on your collapsed sidebar width */
}

@media screen and (max-width: 768px) {
  .sidebar-collapsed .main-content {
    margin-left: 0;
    /* No margin on mobile even when sidebar is collapsed */
  }
}

/* Ensure content doesn't get hidden behind fixed copyright on larger screens */
@media screen and (min-width: 769px) {
  .main-content {
    margin-bottom: 60px;
    /* Add bottom margin to prevent content hiding */
  }
}

/***************************************** IN OUT PAGE *************************************************/

#in-out-page {
  padding: 20px 60px;
  border-radius: 10px;
  margin: 0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Blue header bar */
#in-out-page h2 {
  background-color: var(--blue);
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  padding: 12px 20px;
  margin: 0;
  border-radius: 6px;
}

#in-out-page #punch-form table {
  margin-top: 20px;
}

#in-out-page #punch-form table tr {
  display: flex;
  flex-direction: column;
}

/* Form styling */
#in-out-page form {
  padding: 30px 25px;
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #e3e8f0;
  margin-top: 20px;
}

/* Form table adjustments */
#in-out-page form th {
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 8px;
}

#in-out-page form tr {
  margin-bottom: 15px;
}

#in-out-page form tr td {
  background-color: #f7f9fc;
}

/* Comment box */
#in-out-page textarea {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  font-size: 16px;
  border-radius: 10px;
  width: 100%;
  padding: 15px;
  resize: vertical;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

#in-out-page textarea:focus {
  border-color: var(--blue);
  background-color: #ffffff;
}

/* Button styling */
#in-out-page .submit input[type="submit"] {
  background-color: var(--blue);
  color: white;
  font-size: 15px;
  padding: 10px 25px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

#in-out-page .submit input[type="submit"]:hover {
  background-color: white;
  color: var(--blue);
  border: 1px solid var(--blue);
}

/* IP mismatch message */
#in-out-page p[style*="color: red"] {
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
}

/* Success/Error notices */
.notice {
  margin: 15px 0;
  padding: 15px;
  border-radius: 6px;
  font-size: 14px;
}

.notice-success {
  background-color: #e6fffa;
  border-left: 5px solid #38b2ac;
}

.notice-error {
  background-color: #ffe5e5;
  border-left: 5px solid #e53e3e;
}

/* Logs table */
#in-out-page table.widefat {
  margin-top: 20px;
  background-color: #fff;
  border-collapse: collapse;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

#in-out-page table.widefat thead {
  background-color: var(--blue);
  color: white;
}

#in-out-page table.widefat th,
#in-out-page table.widefat td {
  padding: 12px 15px;
  text-align: left;
  font-size: 14px;
}

#in-out-page table.widefat tr:nth-child(even) {
  background-color: #f9fafb;
}

/***************************************** Apply Leave *************************************************/
#leave-form {
  background: var(--white);
  margin: 0 !important;
  max-width: 100%;
  padding: 20px 60px;
  border-radius: 10px;
  font-family: Arial, sans-serif;
}

#leave-form h3 {
  background-color: var(--blue);
  color: var(--white);
  padding: 10px 20px;
  font-size: 20px;
  border-radius: 6px;
  margin-bottom: 20px;
}

#leave-form form {
  background-color: var(--white);
  padding: 0;
  margin-bottom: 30px;
}

#leave-form .form-group {
  margin-bottom: 15px;
}

#leave-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--black);
  font-size: 18px;
}

#leave-form input[type="text"],
#leave-form textarea,
#leave-form select,
#leave-form input[type="date"] {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background-color: #f4f6fa;
}

#leave-form .form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}

#leave-form .form-col {
  min-width: 300px;
}

#leave-form .submit {
  margin-top: 30px;
  text-align: right;
}

#leave-form .submit input[type="submit"] {
  background-color: var(--blue);
  color: var(--white);
  border: none;
  padding: 10px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
}

#leave-form .submit input[type="submit"]:hover {
  background-color: var(--white);
  color: var(--blue);
  border: 4px solid var(--blue);
}

#leave-form h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--blue);
  font-weight: 600;
}

#leave-form .widefat {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 15px;
}

#leave-form .widefat thead {
  background-color: var(--blue);
  color: var(--white);
}

#leave-form .widefat th,
#leave-form .widefat td {
  padding: 12px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid #eaeaea;
}

#leave-form .widefat tbody tr:nth-child(even) {
  background-color: #f9fbfd;
}


/***WFH FORM***/


/***************************************** Apply Leave *************************************************/
#wfh-form {
  background: var(--white);
  margin: 0 !important;
  max-width: 100%;
  padding: 20px 60px;
  border-radius: 10px;
  font-family: Arial, sans-serif;
}

#wfh-form h3 {
  background-color: var(--blue);
  color: var(--white);
  padding: 10px 20px;
  font-size: 20px;
  border-radius: 6px;
  margin-bottom: 20px;
}

#wfh-form form {
  background-color: var(--white);
  padding: 0;
  margin-bottom: 30px;
}

#wfh-form .form-group {
  margin-bottom: 15px;
}

#wfh-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--black);
  font-size: 18px;
}

#wfh-form input[type="text"],
#wfh-form textarea,
#wfh-form select,
#wfh-form input[type="date"] {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background-color: #f4f6fa;
}

#wfh-form .form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}

#wfh-form .form-col {
  min-width: 300px;
}

#wfh-form .submit {
  margin-top: 30px;
  text-align: right;
}

#wfh-form .submit input[type="submit"] {
  background-color: var(--blue);
  color: var(--white);
  border: none;
  padding: 10px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
}

#wfh-form .submit input[type="submit"]:hover {
  background-color: var(--white);
  color: var(--blue);
  border: 4px solid var(--blue);
}

#wfh-form h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--blue);
  font-weight: 600;
}

#wfh-form .widefat {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 15px;
}

#wfh-form .widefat thead {
  background-color: var(--blue);
  color: var(--white);
}

#wfh-form .widefat th,
#wfh-form .widefat td {
  padding: 12px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid #eaeaea;
}

#wfh-form .widefat tbody tr:nth-child(even) {
  background-color: #f9fbfd;
}

/***************************************** Staff Dashboard *************************************************/

/* Dashboard Section  */
#dashboard {
  padding: 30px;
  margin: auto;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  border: 2px solid var(--blue);
}

.profile-info h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  color: var(--black);
}

.profile-info p {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--grey);
}

.date-bar {
  background-color: var(--blue);
  color: var(--white);
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  margin-top: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.stat-card {
  background-color: var(--white);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px #e6e6e6;
  text-align: center;
}

.stat-card .label {
  font-size: 16px;
  color: var(--black);
  margin-bottom: 8px;
  font-weight: 600;
}

.stat-card .value {
  font-size: 20px;
  color: var(--blue);
  font-weight: bold;
}

/* Notice Section  */
#notice {
  padding: 60px 30px;
}

/* Container for cards */
#notice .container {
  display: flex;
  justify-content: space-between;
  max-width: 1600px;
  gap: 24px;
}

/* Card base styles */
#notice .new-notice,
#notice .upcoming-event,
#notice .upcoming-holiday {
  width: 32%;
  padding: 30px 25px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid #d6e6f9;
  box-shadow: 0 12px 28px rgba(0, 123, 255, 0.15);
  transition: all 0.3s ease;
}

/* Hover effect */
#notice .new-notice:hover,
#notice .upcoming-event:hover,
#notice .upcoming-holiday:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 123, 255, 0.15);
}

/* Card heading */
#notice h4 {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  text-align: left;
  margin-bottom: 25px;
}

/* Date row (flex) */
#notice .item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
}

/* Date badge box */
#notice .date-box {
  background-color: var(--grey);
  color: var(--white);
  width: 50px;
  height: 50px;
  text-align: center;
  border-radius: 6px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 13px;
  line-height: 1.2;
}

#notice .date-box .day {
  font-size: 16px;
  line-height: 1.2;
}

#notice .date-box .month {
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* Text beside date */
#notice .item .text {
  font-size: 15px;
  color: var(--grey);
}

/* Paragraph under items */
#notice p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--grey);
  margin-top: 10px;
}

/* View all link */
#notice .view-all {
  display: block;
  text-align: left;
  font-size: 14px;
  color: var(--blue);
  text-decoration: none;
  margin-top: 10px;
  font-weight: 500;
}

#notice .view-all:hover {
  text-decoration: underline;
}

/********************************* Employee Timesheet ****************************************************/

#emp-timesheet {
  margin: 50px;
  margin-bottom: 50px;
}

#emp-timesheet h2 {
  background-color: var(--blue);
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  padding: 12px 20px;
  margin-bottom: 20px;
  border-radius: 6px;
}

#emp-timesheet table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

#emp-timesheet th,
#emp-timesheet td {
  padding: 12px;
  border: 1px solid var(--blue);
}

#emp-timesheet thead th {
  background-color: var(--blue);
  color: var(--white);
}

#emp-timesheet tbody tr:nth-child(even) {
  background-color: var(--white);
}

#emp-timesheet .total-row td {
  font-weight: bold;
  color: var(--black);
}

/************************************* Login Form  *********************************/

#login-form {
  height: calc(100vh - 44px);
  max-width: 100%;
  margin: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

#login-form .login-form-container {
  max-width: 400px;
  margin: 60px auto;
  padding: 40px 30px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
}

/* Logo styling */
#login-form img {
  width: 100px;
  margin-bottom: 20px;
  border-radius: 50%;
}

/* Input field wrapper */
#login-form p {
  margin-bottom: 20px;
  text-align: left;
}

/* Labels */
#login-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
  color: var(--black);
  font-size: 18px;
}

/* Inputs */
#login-form input.input {
  width: 100%;
  margin: 10px;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

#login-form input.input:focus {
  border-color: var(--blue);
  background-color: var(--white);
  outline: none;
}

/* Remember me checkbox */
#login-form .login-remember label {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
}

/* Checkbox alignment */
#login-form input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: var(--blue);
}

/* Submit button */
#login-form .login-submit input[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: var(--blue);
  color: var(--white);
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#login-form .login-submit input[type="submit"]:hover {
  border: 4px solid var(--blue);
  color: var(--blue);
  background-color: var(--white);
}

.refresh-btn {
  background-color: #1c9ccc;
  color: #fff;
  border: 2px solid #1c9ccc;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.refresh-btn:hover {
  background-color: #fff;
  border: 2px solid #007cba;
  color: #007cba;
}

.pagination-wrapper {
  margin-top: 20px;
  margin-bottom: 50px;
  text-align: center;
}

.pagination {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.page-link {
  padding: 8px 12px;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #007cba;
  transition: background-color 0.2s ease;
}

.page-link:hover {
  background-color: #007cba;
}

.current-page {
  padding: 8px 12px;
  border: 1px solid #007cba;
  border-radius: 4px;
  background: #007cba;
  color: white;
  font-weight: bold;
}

.form-group {
  margin-bottom: 15px;
}

.form-row {
  margin-bottom: 20px;
}

.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.gap-5 {
  gap: 20px;
}

.form-col {
  flex: 1;
}

.submit {
  margin-top: 20px;
  text-align: center;
}

.btn {
  background-color: #007cba;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn:hover {
  background-color: #005a87;
}

.widefat {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.widefat th,
.widefat td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-align: left;
}

.widefat th {
  background-color: #4cb1e4;
  font-weight: bold;
}

.leave-requests-section {
  margin-bottom: 50px;
}

.no-requests-message {
  margin-bottom: 50px;
  padding: 20px;
  text-align: center;
  color: #666;
}

/* New styles for conditional dropdowns */
.half-day-options,
.short-leave-options {
  display: none;
  margin-top: 10px;
}

.half-day-options.show,
.short-leave-options.show {
  display: block;
}

.half-day-label,
.short-leave-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.short-leave-info {
  font-size: 12px;
  color: #888;
  margin-top: 5px;
  font-style: italic;
}

.balance-info {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.balance-item {
  background: #f8f9fa;
  padding: 10px 15px;
  border-radius: 6px;
  border-left: 4px solid #007cba;
  min-width: 200px;
}

.balance-item h4 {
  margin: 0;
  font-size: 14px;
  color: #333;
}

.balance-item .balance-note {
  font-size: 11px;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}

.cancel-leave,
.cancel-wfh {
  background-color: var(--blue);
  color: var(--white);
  padding: 10px 30px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
}

/******************************** SALARY DASHBOARD ********************************/

.raise-concern-btn {
  font-size: 10px;
  padding: 2px 6px;
  margin-top: 4px;
  margin-bottom: 4px;
  cursor: pointer;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 3px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-decoration: none;
}

.raise-concern-btn:hover {
  background-color: #005a87;
}

.day-hours {
  font-size: 0.7em;
  color: #555;
  margin-top: 2px;
  text-align: center;
}

.employee-dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.monthly-salary-heading {
  margin-top: 80px;
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #209ccc, #1a8bb3);
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(32, 156, 204, 0.3);
}

.monthly-salary-heading h2 {
  margin: 15px;
  font-size: 2.2em;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dashboard-filters {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0 30px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #209ccc;
}

.filter-form {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-weight: 600;
  color: #333;
  font-size: 0.9em;
}

.filter-group select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  min-width: 120px;
  border-color: #209ccc;
}

.filter-group select:focus {
  outline: none;
  border-color: #209ccc;
  box-shadow: 0 0 0 2px rgba(32, 156, 204, 0.2);
}

.filter-btn {
  background: #209ccc;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.filter-btn:hover {
  background: #1a8bb3;
}

.dashboard-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
}

.card-header {
  background: #f8f9fa;
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  border-left: 4px solid #209ccc;
}

.card-header h3 {
  margin: 0;
  font-size: 1.4em;
  color: #333;
  font-weight: 600;
}

.card-content {
  padding: 20px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.profile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #209ccc;
}

.profile-item .label {
  font-weight: 600;
  color: #555;
}

.profile-item .value {
  font-weight: 700;
  color: #333;
}

.salary-amount {
  color: #28a745 !important;
  font-size: 1.2em;
  font-weight: 800;
}

.leaves-count {
  color: #209ccc !important;
}

.short-leaves {
  color: #ffc107 !important;
}

.calendar-container {
  max-width: 800px;
  margin: 0 auto;
}

.calendar-grid {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #209ccc;
  color: white;
}

.calendar-day-header {
  padding: 15px;
  text-align: center;
  font-weight: 600;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-day-header:last-child {
  border-right: none;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
  min-height: 80px;
  padding: 8px;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.3s;
}

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

.calendar-day.empty {
  background: #f8f9fa;
  cursor: default;
}

.day-number {
  font-weight: 600;
  font-size: 1.1em;
}

.day-status {
  font-size: 0.8em;
  text-align: center;
  padding: 2px 4px;
  border-radius: 3px;
  color: white;
  font-weight: 600;
}

.calendar-day.present .day-status {
  background: #28a745;
}

.calendar-day.half-day .day-status {
  background: #ffc107;
  color: #333;
}

.calendar-day.short-leave .day-status {
  background: #fd7e14;
}

.calendar-day.full-day .day-status,
.calendar-day.holiday .day-status,
.calendar-day.leave .day-status,
.calendar-day.short-day .day-status {
  background: #dc3545;
}

.calendar-day.wfh .day-status {
  background: #6610f2;
}

.calendar-day.no-record .day-status {
  background: #6c757d;
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: inline-block;
}

.legend-color.present {
  background: #28a745;
}

.legend-color.half-day {
  background: #ffc107;
}

.legend-color.short-day {
  background: #fd7e14;
}

.legend-color.leave {
  background: #dc3545;
}

.legend-color.wfh {
  background: #6610f2;
}

.legend-color.no-record {
  background: #6c757d;
}

.calendar-day.sunday {
  background-color: #ffe6e6;
  color: #666;
}

.calendar-day.sunday .day-status {
  background: #ff9999;
  color: white;
}

.calendar-day.saturday {
  background-color: #ffe6e6;
  color: #666;
}

.calendar-day.saturday .day-status {
  background: #ff9999;
  color: white;
}

.legend-color.sunday {
  background: #ff9999;
}

.salary-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.salary-section h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1.2em;
  border-bottom: 2px solid #209ccc;
  padding-bottom: 5px;
}

.salary-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.salary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
}

.salary-item .label {
  font-weight: 600;
  color: #555;
}

.salary-item .value {
  font-weight: 700;
  color: #333;
}

.salary-item .value.positive {
  color: #28a745;
}

.salary-item .value.negative {
  color: #dc3545;
}

.salary-item.final-salary {
  background: #209ccc;
  color: white;
  font-size: 1.1em;
}

.salary-item.final-salary .label,
.salary-item.final-salary .value {
  color: white;
}

.employee-dashboard-error {
  background: #f8d7da;
  color: #721c24;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

.calendar-day.official-holiday {
  background-color: #e0f7fa;
  color: #006064;
}

.calendar-day.official-holiday .day-status {
  background: #00bcd4;
  color: white;
  font-size: 0.75em;
}

.legend-color.official-holiday {
  background-color: #00bcd4;
}

.raise-concern-btn.raised {
  background-color: #6c757d;
  cursor: not-allowed;
}

.concern-form-group {
  margin-bottom: 15px;
}

.concern-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.concern-form-group input,
.concern-form-group select,
.concern-form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.concern-form-group input[readonly] {
  background: #eee;
  cursor: not-allowed;
}

.concerns-history {
  margin-top: 30px;
}

.concerns-list {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.concern-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
  background-color: #fff;
}

.concern-item:last-child {
  border-bottom: none;
}

.concern-item.pending {
  border-left: 4px solid #ffc107;
}

.concern-item.approved {
  border-left: 4px solid #28a745;
}

.concern-item.rejected {
  border-left: 4px solid #dc3545;
}

.concern-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.concern-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.concern-status.pending {
  background-color: #fff3cd;
  color: #856404;
}

.concern-status.approved {
  background-color: #d4edda;
  color: #155724;
}

.concern-status.rejected {
  background-color: #f8d7da;
  color: #721c24;
}

.concern-details {
  font-size: 14px;
  color: #666;
}

.concern-details strong {
  color: #333;
}

.form-message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.form-message.success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.form-message.error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

@media (max-width: 768px) {
  .employee-dashboard-container {
    margin-left: 5px;
    margin-right: 5px;
  }

  .monthly-salary-heading h2 {
    font-size: 1.8em;
  }

  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-item {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .calendar-day {
    min-height: 60px;
    padding: 4px;
  }

  .day-number {
    font-size: 1em;
  }

  .day-status {
    font-size: 0.7em;
  }

  .salary-breakdown {
    grid-template-columns: 1fr;
  }
}