﻿/* ==========================================================================
   do.bellme.io - Appointments & Orders Subdomain Styles
   ========================================================================== */

/* ---------- Navbar ---------- */
#header-nav {
   z-index: 1030;
   box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

#header-nav .logo {
   max-height: 40px;
   width: auto;
}

#header-nav-dummy {
   visibility: hidden;
}

#header-nav-dummy .logo {
   max-height: 40px;
   width: auto;
}

/* ---------- Sidebar ---------- */
.card {
   border: 1px solid #dee3e5;
   border-radius: .25rem;
}

.card-header {
   padding: .75rem 1.25rem;
   background-color: #fff;
   border-bottom: 1px solid #dee3e5;
   font-weight: 600;
}

.list-group-item {
   border-color: #dee3e5;
}

.list-group-item a {
   color: #323537;
   text-decoration: none;
   display: block;
}

.list-group-item a:hover {
   color: #000;
}

.list-group-item a.active {
   font-weight: 600;
}

.list-group-item a i {
   font-size: 1.5rem;
   vertical-align: top;
   text-align: center;
   margin-right: .4rem;
}

/* ---------- Page layout ---------- */
.do-page-wrap {
   padding-top: 1.5rem;
   padding-bottom: 2rem;
}

/* ---------- Cards ---------- */
.do-card {
   border: 1px solid #dee2e6;
   border-radius: .375rem;
   padding: 1.25rem;
   margin-bottom: 1rem;
   background: #fff;
}

.do-card h5 {
   margin-bottom: .15rem;
}

.do-card .do-card-sub {
   color: #6c757d;
   font-size: .85rem;
}

.do-card .do-card-meta {
   font-size: .88rem;
   color: #495057;
   margin-top: .5rem;
}

.do-card .do-card-meta span {
   display: block;
}

.do-card .do-card-actions {
   margin-top: .75rem;
}

.do-card .do-card-actions .btn {
   margin-right: .35rem;
   margin-bottom: .35rem;
}

/* Status badges */
.badge-status-pending {
   background: #ffc107;
   color: #212529;
}

.badge-status-confirmed {
   background: #28a745;
   color: #fff;
}

.badge-status-rejected {
   background: #dc3545;
   color: #fff;
}

.badge-status-cancelled {
   background: #6c757d;
   color: #fff;
}

.badge-status-completed {
   background: #17a2b8;
   color: #fff;
}

.badge-status-accepted {
   background: #28a745;
   color: #fff;
}

.badge-status-preparing {
   background: #fd7e14;
   color: #fff;
}

.badge-status-ready {
   background: #20c997;
   color: #fff;
}

.badge-status-delivered {
   background: #17a2b8;
   color: #fff;
}

/* Status text colors (inline) */
.status-pending {
   color: #ffc107;
   font-weight: 600;
}

.status-confirmed {
   color: #28a745;
   font-weight: 600;
}

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

.status-cancelled {
   color: #6c757d;
   font-weight: 600;
}

.status-completed {
   color: #17a2b8;
   font-weight: 600;
}

.status-accepted {
   color: #28a745;
   font-weight: 600;
}

.status-preparing {
   color: #fd7e14;
   font-weight: 600;
}

.status-ready {
   color: #20c997;
   font-weight: 600;
}

/* ---------- Settings form ---------- */
.do-settings-section {
   border: 1px solid #dee2e6;
   border-radius: .375rem;
   padding: 1.25rem 1.5rem;
   margin-bottom: 1.25rem;
   background: #fff;
}

.do-settings-section h6 {
   font-weight: 600;
   margin-bottom: 1rem;
   font-size: 1rem;
}

/* ---------- Filter tabs ---------- */
.do-filter-tabs {
   display: flex;
   flex-wrap: wrap;
   gap: .4rem;
   margin-bottom: 1rem;
}

.do-filter-tabs .btn {
   font-size: .82rem;
   padding: .3rem .7rem;
}

.do-filter-tabs .btn.active {
   background: #448ef6;
   color: #fff;
   border-color: #448ef6;
}

/* ---------- Booking flow (responsive mobile-first) ---------- */
.do-booking-wrap {
   max-width: 480px;
   margin: 0 auto;
   padding: 1rem;
}

@media (min-width: 576px) {
   .do-booking-wrap {
      max-width: 500px;
      padding: 1.5rem;
   }
}

@media (min-width: 768px) {
   .do-booking-wrap {
      max-width: 540px;
      padding: 2rem;
   }
}

@media (min-width: 992px) {
   .do-booking-wrap {
      max-width: 580px;
   }
}

.do-booking-wrap h5 {
   font-weight: 600;
   font-size: 1.15rem;
   margin-bottom: 1.25rem;
   text-align: center;
}

/* Steps indicator */
.do-steps {
   display: flex;
   justify-content: center;
   margin-bottom: 1.5rem;
}

.do-steps .step {
   width: 32px;
   height: 32px;
   border-radius: 50%;
   border: 2px solid #dee2e6;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: .8rem;
   font-weight: 600;
   color: #6c757d;
   margin: 0 .5rem;
   transition: all .2s;
}

.do-steps .step.active {
   border-color: #448ef6;
   background: #448ef6;
   color: #fff;
}

.do-steps .step.done {
   border-color: #28a745;
   background: #28a745;
   color: #fff;
}

/* Time slot grid */
.do-slot-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: .5rem;
}

@media (min-width: 420px) {
   .do-slot-grid {
      grid-template-columns: repeat(3, 1fr);
   }
}

.do-slot-grid .slot-btn {
   border: 1px solid #dee2e6;
   border-radius: .25rem;
   padding: .45rem .3rem;
   font-size: .78rem;
   text-align: center;
   cursor: pointer;
   transition: all .15s;
   background: #fff;
}

