.hidden {
    display: none;
}

.submit-status-button {
    display: none;
}

.login-logo {
    color: var(--bs-white);
}

/* Fonts */
.quicksand {
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.roboto {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

body {
    background-color: var(--bs-gray-400);
    font-family: 'Roboto';
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

#mainContent {
  flex: 1; 
}

footer {
  flex-shrink: 0;
  text-align: center;
}

h1, h2, h3, h4, h5 {
    font-family: 'Quicksand';
}

h1 {
    font-size: 3.5rem;
}

a.hover-white:active,
a.hover-white:hover {
  color: var(--bs-white)!important;
}

#sign form select.form-control,
#sign form select.form-select,
#sign form textarea.form-control,
#sign form input.form-control {
  margin-top: 0;
}

#sign form .form-grouped, .form-grouped-time {
  position: relative;
  background-color: var(--bs-gray-300);
  border-radius: 10px;
  border: 1px solid var(--bs-gray-500);
}

#sign form .form-grouped a,
#sign form .form-grouped a i.form-grouped-collapse,
#sign form .form-grouped a i.form-grouped-expand {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 999;
  cursor: pointer;
  color: var(--bs-info)!important;
}

#sign form .form-grouped a:hover,
#sign form .form-grouped a:active,
#sign form .form-grouped i.form-grouped-collapse:hover,
#sign form .form-grouped i.form-grouped-collapse:active,
#sign form .form-grouped i.form-grouped-expand:hover,
#sign form .form-grouped i.form-grouped-expand:active {
  color: var(--bs-info)!important;
  cursor: pointer;
}

.btn-page-link {
    border: 1px solid var(--bs-gray-300);
}

.btn.active, 
.btn.hover {
  color: var(--bs-gray-800);
}

.btn-info.text-white:active,
.btn-info.text-white:hover {
    color: var(--bs-gray-700)!important;
}

.main {
    /* background-color: var(--bs-light); */
    border-radius: 10px;
}

.navbar {
    border-radius: 0px 0px 10px 10px;
    font-family: 'Roboto';
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    background-color: var(--bs-gray-600);
}

.navbar .navbar-brand {
  font-size: 2.5rem;
  font-family: 'Roboto';
  font-style: italic;
  display: flex;
  align-items: center;
}

.navbar .navbar-logo-img {
  height: 100%;
  max-height: 2.5rem;
  width: auto;
  display: block;
  position: relative;
  top: -7px;
}

.navbar .nav-item {
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    padding-bottom: 1.0rem;
    padding-top: 1.0rem;
}

.navbar .nav-item:hover,
.navbar .nav-item:hover .page-link {
    color: var(--bs-gray-800);
}

.navbar .nav-link.dropdown,
.navbar .nav-link.dropdown.page-link {
    color: var(--bs-white)!important;
    font-style: bold!important;
    font-size: 20px!important;
}

.navbar .nav-link,
.navbar .nav-link.page-link {
    color: var(--bs-white);
    font-style: bold;
    font-size: 20px;
}

.navbar .nav-pills .nav-link.active,
.navbar .nav-pills .show>.nav-link {
  background-color: transparent;
  color: var(--bs-gray-800);
}

/* .navbar-brand {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}


.navbar-nav {
    margin: 0 auto;
    display: flex;
    justify-content: center;
} */

/* Home */

body:has(#home):not([hidden]):not([style*="display: none"]):not([style*="visibility: hidden"]) {
  /* background-image: url("/skylten-web/theme/img/pexels-lilartsy-2220267.jpg"); */
  background-size: cover;
}


#homeCarousel {
  max-height: 600px;
  overflow: hidden;
}

#homeCarousel .carousel img{
  max-height: 600px;
}

.carousel-caption {
  background-color: rgba(0,0,0, 0.3);
  border-radius: 10px;
  text-align: center;;
}

.carousel-caption h1 {
  max-width: 50%;
}

/* icons on home page */
#iconInfo i {
  font-size: 8rem;
}
#iconInfo h5 {
  font-weight: bold;
}

#iconInfo .card {
  aspect-ratio: 1 / 1; /* Ensures the div is a square */
  overflow: hidden; /* Prevent content from overriding aspect-ratio on macOS Chrome */
  display: flex;
  flex-direction: column; /* Stack content vertically */
  justify-content: center; /* Center content vertically */
  align-items: center; /* Center content horizontally */
  margin: auto; /* Centers the card horizontally */
  padding: 1rem; /* Adjust padding as needed */
  text-align: center; /* Ensures text is centered */
}

