.door_images {
  width: 83px;
  height: 100px;
  border: 1px solid;
  border-radius: 5px;
}

.door_images img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.door_image_container{
  width: 60px;
  height: 60px;
}

.door_image_container img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Clickable door image styles */
.door-image-clickable,
.camera-snap-clickable {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: 2px solid transparent;
}

.door-image-clickable:hover,
.camera-snap-clickable:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-color: #007bff;
}

.door-image-clickable:active, 
.camera-snap-clickable:active {
  transform: scale(0.98);
}

/* Door image modal styles */
#doorImageModal .modal-dialog {
  max-width: 90%;
  max-height: 90vh;
}

#snapImageModal .modal-dialog {
  max-width: 90%;
  max-height: 90vh;
}

#doorImageModal .modal-body {
  padding: 20px;
  text-align: center;
  background-color: #f8f9fa;
}

#snapImageModal .modal-body {
  padding: 20px;
  text-align: center;
  background-color: #f8f9fa;
}

#enlargedDoorImage, 
#snapshotImage
{
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 70vh;
  max-width: 100%;
  object-fit: contain;
}

/* Door View  */

.gate_wrape {
  display: flex;
  /* width: 290px; */
  border: 1px solid;
  border-radius: 15px;
}

.gate_wrape .image_section {
  padding: 10px 7px;
  /* border-radius: 9px; */
  width: 16%;
  border-right: 1px solid;
}

.gate_wrape .image_section .gateImage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* right side  */
.controls {
  display: flex;
  width: 84%;
}

.Door_details {
  padding: 10px;
  border-bottom: 1px solid;
}

.status {
  padding: 10px;
  border-bottom: 1px solid;
}

.status .status_text {
  font-size: 23px;
}

.green-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: green;
  border-radius: 50%;
  margin-right: 5px;
}

.red-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: rgb(138, 7, 7);
  border-radius: 50%;
  margin-right: 5px;
}

.buttons_control {
  padding: 10px;
  flex-direction: column;
}

.buttons_control button {
  padding: 10px;
  outline: none;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: transparent;
  border: none;
  margin-top: 7px;
}

/* .door modal css  */
/* Custom modal to make it full screen */
.modal-fullscreen {
  width: 87%;
  max-width: 100%;
  /* height: 100%; */
  margin: auto;
  padding: 0;
}

.full-screen-modal .modal-dialog-centered {
  min-height: 100vh;
  /* Full screen height */
}

.full-screen-modal .modal-content {
  height: 100vh;
  /* Full screen height */
  border-radius: 0;
  /* Remove rounded corners */
}

.full-screen-modal .modal-body {
  overflow-y: auto;
  /* Enable scrolling if content overflows */
}

