/* Employee Profile Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    min-height: 100vh;
}

.media-uploader-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    padding: 30px;
}


.media-uploader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
.media-uploader-heading {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.media-uploader-form {
    display: flex;
    flex-direction: column;
}

.media-uploader-form-group {
    margin-bottom: 20px;
}


.doc_media_container {
    width: 100%;
    max-width: 900px;
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  .doc_media_item_compact {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 7px;
    background-color: #9b51e00a;
    width: 100%;
    transition: all 0.2s ease;
  }
  
  .doc_media_item_compact:hover {
    background-color: #9b51e02d;
  }
  
  .doc_icon_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 16px;
  }
  
  .doc_file_icon {
    width: 42px;
    height: 42px;
    background-color: #7d3eff;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
  }
  
  .doc_file_date {
    font-weight: bold;
    font-size: 13px;
    color:#7d3eff ;
  }
  
  .doc_file_icon {
    width: 42px;
    height: 42px;
    background-color: #7d3eff;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .doc_content_wrapper {
    flex: 1;
    display: flex;
    align-items: center;
  }
  
  .doc_title_section {
    flex: 1;
  }
  
  .doc_file_title {
    color: #1a73e8;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 2px;
  }
  
  .doc_file_subtitle {
    color: #70757a;
    font-size: 13px;
  }
  
  .doc_meta_section {
    display: flex;
    align-items: center;
    color: #70757a;
    font-size: 13px;
    margin-right: 24px;
  }
  

  
  .doc_file_type {
    display: flex;
    align-items: center;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid #e0e0e0;
  }
  
  .doc_download_button {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #7d3eff;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .doc_download_button:hover {
    background-color: #6a30e0;
  }

  .doc_action_buttons {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .doc_view_button {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .doc_view_button:hover {
    background-color: #e0e0e0;
  }
  
  .doc_view_icon {
    margin-right: 6px;
  }
  
  .doc_download_icon {
    margin-right: 6px;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .doc_media_item_compact {
      flex-wrap: wrap;
    }
    
    .doc_content_wrapper {
      flex-wrap: wrap;
      padding: 8px 0;
    }
    
    .doc_title_section {
      width: 100%;
      margin-bottom: 8px;
    }
    
    .doc_meta_section {
      margin-right: 0;
      margin-bottom: 8px;
    }
  }
.media-uploader-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.media-uploader-text-input,
.media-uploader-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.media-uploader-text-input:focus,
.media-uploader-textarea:focus {
    outline: none;
    border-color: #3498db;
}

.media-uploader-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f8f9fa;
    border: 2px dashed #dcdfe6;
    border-radius: 6px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.media-uploader-dropzone:hover {
    background-color: #f0f2f5;
    border-color: #3498db;
}

.media-uploader-dropzone-active {
    background-color: #e8f4fd;
    border-color: #3498db;
}

.media-uploader-file-input {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.media-uploader-icon {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 15px;
}

.media-uploader-file-info {
    display: flex;
    align-items: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.media-uploader-file-preview {
    max-width: 50px;
    max-height: 50px;
    margin-right: 10px;
    display: none;
}

.media-uploader-file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.media-uploader-submit-button {
    background-color: #9b34db;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.media-uploader-submit-button:hover {
    background-color: #2980b9;
}

.media-uploader-file-types {
    margin-top: 8px;
    font-size: 14px;
    color: #777;
}

.media-uploader-progress-container {
    width: 100%;
    height: 8px;
    background-color: #f0f2f5;
    border-radius: 4px;
    margin-top: 20px;
    overflow: hidden;
    display: none;
}

.media-uploader-progress-bar {
    height: 100%;
    width: 0;
    background-color: #3498db;
    transition: width 0.3s;
}

.media-uploader-success-message {
    text-align: center;
    color: #27ae60;
    margin-top: 20px;
    display: none;
}

.media-uploader-error-message {
    text-align: center;
    color: #e74c3c;
    margin-top: 20px;
    display: none;
}


.document-employees-container {
    margin-bottom: 20px;
}

.document-employees {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    background-color: #ffffff;
    color: #34495e;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23606060' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.document-employees:focus {
    outline: none;
    border-color: #3498db;
}

/* Add a label similar to other form elements if needed */
.document-employees-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}
.profile-container {
    max-width: 2000px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.profile-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e6e6e6;
    position: relative;
}