#iconInfo .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center content vertically */
  align-items: center; /* Center content horizontally */
  text-align: center;
}

/* Auto width checkbox styling */
.form-check-sm {
    font-size: 0.85rem;
}

.form-check-sm .form-check-input {
    margin-top: 0.1rem;
}

.form-check-sm .form-check-label {
    padding-left: 0.2rem;
}

/* Auto-width max limit indicator */
#sign-width.max-width-reached {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Text trimmed indicator */
.text-line-input.text-trimmed {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    background-color: rgba(220, 53, 69, 0.05);
}

/* Text limit reached indicator */
.text-line-input.text-limit-reached {
    border-color: #fd7e14;
    box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.25);
    background-color: rgba(253, 126, 20, 0.05);
}

/* sign */
#hangsignTop {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: calc(-.5rem - 2px);
    z-index: 999;
    position: relative;
    padding-right: 54px;
}

#hangsignTopShape {
    height: 100px;
    width: 200px;
    border-color: black;
    border-style: solid;
    border-width: 1px 1px 0px 1px;
    background-color: white;
    border-radius: 50% 50% 0 0/100% 100% 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hangsignTopHole {
    height: 50px;
    width: 50px;
    position: absolute;
    background-color: var(--bs-gray-400);
    border-radius: 50%;
}

#preview {
  overflow: hidden;
}

#preview.shape-hangsign {
  overflow: visible !important;
}

.preview-container {
    border: 2px solid var(--bs-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: calc(100% - 15px);
    height: 50%;
    position: relative;
    border-radius: 15px;
}

.preview-container.shape-rounded {
    border-radius: 15px;
}
.preview-container.shape-rectangle {
    border-radius: 0;
}
.preview-container.shape-hangsign {
    border-radius: 8px;
    position: relative;
    overflow: visible;
}
/* .preview-container.shape-hangsign::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 40%;
    background-color: inherit;
    border: 2px solid var(--bs-dark);
    border-bottom: 2px solid transparent;
    border-radius: 50% 50% 0 0;
    z-index: 1;
}
.preview-container.shape-hangsign::after {
    content: '';
    position: absolute;
    top: -25%;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background-color: var(--bs-gray-400);
    border-radius: 50%;
    z-index: 10;
} */
.preview-container.shape-circle {
    border-radius: 50%;
    width: 400px;
    height: 400px;
}
.preview-container.shape-oval {
    border-radius: 50%;
}

.preview-container #preview-text {
  /* width: 100%; */
  white-space: nowrap;
}

.hole {
  position: absolute;
  width: 10px;
  height: 10px;
  /* background-color: var(--bs-dark); */
  background-color: var(--bs-gray-400);
  border-radius: 50%;
}
.hole:nth-child(1) { top: 5px; left: 5px; } /* Top-left */
.hole:nth-child(2) { top: 5px; right: 5px; } /* Top-right */
.hole:nth-child(3) { bottom: 5px; left: 5px; } /* Bottom-left */
.hole:nth-child(4) { bottom: 5px; right: 5px; } /* Bottom-right */

.small-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 15px 0px 15px;
  min-height: 200px;
  margin-bottom: 10px;
}

.small-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px; 
}

.small-preview {
  /* border: 1px solid var(--bs-dark); */
  /* background: white; */
  /* box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.1), 2px 2px 5px rgba(0, 0, 0, 0.2); */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100px;
  width: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  padding: 4px;
  box-sizing: border-box;
}

.small-preview.shape-rounded {
  border-radius: 8px;
}

.small-preview.shape-rectangle {
  border-radius: 0;
}

.small-preview.shape-hangsign {
  border-radius: 4px;
  overflow: visible;
}

/* .small-preview.shape-hangsign::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 20%;
  background-color: inherit;
  border: 1px solid var(--bs-dark);
  border-bottom: 1px solid transparent;
  border-radius: 50% 50% 0 0;
  z-index: 1;
}

.small-preview.shape-hangsign::after {
  content: '';
  position: absolute;
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background-color: var(--bs-gray-400);
  border-radius: 50%;
  z-index: 10;
} */

.small-preview.shape-circle {
  border-radius: 50%;
  width: 100px;
  height: 100px;
}

.small-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.quantity-container {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 1;
  font-size: 18px;
  padding: 0;
}

.quantity-input {
  width: 75px;
  text-align: center;
}

.page-link-div {
    cursor: pointer;
}

.alert .page-link {
  display: inline;
}

/* .page-link-in-text {
    color: var(--bs-gray-900);
}

a.page-link-in-text:hover {
    color: var(--bs-gray-600);
} */