.do-slot-grid .slot-btn:hover {
   border-color: #448ef6;
   background: #e8f0fe;
}

.do-slot-grid .slot-btn.selected {
   border-color: #448ef6;
   background: #448ef6;
   color: #fff;
}

.do-slot-grid .slot-btn.booked {
   background: #28a745;
   border-color: #28a745;
   color: #fff;
   cursor: default;
   opacity: .85;
}

.do-slot-grid .slot-btn .slot-avail {
   display: block;
   font-size: .7rem;
   margin-top: 2px;
}

/* Order item list */
.do-order-items .order-item {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: .5rem 0;
   border-bottom: 1px solid #f0f0f0;
}

.do-order-items .order-item:last-child {
   border-bottom: 0;
}

.do-order-items .order-item .btn-remove {
   color: #dc3545;
   cursor: pointer;
   font-size: 1.1rem;
   border: none;
   background: none;
   padding: 0;
}

/* Preview section */
.do-preview-section {
   border: 1px solid #dee2e6;
   border-radius: .375rem;
   padding: 1rem;
   background: #fafafa;
}

.do-preview-section table {
   width: 100%;
   font-size: .9rem;
}

.do-preview-section table td {
   padding: .3rem .5rem;
   vertical-align: top;
}

.do-preview-section table td:first-child {
   font-weight: 600;
   white-space: nowrap;
   width: 40%;
}

/* Buttons */
.btn-primary {
   background-color: #448ef6;
   border-color: #448ef6;
}

.btn-primary:hover,
.btn-primary:focus {
   background-color: #2d7ae0;
   border-color: #2d7ae0;
}

.btn-confirm {
   background-color: #28a745;
   border-color: #28a745;
   color: #fff;
}

.btn-confirm:hover {
   background-color: #218838;
   border-color: #1e7e34;
   color: #fff;
}

/* Order image */
.do-card .order-image {
   max-width: 120px;
   border-radius: .25rem;
   border: 1px solid #dee2e6;
}

/* Search */
.do-search-bar {
   max-width: 320px;
}

/* Mobile adjustments */
@media (max-width: 575.98px) {
   .do-card .do-card-actions .btn {
      font-size: .78rem;
      padding: .25rem .5rem;
   }

   .do-filter-tabs .btn {
      font-size: .75rem;
   }

   .do-settings-section {
      padding: 1rem;
   }
}

/* Export button */
.btn-export {
   font-size: .85rem;
}

/* Radio inline styling */
.do-radio-inline label {
   margin-right: 1.5rem;
   cursor: pointer;
}

/* Custom off days list */
.do-off-days-list {
   list-style: none;
   padding: 0;
   margin: .5rem 0;
}

.do-off-days-list li {
   display: inline-flex;
   align-items: center;
   background: #f0f0f0;
   border-radius: .25rem;
   padding: .2rem .6rem;
   margin: .2rem .25rem;
   font-size: .85rem;
}

.do-off-days-list li .btn-remove-date {
   margin-left: .4rem;
   color: #dc3545;
   cursor: pointer;
   border: none;
   background: none;
   padding: 0;
   font-size: .9rem;
   line-height: 1;
}

/* ---------- Toggle Switch (ON / OFF with text) ---------- */
.do-toggle {
   position: relative;
   display: inline-block;
   width: 70px;
   height: 30px;
   vertical-align: middle;
   margin: 0;
   padding: 0;
   cursor: pointer;
}

.do-toggle input[type="checkbox"] {
   position: absolute !important;
   opacity: 0 !important;
   width: 0 !important;
   height: 0 !important;
   margin: 0 !important;
   padding: 0 !important;
   pointer-events: none;
}

.do-toggle .do-toggle-slider {
   position: absolute;
   cursor: pointer;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-color: #d5d5d5;
   border-radius: 30px;
   border: 2px solid #c0c0c0;
   transition: background-color .3s, border-color .3s;
}

.do-toggle .do-toggle-slider::before {
   content: "";
   position: absolute;
   height: 22px;
   width: 22px;
   left: 2px;
   top: 50%;
   transform: translateY(-50%);
   background-color: #fff;
   border-radius: 50%;
   box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
   transition: left .3s;
   z-index: 2;
}

/* OFF text */
.do-toggle .do-toggle-slider::after {
   content: "OFF";
   position: absolute;
   right: 7px;
   top: 50%;
   transform: translateY(-50%);
   font-size: 10px;
   font-weight: 700;
   letter-spacing: .5px;
   color: #999;
   transition: opacity .2s;
}

/* ON state */
.do-toggle input[type="checkbox"]:checked~.do-toggle-slider {
   background-color: #4aa3df;
   border-color: #3a8dc9;
}

.do-toggle input[type="checkbox"]:checked~.do-toggle-slider::before {
   left: calc(100% - 24px);
}

/* ON text (replaces OFF) */
.do-toggle input[type="checkbox"]:checked~.do-toggle-slider::after {
   content: "ON";
   left: 10px;
   right: auto;
   color: #fff;
   font-weight: 700;
}

/* ---------- Toast Notification ---------- */
.do-toast {
   position: fixed;
   top: 20px;
   right: 20px;
   z-index: 9999;
   min-width: 280px;
   max-width: 400px;
   padding: .85rem 1.25rem;
   border-radius: .375rem;
   color: #fff;
   font-size: .95rem;
   box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
   opacity: 0;
   transform: translateY(-10px);
   transition: opacity .3s, transform .3s;
   pointer-events: none;
}

.do-toast.show {
   opacity: 1;
   transform: translateY(0);
   pointer-events: auto;
}

.do-toast-success {
   background-color: #28a745;
}

.do-toast-danger {
   background-color: #dc3545;
}