.profile-header h1 {
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
    font-weight: 600;
}


.hr-rating-popup {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
  }
  .hr-rating-popup-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    top: 0;
    left: 0;
  }
  .hr-rating-popup-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: popup-fade-in 0.3s ease-out;
  }
  @keyframes popup-fade-in {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hr-rating-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
  }
  .hr-rating-popup-header h4 {
    margin: 0;
    font-weight: 600;
    color: #333;
  }
  .hr-rating-close {
    font-size: 24px;
    font-weight: bold;
    color: #777;
    cursor: pointer;
  }
  .hr-rating-close:hover {
    color: #333;
  }
  .hr-rating-popup-body {
    padding: 20px;
  }
  .rating-input-container {
    margin-bottom: 15px;
  }
  .rating-input-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
  }
  .hr-rating-popup-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
    text-align: right;
  }
  .hr-rating-popup-footer button {
    margin-left: 10px;
  }

.profile-header .employee-code {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.3rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.applicant-card {
    background-color: #fce9ff;
    border-radius: 20px;
    margin-bottom: 15px;
    overflow: hidden;
}

.applicant-summary {
    display: grid;
    grid-template-columns: 1fr 1fr 0.5fr 0.5fr 0.5fr 0.5fr;
    padding: 15px;
    align-items: center;
}

.applicant-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.applicant-info p {
    font-size: 14px;
    color: #444;
}

.rating {
    text-align: center;
    font-weight: bold;
}

.rating p {
    font-size: 12px;
    margin-top: 5px;
}

.btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
}

.btn-reject {
    background-color: #666;
}

.btn-shortlist {
    background-color: #9c27b0;
}

.btn-expand {
    background-color: transparent;
    color: #0066cc;
    text-decoration: underline;
    border: none;
    cursor: pointer;
    font-weight: normal;
}

.applicant-details {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-top: 1px solid #ccc;
}

.details-section {
    margin: 15px 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.details-section:last-child {
    border-bottom: none;
}

.section-header {
    color: #9c27b0;
    font-size: 18px;
    margin-bottom: 10px;
}

.detail-row {
    margin-bottom: 10px;
}

.detail-label {
    color: #0066cc;
    font-weight: bold;
    margin-right: 10px;
}

.job-description {
    margin-top: 10px;
}

.job-description p {
    margin-bottom: 10px;
    line-height: 1.4;
}

#toggleButton{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
}

#toggleButton.clocked-in {
    background: linear-gradient(135deg, #ff512f 0%, #dd2476 100%);
    box-shadow: 0 4px 15px rgba(255, 81, 47, 0.3);
}

#toggleButton:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#toggleButton.clocked-in:hover {
    box-shadow: 0 6px 20px rgba(255, 81, 47, 0.4);
}

#performanceButton {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    white-space: nowrap;
}

#performanceButton:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.info-section {
    margin-bottom: 2.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.info-section h2 {
    color: #4a5568;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #f0f0f0;
    font-size: 1.5rem;
    position: relative;
}

.info-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.info-item {
    margin-bottom: 0.5rem;
    transition: transform 0.2s;
    padding: 0.8rem;
    border-radius: 10px;
}

.info-item:hover {
    transform: translateY(-2px);
    background: rgba(102, 126, 234, 0.05);
}