/* Logo row */
.logo-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 10px 40px;
  }

  .logo-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
  }

  .logo-row::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .logo-item {
    background-color: var(--bs-gray-300);
    padding: 5px;
    border-radius: 5px;
  }

  .logo-item img {
    height: 50px;
    object-fit: contain;
    filter: grayscale(100%) brightness(200%);
    transition: transform 0.2s;
  }

  .logo-item img:hover {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(100%);
  }

  .fade-left, .fade-right {
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
  }

  .fade-left {
    left: 0;
    background: linear-gradient(to right, var(--bs-gray-400), transparent);
  }

  .fade-right {
    right: 0;
    background: linear-gradient(to left, var(--bs-gray-400), transparent);
  }

  .scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(180, 180, 180, 0.6);
    border: none;
    color: var(--bs-white);
    font-size: 24px;
    z-index: 3;
    width: 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .scroll-left {
    left: 0;
  }

  .scroll-right {
    right: 0;
  }

  .available-sign {
    max-width: 300px;
  }

  .available-sign.selected-sign-row {
    outline:2px solid #0d6efd;
    border-radius:4px;
    background: none;
  }

/* Design track (horizontal flex list) */
.design-track {
  display:flex;
  flex-wrap:nowrap;
  gap:12px;
  overflow-x:auto;
  padding:8px 48px;
  scroll-behavior:smooth;
}
.design-track::-webkit-scrollbar { height:8px; }
.design-track::-webkit-scrollbar-track { background:#f1f1f1; }
.design-track::-webkit-scrollbar-thumb { background:#bbb; border-radius:4px; }
.design-track::-webkit-scrollbar-thumb:hover { background:#999; }


.design-card {
  flex:0 0 260px;
  max-width:260px;
  min-width:260px;
  background:none;
  border:1px solid #fff;
  border-radius:6px;
  padding:6px 10px;
  box-shadow:0 1px 2px rgba(0,0,0,0.08);
  position:relative;
  display:flex;
  flex-direction:column;
}
.design-card .small-preview-container { width:100%; }
.design-card.selected-sign-row { outline:2px solid #0d6efd; background:rgba(13,110,253,0.05); }

/* Template preview thumbnail in "Mina mallar" modal */
.template-preview {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f8f9fa;
}
.template-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}


.design-card-action {
  flex:0 0 160px;
  min-width:160px;
  max-width:160px;
  background:#f8f9fa;
  border:2px dashed #6c757d;
  cursor:pointer;
  transition:background .2s, box-shadow .2s;
  display:flex;
  align-items:center;
  justify-content:center;
}
.design-card-action:hover { background:#e9ecef; box-shadow:0 2px 6px rgba(0,0,0,0.12); }

  /* .selected-design {
    border: 3px solid #0dcaf0;
    box-shadow: 0 0 10px rgba(13, 202, 240, 0.3);
    border-radius: 8px;
  } */

  /* Ruler */
  .ruler {
    position: relative;
    width: 100%;
    margin: 20px 0;
    height: 14px;
}

.ruler .cm {
    position: absolute;
    border-left: 1px solid var(--bs-gray-700);
    height: 14px;
    width: 10%;
}

.ruler .cm:after {
    content: attr(data-cm);
    position: absolute;
    bottom: 15px;
    left: -5px;
    font: 11px/1 sans-serif;
}

.ruler .mm {
    position: absolute;
    border-left: 1px solid var(--bs-gray-700);
    height: 5px;
    width: 10%;
}

.ruler .mm:nth-of-type(5) {
    height: 10px;
}

/* Vertical ruler */
.ruler-vertical {
  position: relative;
  height: 100%;
  margin: 0 20px;
  width: 14px;
}

.ruler-vertical .cm {
  position: absolute;
  border-top: 1px solid var(--bs-gray-700);
  width: 14px;
  height: 10%;
}

.ruler-vertical .cm:after {
  content: attr(data-cm);
  position: absolute;
  left: 15px;
  top: -5px;
  font: 11px/1 sans-serif;
}

.ruler-vertical .mm {
  position: absolute;
  border-top: 1px solid var(--bs-gray-700);
  width: 5px;
  height: 10%;
}

.ruler-vertical .mm:nth-of-type(5) {
  width: 10px;
}

.footer-links a {
    color: var(--bs-white);
    text-decoration: none;
}

.footer-links a:active,
.footer-links a:hover {
    color: var(--bs-gray-700);
    text-decoration: none;
}

/* Sticky Price Bar */
.sticky-price-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bs-info);
    color: var(--bs-white);
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 20px;
    border-radius: 10px;
}

.sticky-price-bar .form-label {
    color: var(--bs-white);
    margin-bottom: 0;
    font-size: 1.1rem;
}

.sticky-price-bar #items {
    color: var(--bs-white);
    font-size: 1.2rem;
}

/* Ensure the sticky price bar doesn't overlap with footer */
body {
    margin-bottom: 0;
}

/* Add some padding to the sign section to account for sticky bar */
/* Make sure the sticky bar only appears on the sign page */
.sticky-price-bar {
    display: none;
}

#sign .sticky-price-bar {
    display: block;
}

