html, body {
    height: 100%;
}

.btn-google {
    background-color: #0a2342!important;
    padding: .75rem 1rem;
    font-size: .8rem;
}

.btn-primary {
    color: #fff!important;
    background-color: #12355b!important;
    border-color: #1e4870!important;
}

.btn-primary:hover {
    background-color: #1a4472!important;
    border-color: #2b5d8a;
}

.btn-info {
    color: #fff!important;
    background-color:  #1a4472!important;
    border-color:#2b5d8a!important;
}

.btn-info:hover {
    background-color: #274b6d!important;
    border-color: #3a6d94;
}

button.dt-button.buttons-csv.buttons-html5 {
    color: #fff;
    background-color: #12355b;
    border-color: #1e4870;
}

button.dt-button.buttons-csv.buttons-html5:hover {
    background-color: #1a4472!important;
    border-color: #2b5d8a;
}

button.dt-button.buttons-pdf.buttons-html5 {
    color: #fff;
    background-color: #1c3b5a;
    border-color: #2a5579;
}

button.dt-button.buttons-pdf.buttons-html5:hover {
    background-color: #274b6d!important;
    border-color: #3a6d94;
}

.border-bottom-primary {
    border-bottom: .25rem solid #12355b !important;
}

/** start of sidebar **/
.sidebar {
    transition: width 0.3s ease;
}

.sidebarToggle {
    background-color: rgba(255, 255, 255, .2);
}

.sidebarToggle {
    width: 2.5rem;
    height: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    cursor: pointer;
}

#sidebarArrowIcon {
    transition: transform 0.3s ease;
}

.sidebar.toggled #sidebarArrowIcon {
    transform: rotate(180deg);
}
/** end  of sidebar **/

/** messages **/
textarea.form-control {
    height: auto;
    margin-right: 5px;
}

#mainMessageRow {
    height: calc(100vh - 100px); 
}
  
  #rightPanel {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  #rightPanel .card {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
    margin-bottom: 0; 
  }
  
  #rightPanel .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1rem;
  }
  

#message_area {
    flex-grow: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    height: 80%;
}

#smsPortion {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
  }
  

#smsInputContainer {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.message {
    max-width: 80%;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Sent message  */
.message_sent {
    background-color: #007bff;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 0px;
}

/* Received message  */
.message_received {
    background-color: #e0e0e0;
    color: black;
    margin-right: auto;
    border-bottom-left-radius: 0px;
}


.message_sent span, .message_received span {
    font-size: 12px;
    color: #777;
}


.message_received a {
    color: #007bff;
    text-decoration: none;
}
.message_received a:hover {
    text-decoration: underline;
}

/** end  of messages **/


/** toastr **/
#toastsMessage {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
}

.toast {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.toast.show {
    opacity: 1;
}

/** end of toastr **/


/** panels **/
:root {
    --panel-offset: 300px; 
}

.scroll-fit-panel {
    max-height: calc(82.5vh - var(--panel-offset));
    overflow-y: auto;
}

#resultDevices .form-check-input {
    position: relative;
    margin-top: auto!important;
    margin-left: auto!important;
}

.custom-select-sim-status {
    display: block;
    width: 100%;
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20,50 70,100 120,50' stroke='%23999' stroke-width='15' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }

  .custom-select-sim-status:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
  }

  .output-box .send-message {
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.375rem;
    background-color: #343a40;
    color: #fff;
    border: none;
    transition: background-color 0.2s ease;
  }

  .output-box .send-message:hover {
    background-color: #23272b;
  }

  .output-box .send-message i {
    font-size: 1rem;
  }

  #devices tbody tr {
      cursor: pointer;
  }
/** end  of panels **/

/** media query **/
@media (min-width: 1600px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1800px;
    }
}

/* Toggle behavior for medium and up (>=768px) */
@media (min-width: 768px) {
    .sidebar.toggled {
        width: 6.5rem !important;
        overflow-x: visible;
    }

    .sidebar.toggled .nav-link span {
        display: none;
    }

    .sidebar.toggled .sidebar-brand-text {
        display: none;
    }
}

/* Toggle behavior for small screens (<768px) */
@media (max-width: 767.98px) {
    .sidebar.toggled {
        width: 0 !important;
        overflow: hidden;
    }
}