.info-item label {
    display: block;
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.info-item .value {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 500;
}

.empty-value {
    color: #a0aec0;
    font-style: italic;
}

.status-badge {
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    color: white;
}

.status-present {
    background: #48bb78;
}

.status-late {
    background: #ed8936;
}

.status-absent {
    background: #f56565;
}

.status-day_off {
    background: #4299e1;
    padding: 0.3rem 0.8rem;
    font-weight: 500;
}

.time-value {
    color: #2d3748;
    font-weight: 500;
}

.attendance-summary {
    display: flex;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.summary-item {
    text-align: center;
    padding: 0.5rem 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 150px;
}

.summary-item strong {
    color: #4a5568;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.summary-item.deducted-salary {
    background-color: #fff0f0;
    border-left: 3px solid #e53e3e;
    color: #e53e3e;
    font-weight: 500;
}

.summary-item.deducted-salary strong {
    color: #c53030;
}

.summary-item.day-off {
    background-color: #ebf8ff;
    border-left: 3px solid #4299e1;
    color: #2b6cb0;
}

.summary-item.day-off strong {
    color: #2c5282;
}

/* Add Tab Navigation Styles */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e6e6e6;
    padding-bottom: 1rem;
}

.tab-button {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #718096;
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: #667eea;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-button.active {
    color: #667eea;
    font-weight: 600;
}

.tab-button.active::after {
    transform: scaleX(1);
}

.tab-button:hover {
    color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section header with button */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin: 0;
}

.request-leave-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.request-leave-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.request-leave-button:active {
    transform: translateY(0);
}

/* Leave Types Summary Styles */
.leave-types-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.leave-type-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.leave-type-info {
    margin-bottom: 15px;
}

.leave-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.leave-balance {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.days-remaining {
    font-size: 24px;
    font-weight: 700;
    color: #2271b1;
}

.total-days {
    font-size: 16px;
    color: #666;
}

.days-label {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
}

.leave-progress {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #2271b1;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.leave-details {
    margin-top: 10px;
}

.days-used {
    font-size: 14px;
    color: #666;
}

.error-message {
    color: #dc3545;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
    border-left: 4px solid #dc3545;
    margin-bottom: 20px;
}

.loading-placeholder {
    text-align: center;
    padding: 20px;
    color: #666;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Leave Types Styles */
.leave-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.leave-type-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    padding: 20px;
    transition: all 0.3s ease;
    border-top: 4px solid #4a90e2;
}

.leave-type-card:nth-child(3n+1) {
    border-top-color: #4a90e2; /* Blue */
}

.leave-type-card:nth-child(3n+2) {
    border-top-color: #50c878; /* Green */
}

.leave-type-card:nth-child(3n+3) {
    border-top-color: #9b59b6; /* Purple */
}

.leave-type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.leave-type-card .leave-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.leave-type-card .leave-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.leave-type-card .stat-item {
    text-align: center;
    padding: 12px;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.leave-type-card .stat-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leave-type-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.leave-types-container {
    margin-bottom: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
}

.leave-types-summary {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.leave-type-card {
    background: white;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    min-width: 160px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.leave-type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.leave-type-name {
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.leave-type-days {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 700;
}

.leave-type-days span {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 400;
    margin-left: 0.25rem;
}

.loading-placeholder {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.loading-placeholder {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Position Cards Styles */
.positions-section {
    margin-top: 2rem;
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.position-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.position-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(102, 126, 234, 0.1);
}

.position-card .position-title {
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.position-card .department-name {
    color: #718096;
    font-size: 0.95rem;
    font-weight: 400;
}

/* Leave Request Styles */
.leave-request-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #667eea;
}

.leave-request-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(to right, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.employee-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4a5568;
}

.request-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
}

.status-pending {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
}

.status-approved {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.status-rejected {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
}

.request-body {
    padding: 20px;
}

.request-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: inline;
}

.info-label {
    color: #718096;
    font-weight: 500;
    min-width: 100px;
}

.info-value {
    color: #2d3748;
    font-weight: 500;
}

.duration-dates {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    padding: 4px 10px;
    border-radius: 6px;
    color: #4a5568;
    font-weight: 600;
    margin-left: 5px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.95rem;
}

.duration-days {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.reason-text {
    font-style: italic;
    line-height: 1.0;
    font-weight: normal;
    font-size: 0.95rem;
    color: #4a5568;
}

.request-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 20px 20px;
}

.approve-button, .reject-button .details-button{
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.approve-button {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.approve-button:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(56, 161, 105, 0.3);
}

.reject-button {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    color: white;
}


.reject-button:hover {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(245, 101, 101, 0.3);
}

.details-button {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: white;
}

.details-button:hover {
    background: linear-gradient(135deg, #ffb300 0%, #ffa000 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.request-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 20px 20px;
}

.no-requests, .error-message, .loading-placeholder {
    padding: 20px;
    text-align: center;
    color: #718096;
    font-style: italic;
}

.error-message {
    color: #f56565;
}

.approved-status {
    color: #28a745;
    font-weight: 600;
    font-style: italic;
}

.rejected-status {
    color: #dc3545;
    font-weight: 600;
    font-style: italic;
}

/* Make the pending requests container scrollable if there are many requests */
.pending-requests-container {
    max-height: 600px;
    overflow-y: auto;
    padding: 10px;
}

/* Rejection Dialog Styles */
#rejection-dialog .modal-content {
    max-width: 500px;
}

#rejection-dialog .form-group {
    margin-bottom: 20px;
}

#rejection-dialog textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

#rejection-dialog .submit-rejection {
    background-color: #dc3545;
    color: white;
}

#rejection-dialog .submit-rejection:hover {
    background-color: #c82333;
}

#rejection-dialog .cancel-rejection {
    background-color: #6c757d;
    color: white;
}

#rejection-dialog .cancel-rejection:hover {
    background-color: #5a6268;
}

/* Handover Employee Styles */
.handover-info {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed #e0e0e0;
}

.handover-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.handover-value {
    display: flex;
    align-items: center;
    gap: 5px;
}

.handover-name {
    font-weight: 500;
    color: #3498db;
}

.handover-code {
    color: #777;
    font-size: 0.9em;
}

/* Handover styles for pending requests */
.info-row.handover-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

.handover-details {
    display: flex;
    align-items: center;
    gap: 5px;
}

.handover-details .handover-name {
    font-weight: 500;
    color: #3498db;
}

.handover-details .handover-code {
    color: #777;
    font-size: 0.9em;
}

/* Late status styling */
.attendance-status-message {
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in-out;
}

.attendance-status-message.success {
    background-color: #e6f7e6;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.attendance-status-message.error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.attendance-status-message.late {
    background-color: #fff8e1;
    color: #ff8f00;
    border-left: 4px solid #ff8f00;
}

.attendance-status-message.non-working-day {
    background-color: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #1565c0;
    font-size: 16px;
    text-align: center;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Button Styles */
#attendance-toggle.late-status {
    background-color: #ff9800;
    border-color: #f57c00;
}

#attendance-toggle.late-status:hover {
    background-color: #f57c00;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Attendance Status Messages */
.attendance-status-message {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in-out;
}

.attendance-status-message.success {
    background-color: #e6f7e6;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.attendance-status-message.error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.attendance-status-message.late {
    background-color: #fff8e1;
    color: #ff8f00;
    border-left: 4px solid #ff8f00;
}

.attendance-status-message.non-working-day {
    background-color: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #1565c0;
    font-size: 16px;
    text-align: center;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Button Styles */
#attendance-toggle.late-status {
    background-color: #ff9800;
    border-color: #f57c00;
}

#attendance-toggle.late-status:hover {
    background-color: #f57c00;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.kpi-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.kpi-table th,
.kpi-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e6e6e6;
}

.kpi-table th {
    background-color: rgba(102, 126, 234, 0.1);
    color: #4a5568;
    font-weight: 600;
}

.kpi-table tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

.summary-row {
    background: none !important;
}

.summary-row:hover {
    background: none !important;
}

.days-calculation {
    margin: 10px 0 20px;
    text-align: center;
}

.days-count {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.3s ease;
}

.days-count.highlight {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    font-weight: 600;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #718096;
    font-style: italic;
}

.date-range {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid #e6e6e6;
}

.date-range .date-input {
    padding: 0.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    width: 100%;
}

.date-range .date-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #667eea;
}

.date-range .date-input::placeholder {
    color: #a0aec0;
}

.date-range .date-separator {
    margin: 0 1rem;
    color: #718096;
}

.date-range .date-input[type="date"]::-webkit-calendar-picker-indicator {
    background: url('calendar-icon.png') no-repeat;
    background-size: 20px;
    background-position: center;
    cursor: pointer;
}

.date-range .date-input[type="date"]::-webkit-inner-spin-button {
    display: none;
}

.date-range .date-input[type="date"]::-webkit-clear-button {
    display: none;
}

.date-range .date-input[type="date"]::-webkit-calendar-picker-indicator {
    background: url('calendar-icon.png') no-repeat;
    background-size: 20px;
    background-position: center;
    cursor: pointer;
}

.date-range .date-input[type="date"]::-webkit-inner-spin-button {
    display: none;
}

.date-range .date-input[type="date"]::-webkit-clear-button {
    display: none;
}

@media (max-width: 768px) {
    .attendance-status-message {
        margin: 10px 0;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
        align-items: center;
    }

    #toggleButton, #reverseButton, #performanceButton {
        width: 100%;
        max-width: 300px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    body {
        padding: 1rem;
    }
    
    .profile-container {
        padding: 1.5rem;
        max-width: 2000px;
    }
    
    .kpi-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .kpi-table th,
    .kpi-table td {
        padding: 0.8rem;
    }
    
    .attendance-summary {
        padding: 1rem;
        gap: 0.8rem;
    }

    .summary-item {
        padding: 0.5rem 1rem;
        min-width: calc(50% - 0.8rem);
    }

}

/* Authorities Section Styles */
.authorities-container {
    max-width: 1200px;
    margin: 1rem auto 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.authorities-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eaedf0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.authorities-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.authorities-content {
    padding: 24px;
}

.action-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.action-group {
    flex: 1;
    min-width: 280px;
    background-color: #f9fafc;
    border-radius: 6px;
    padding: 16px;
    border: 1px solid #eaedf0;
}

.group-title {
    font-size: 15px;
    font-weight: 600;
    color: #4a5568;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaedf0;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
}

.action-button:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.action-button.primary {
    background-color: #6366f1;
    color: white;
    border-color: #6366f1;
}

.action-button.primary:hover {
    background-color: #5559de;
    border-color: #5559de;
}

.icon {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

.authority-feedback {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 10px;
    background-color: rgba(102, 126, 234, 0.2);
    color: #4a5568;
    border-radius: 4px;
    font-size: 0.85rem;
    animation: fadeInOut 2s ease-in-out;
    vertical-align: middle;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.no-authorities {
    padding: 1rem;
    text-align: center;
    color: #718096;
    font-style: italic;
}

@media (max-width: 768px) {
    .action-groups {
        flex-direction: column;
    }
    
    .action-group {
        min-width: unset;
    }
}

/* Authority Modal Styles */
#authority-modal .form-group {
    margin-bottom: 15px;
}

#authority-modal label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2d3748;
}

#authority-modal .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
}

#authority-modal .warning-message {
    margin-top: 15px;
    padding: 10px;
    background-color: #fff5f5;
    color: #e53e3e;
    border-left: 3px solid #e53e3e;
    border-radius: 4px;
}

