/* ==============================================
   OVERTIME COMPARISON MODAL - PREMIUM FULLSCREEN DESIGN
   ============================================== */

/* Fullscreen Modal Window */
.overtime-comparison-fullscreen .modal-dialog {
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  max-width: none !important;
}

.overtime-comparison-fullscreen .modal-content {
  height: 100vh;
  border: none;
  border-radius: 0;
  background: #ecf0f5;
  box-shadow: none;
  overflow: hidden;
}

.overtime-comparison-fullscreen .modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Light Theme Header */
.gradient-header {
  background: #3c8dbc;
  color: white;
  border-bottom: none;
  padding: 20px 25px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gradient-header .modal-title {
  font-size: 24px;
  font-weight: 600;
  text-shadow: none;
  letter-spacing: 0;
}

.gradient-header .close {
  color: white;
  opacity: 0.8;
  text-shadow: none;
  font-size: 28px;
  transition: all 0.3s ease;
}

.gradient-header .close:hover {
  opacity: 1;
  transform: none;
}

/* Modal Body - Light Theme */
.overtime-comparison-modal {
  height: calc(100vh - 160px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  background: #ecf0f5;
}

.overtime-comparison-modal::-webkit-scrollbar {
  width: 8px;
}

.overtime-comparison-modal::-webkit-scrollbar-track {
  background: #f4f4f4;
  border-radius: 4px;
}

.overtime-comparison-modal::-webkit-scrollbar-thumb {
  background: #3c8dbc;
  border-radius: 4px;
}

.overtime-comparison-modal::-webkit-scrollbar-thumb:hover {
  background: #367fa9;
}

/* AdminLTE Comparison Type Selector */
.comparison-type-selector {
  background: #ffffff;
  padding: 15px;
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  border: 1px solid #d2d6de;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comparison-type-selector .btn-group-justified .btn {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid #d2d6de;
  background: #ffffff;
  color: #444;
  position: relative;
}

.comparison-type-selector .btn-group-justified .btn.active {
  background: #3c8dbc;
  color: #ffffff;
  border-color: #367fa9;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.comparison-type-selector .btn-group-justified .btn:hover {
  background: #f4f4f4;
  border-color: #adadad;
}

/* AdminLTE Filters Section */
.comparison-filters {
  background: #ffffff;
  padding: 15px;
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  border: 1px solid #d2d6de;
  animation: fadeInUp 0.4s ease;
}

.comparison-filters .form-group label {
  font-weight: 600;
  color: #444;
  font-size: 14px;
}

.comparison-filters .form-control {
  border: 1px solid #d2d6de;
  background: #ffffff !important;
  color: #444 !important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  border-radius: 3px;
  height: 34px;
  font-size: 14px;
}

.comparison-filters .form-control:focus {
  border-color: #3c8dbc;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
    0 0 8px rgba(60, 141, 188, 0.6);
}

/* Kendo Date Picker specific styling */
.comparison-filters .k-widget.k-datepicker input.k-input {
  background: #ffffff !important;
  color: #444 !important;
}

.comparison-filters span.k-widget.k-datepicker {
  background: #ffffff !important;
}

.comparison-filters .btn-primary {
  background: #3c8dbc;
  border-color: #367fa9;
  box-shadow: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comparison-filters .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.comparison-filters .btn-warning {
  background: #f39c12;
  border-color: #e08e0b;
  color: white;
  font-weight: 500;
}

.comparison-filters .btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

/* AdminLTE Stats Cards */
.comparison-stats .info-box {
  background: #ffffff;
  border: 1px solid #d2d6de;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  transition: all 0.2s ease;
  overflow: hidden;
  position: relative;
}

.comparison-stats .info-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.comparison-stats .info-box-icon {
  font-size: 50px;
}

.comparison-stats .info-box-number {
  font-size: 28px;
  font-weight: 700;
}

.comparison-stats .info-box-text {
  font-weight: 500;
  font-size: 14px;
}

/* AdminLTE Chart Box */
.box-primary,
.box-success,
.box-warning {
  background: #ffffff;
  border: 1px solid #d2d6de;
  border-top: 3px solid;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  overflow: hidden;
  animation: fadeInUp 0.4s ease;
}

.box-primary {
  border-top-color: #3c8dbc;
}

.box-success {
  border-top-color: #00a65a;
}

.box-warning {
  border-top-color: #f39c12;
}

.box-header.with-border {
  border-bottom: 1px solid #f4f4f4;
  padding: 10px 15px;
  background: #ffffff;
}

.box-title {
  font-size: 18px;
  font-weight: 600;
  color: #444;
}

.box-body {
  padding: 15px;
  background: #ffffff;
}

.box-tools .btn-group .btn {
  background: #f4f4f4;
  border: 1px solid #ddd;
  color: #444;
  transition: all 0.2s ease;
  font-weight: 500;
}

.box-tools .btn-group .btn.btn-primary {
  background: #3c8dbc;
  border-color: #367fa9;
  color: #ffffff;
}

.box-tools .btn-group .btn:hover {
  background: #e7e7e7;
}

/* AdminLTE Loading Spinner */
.cssload-container {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cssload-speeding-wheel {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  border: 5px solid #d2d6de;
  border-radius: 50%;
  border-top-color: #3c8dbc;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.cssload-container + h4 {
  color: #444;
  font-weight: 600;
  font-size: 16px;
}

/* Buttons */
.btn-lg {
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 3px;
}

.btn i {
  margin-right: 5px;
}

/* AdminLTE Modal Footer */
.overtime-comparison-fullscreen .modal-footer {
  background: #ffffff;
  border-top: 1px solid #d2d6de;
  padding: 15px;
}

.modal-footer .btn-default {
  background: #f4f4f4;
  border: 1px solid #ddd;
  color: #444;
  font-weight: 500;
  transition: all 0.2s ease;
}

.modal-footer .btn-default:hover {
  background: #e7e7e7;
  border-color: #adadad;
}

/* No Data Message Styling */
.alert.alert-warning.text-center {
  background: #fcf8e3;
  border: 1px solid #faebcc;
  border-left: 4px solid #f39c12;
  color: #8a6d3b;
  border-radius: 3px;
  padding: 30px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.alert.alert-warning.text-center h4 {
  color: #8a6d3b;
  font-weight: 600;
}

.alert.alert-warning.text-center p {
  color: #8a6d3b;
  font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
  .overtime-comparison-fullscreen .modal-dialog {
    width: 100vw !important;
  }

  .comparison-type-selector .btn-group-justified .btn {
    font-size: 12px;
    padding: 12px 8px;
  }

  .comparison-stats .info-box-number {
    font-size: 24px;
  }

  .gradient-header .modal-title {
    font-size: 20px;
  }

  .overtime-comparison-modal {
    padding: 15px;
  }

  .box-tools .btn-group {
    display: flex;
    flex-wrap: wrap;
  }

  .box-tools .btn-group .btn {
    font-size: 11px;
    padding: 4px 8px;
  }
}

/* Text Utilities */
.text-green {
  color: #00a65a;
}

.text-center {
  text-align: center;
}

/* Chart Canvas */
#overtimeComparisonChart {
  max-height: 400px;
  width: 100% !important;
}

/* Box Tools */
.box-tools .btn-group .btn {
  margin-left: 2px;
}

.box-tools .btn-sm {
  padding: 4px 8px;
  font-size: 12px;
}

/* Chart Loading Overlay */
.chart-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-radius: 3px;
}

.chart-loading-overlay h4 {
  margin-top: 15px;
  color: #444;
  font-size: 16px;
  font-weight: 600;
}

/* Insights Alerts */
.alert-success,
.alert-info {
  border-radius: 3px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid transparent;
  border-left: 4px solid;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.alert-success {
  background: #dff0d8;
  border-color: #d6e9c6;
  border-left-color: #00a65a;
  color: #3c763d;
}

.alert-info {
  background: #d9edf7;
  border-color: #bce8f1;
  border-left-color: #00c0ef;
  color: #31708f;
}

.alert h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.alert .icon {
  margin-right: 8px;
}