/* Responsive adjustments for the sticky bar */
@media (max-width: 768px) {
    .sticky-price-bar {
        padding: 12px 0;
    }
    
    .sticky-price-bar .form-label {
        font-size: 1rem;
    }
    
    .sticky-price-bar #items {
        font-size: 1.1rem;
    }
    
}

/* Order Modal Styles */
.order-item {
    transition: background-color 0.2s ease;
}

.order-item:hover {
    background-color: var(--bs-gray-100);
}

.order-preview img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.order-details .fw-bold {
    color: var(--bs-dark);
    margin-bottom: 5px;
}

.order-details .text-muted {
    font-size: 0.875rem;
    line-height: 1.3;
}

.order-details .text-muted div {
    margin-bottom: 2px;
}

.remove-order-item {
    transition: all 0.2s ease;
}

.remove-order-item:hover {
    transform: scale(1.1);
}

#orderEmpty i {
    opacity: 0.3;
}

#orderModal .modal-dialog {
    max-width: 800px;
}

#orderModal .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

/* Show Order Button Styles */
#showOrderBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive adjustments for order modal */
@media (max-width: 768px) {
    .order-item .col-7 {
        flex: 0 0 60%;
        max-width: 60%;
    }
    
    .order-item .col-2:first-child {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    .order-item .col-2:last-child {
        flex: 0 0 15%;
        max-width: 15%;
    }
    
    .order-item .col-1 {
        flex: 0 0 5%;
        max-width: 5%;
    }
    
    .order-details .text-muted {
        font-size: 0.75rem;
    }
    
    .order-preview img {
        max-height: 40px;
    }
}

/* Login Dropdown Styles */
.dropdown-menu {
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: 0 6px 12px rgba(0,0,0,0.175);
}

.navbar .dropdown-toggle::after {
    margin-left: 0.5em;
}

.navbar .dropdown-item {
    padding: 8px 16px;
    transition: all 0.2s ease-in-out;
}

.navbar .dropdown-item:hover {
    background-color: var(--bs-info);
    color: white;
}

.navbar .dropdown-item i {
    width: 20px;
    margin-right: 8px;
}

#loginForm .form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#loginForm .form-control:focus {
    border-color: var(--bs-info);
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

#loginForm .btn-info {
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

#loginForm .btn-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dropdown-menu.show {
    animation: slideDown 0.2s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project Carousel Styles */
#projectCarousel {
    position: relative;
}

#projectCarousel .carousel-item img {
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

#projectCarousel .carousel-item img:hover {
    transform: scale(1.02);
}

#projectCarousel .carousel-control-prev,
#projectCarousel .carousel-control-next {
    width: 5%;
    color: var(--bs-info);
}

#projectCarousel .carousel-control-prev-icon,
#projectCarousel .carousel-control-next-icon {
    background-color: var(--bs-info);
    border-radius: 50%;
    padding: 20px;
    background-size: 50% 50%;
}

#projectCarousel .carousel-control-prev-icon:hover,
#projectCarousel .carousel-control-next-icon:hover {
    background-color: var(--bs-dark);
    transform: scale(1.1);
    transition: all 0.2s ease-in-out;
}

#projectCarousel .carousel-indicators {
    margin-bottom: -50px;
}

#projectCarousel .carousel-indicators button {
    background-color: var(--bs-info);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin: 0 4px;
}

#projectCarousel .carousel-indicators button.active {
    background-color: var(--bs-dark);
    transform: scale(1.2);
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    #projectCarousel .carousel-item img {
        height: 200px;
        margin-bottom: 15px;
    }
    
    #projectCarousel .row .col-md-5 {
        margin-bottom: 1rem;
    }
}

.table-info {
    background-color: var(--bs-info) !important;
    color: var(--bs-white) !important;
}

.table-info th {
    background-color: var(--bs-info) !important;
    color: var(--bs-white) !important;
    border-color: var(--bs-info) !important;
}