#authority-action-button {
    background-color: #667eea;
    color: white;
}

#authority-action-button:hover {
    background-color: #5a67d8;
}

/* Employee Form Modal Styles */
.employee-form-modal-content {
    width: 800px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.tab-navigation {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 15px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #718096;
    transition: all 0.3s;
}

.tab-button.active {
    color: #4a5568;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2d3748;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="date"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-row textarea {
    min-height: 80px;
}

.shifts-container {
    margin-top: 15px;
}

.add-shift-button {
    background-color: #667eea;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;
}

.shift-item {
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    background-color: #f7fafc;
}

.shift-days {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.shift-day-label {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.shift-day-label input[type="checkbox"] {
    margin-right: 5px;
}

.remove-shift-button {
    background-color: #f56565;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

#save-employee-button {
    background-color: #667eea;
    color: white;
}

#save-employee-button:hover {
    background-color: #5a67d8;
}

/* Required field indicator */
label[for*="required"]::after,
label[for$="*"]::after,
label:has(+ input[required])::after {
    content: " *";
    color: #e53e3e;
}

/* Error state for form fields */
.form-row input.error,
.form-row select.error,
.form-row textarea.error {
    border-color: #e53e3e !important;
    background-color: #fff5f5 !important;
}

/* Make sure modal is visible */
.pantheleum-modal.active {
    display: flex !important;
    z-index: 9999 !important;
}

/* Ensure form fields are visible */
.tab-content.active {
    display: block !important;
}

/* Fix form field styling */
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="date"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
    display: block !important;
    width: 100% !important;
    padding: 8px 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    font-size: 0.9rem !important;
}

/* Fix button styling */
#save-employee-button,
.cancel-modal {
    padding: 8px 16px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    margin: 5px !important;
}

#save-employee-button {
    background-color: #667eea !important;
    color: white !important;
    border: none !important;
}