.door_command_wrap {
  width: 100%;
  background-color: white;
  /* border: 1px solid #ddd; */
  padding: 20px;
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.Body_section {
  padding: 10px 15px;
}

.status_section {
  border: 1px solid lightgrey;
  border-radius: 10px;
  height: 100%;
  padding: 0;
  margin: 10px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.inputSection {
  /* padding: 15px 20px; */
  padding: 10px 35px;
}

.tableSection {
  border: 1px solid lightgrey;
  border-radius: 10px;
  padding: 0;
  margin: 10px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

/* css for command center */

.command_section {
  padding: 20px;
}

.command_buttons button {
  border: 1px solid transparent;
  padding: 7px 18px;
  border-radius: 9px;
  color: white;
  margin: 2px 3px;
}

.command_buttons {
  display: flex;
  flex-wrap: wrap;
}

/* Streaming controls */
.schedule_command{
  padding: 4px 10px;
  border-radius: 3px;
  background: #007bff;
  color: white;
  cursor: pointer;
}

.image_section {
  width: 200px;
  margin-top: 10px;
}

.image_section img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.hardware_table_card {
  background-color: white;
  border-radius: 8px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.doors_table {
  /* background-color: white; */
  border-radius: 8px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}


/* can ban view property settings  */

.can_ban_view {
  display: flex;
  margin-top: 20px;
  flex-wrap: wrap;
}

.info_box {
  display: flex;
}

.info_box .title {
  font-weight: 700
}

.info_box .description {
  margin-left: 5px;
}

#external-events {
  max-height: 300px;
  overflow: auto;
}

.cards_detail {
  border: 1px solid grey;
    border-radius: 12px;
    padding: 14px 20px;
    width: 421px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
}

.titles{
  width: 100px;
}

.status_check_button{
    all: unset;
    background: #007bff;
    color: white;
    padding: 2px 9px;
    border-radius: 4px;
}

.assigned_doors {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

@media screen and (max-width: 600px) {
  .assigned_doors {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: column;
  }
}

.icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  background-color: #4CAF50; /* Green background */
  border-radius: 50%; /* Make the background round */
  color: white; /* Icon color */
  font-size: 20px; /* Icon size */
  cursor: pointer; /* Cursor on hover */
  transition: background-color 0.3s; /* Smooth background color transition */
}

/* Hover effect */
.icon-container:hover {
  background-color: #45a049; /* Slightly darker green on hover */
}

.single_info{
  padding: 6px 10px;
  word-break: break-all;
}

.qrSingle_info{
  padding: 6px 10px;
  word-break: break-all;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.schedule_container {
  border: 1px solid rgb(206, 206, 206);
  border-radius: 5px;
  margin-bottom: 20px;
  padding: 10px 15px;
}

.schedule_container h4 {
  font-size: 1.2rem;
  color: #818181 !important;
}


.nav-tabs .nav-link {
  color: black;
  /* Default color for inactive tabs */
}

.nav-tabs .nav-link.active {
  color: blue;
  /* Color for active tab */
}

.nav-tabs .nav-link:hover {
  color: blue;
  /* Hover color for tabs */
}

.nav-tabs .nav-link.active {
  background-color: #f8f9fa;
  /* Background color for active tab */
  border-color: #dee2e6 #dee2e6 #fff;
  /* Border color adjustments */
}

.showHide {
  display: none;
}

@media (min-width: 1147px) {
  .custom-w-md-50 {
    width: 50%;
  }
}


/* ==========>>>>>>>>>>>>>>>>> hardware automation css <<<<<<<<<<<<<<<<<<<<<============ */


/* Modern automation card styling */
.automation-text {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #e3e6f0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  line-height: 1.8;
  word-wrap: break-word;
  position: relative;
  transition: all 0.3s ease;
  border-left: 4px solid #4e73df;
}

.automation-text:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border-left-color: #2e59d9;
}

.automation-text::before {
  content: "⚡";
  position: absolute;
  top: -8px;
  left: 15px;
  background: #4e73df;
  color: white;
  padding: 4px 8px;
  border-radius: 50%;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(78, 115, 223, 0.3);
}

/* Enhanced select styling */
.automation-text select {
  display: inline-block;
  margin: 0 8px;
  padding: 8px 12px;
  border: 2px solid #e3e6f0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
  vertical-align: middle;
  transition: all 0.3s ease;
  min-width: 100px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.automation-text select:hover {
  border-color: #4e73df;
  box-shadow: 0 4px 12px rgba(78, 115, 223, 0.15);
  transform: translateY(-1px);
}

.automation-text select:focus {
  outline: none;
  border-color: #4e73df;
  box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
  background: #ffffff;
}

/* Text styling */
.automation-text {
  font-size: 15px;
  color: #5a5c69;
  font-weight: 400;
}

/* Highlight important parts */
.automation-text strong {
  color: #4e73df;
  font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
  .automation-text {
    padding: 15px;
    margin-bottom: 15px;
    font-size: 14px;
  }

  .automation-text select {
    margin: 0 4px;
    padding: 6px 10px;
    font-size: 13px;
    min-width: 80px;
  }
}

@media (max-width: 480px) {
  .automation-text {
    padding: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
  }

  .automation-text select {
    margin: 0 3px;
    padding: 5px 8px;
    font-size: 12px;
    min-width: 70px;
  }
}

/* Animation for new automations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.automation-text {
  animation: slideIn 0.4s ease-out;
}

/* Status indicators */
.automation-text .status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  background: #1cc88a;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

/* Container and header styling */
.automations-container {
  margin-top: 30px;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.automations-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f8f9fc;
}

.automations-header h5 {
  color: #4e73df;
  font-weight: 600;
  margin-bottom: 5px;
}

.automations-header h5 i {
  margin-right: 8px;
  color: #4e73df;
}

.automations-header p {
  margin: 0;
  color: #858796;
  font-size: 14px;
}

.no-automations {
  text-align: center;
  padding: 40px 20px;
  color: #858796;
}

.no-automations i {
  font-size: 48px;
  color: #d1d3e2;
  margin-bottom: 15px;
  display: block;
}

.no-automations p {
  margin: 0;
  font-size: 16px;
}

.automations-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.automation-content {
  margin-bottom: 10px;
}

.automation-meta {
  border-top: 1px solid #f8f9fc;
  padding-top: 10px;
  margin-top: 10px;
}

.automation-date {
  font-size: 12px;
  color: #858796;
  display: flex;
  align-items: center;
}

.automation-date i {
  margin-right: 5px;
  color: #4e73df;
}

/* Enhanced button styling */
.btn-automation {
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(78, 115, 223, 0.3);
}

.btn-automation:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(78, 115, 223, 0.4);
  background: linear-gradient(135deg, #224abe 0%, #1a3a8f 100%);
  color: white;
}

.btn-automation i {
  margin-right: 8px;
}

.automation-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.automation-title{
  font-size: 1.5rem;
  font-weight: 600;
}

.automation-card{
  width: 49%;
}