.cancel-modal {
    background-color: #e2e8f0 !important;
    color: #4a5568 !important;
    border: none !important;
}

/* Fix tab navigation */
.tab-button {
    background: none !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    cursor: pointer !important;
    padding: 10px 15px !important;
    font-weight: 500 !important;
}

.tab-button.active {
    color: #4a5568 !important;
    border-bottom-color: #667eea !important;
}

.modal-content {
    background-color: #ffffff;
    padding: 30px;
    border: 3px solid #667eea;
    border-radius: 15px;
    width: 90%;
    max-width: 3000px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row.full-width {
    grid-column: 1 / -1;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="date"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus,
.form-row input[type="tel"]:focus,
.form-row input[type="date"]:focus,
.form-row input[type="number"]:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: #667eea;
    outline: none;
}

/* Clock Confirmation Modal Styles */
.clock-confirmation-modal .modal-content {
    max-width: 400px;
    text-align: center;
}

.clock-confirmation-modal .modal-body {
    padding: 1.5rem 1rem;
    font-size: 1.1rem;
    color: #4a5568;
}

.clock-confirmation-modal .form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.clock-confirmation-modal .cancel-modal,
.clock-confirmation-modal .confirm-attendance {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clock-confirmation-modal .cancel-modal {
    background: #f0f0f0;
    color: #666;
    border: none;
}

.clock-confirmation-modal .cancel-modal:hover {
    background: #e0e0e0;
    color: #333;
    transform: translateY(-2px);
}

.clock-confirmation-modal .confirm-attendance {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.clock-confirmation-modal .confirm-attendance:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Authority Assign Section Styles */
.section-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.employee-filter-container {
    min-width: 250px;
}

.employee-filter {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    font-size: 14px;
}

.employee-filter:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.kpi-table-wrapper {
    max-height: 400px; /* You can adjust this height as needed */
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.kpi-table thead {
    position: sticky;
    top: 0;
    background-color: #f5f5f5;
    z-index: 1;
}

/* Add a subtle shadow to indicate scrolling */
.kpi-table thead::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}