@import "../bootstrap-touchspin/jquery.bootstrap-touchspin.min.css";

.form-alani {
	position: relative; 
	border: 2px dashed #005095; 
}

.fa-p {
	padding-top: 70px!important; 
	padding-bottom: 70px!important;
}

.none-file-upload {
	background-color: #005095; 
	color: #ffffff; 
	padding: 10px 20px; 
	border: none; 
	cursor: pointer; 
	border-radius: 5px; 
	display: inline-block; 
	text-align: center; 
	position: relative; 
	padding-left: 46px; 
	font-size: 15px;
}

.none-file-upload::before {
	content: ""; 
	position: absolute; 
	left: 20px; 
	top: 50%; 
	transform: translateY(-50%); 
	width: 20px; 
	height: 16px; 
	background-image: url('../../image/page/upload-icon.png'); 
	background-size: contain; 
	background-repeat: no-repeat;
}

.none-file-upload:hover {
	background-color: #316cbe;
}

input[type="file"] {
	display: none;
}

.form-loader {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 80, 149, 0.4);
	backdrop-filter: blur(3px);
	z-index: 10;
	justify-content: center;
	align-items: center;
	border-radius: 8px;
}

.spinner {
	border: 5px solid #fff;
	border-top: 5px solid #005095;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0%	{
		transform: rotate(0deg);
	}
	
	100% {
		transform: rotate(360deg);
	}
}

.bilgi {
	display: inline-block;
	text-align: center;
	position: relative;
	padding-left: 46px;
	font-size: 15px;
}

.bilgi::before {
	content: "";
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	background-image: url('../../image/page/kilit.png');
	background-size: contain;
	background-repeat: no-repeat;
}

.thumbnail img {
	background-color: #ffffff!important;
	width: 60px!important;
	height: 60px!important;
	border: 1px solid #c1c6e4;
}

.vertical-center {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
}

.vertical-start {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	height: 100%;
}

.responsive-iframe-container {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 80%;
	overflow: hidden;
}

.responsive-iframe-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.bg-soft {
	background-color: #f6f6fb!important;
}

.bg-soft-none {
	background-color: #f0f2f6!important;
}

.baskiadeti input {
	display: inline-flex;
	border: 1px solid #212529;
	border-radius: 4px;	
	background: #fff;
	height: 24px!important;
}

.touchspin {
	max-width: 4em;
	max-height: 24px!important;	
	background: transparent;
	border: 0;
	border-right-width: 0px;
	border-right-style: none;
	border-right-color: currentcolor;
	border-left-width: 0px;
	border-left-style: none;
	border-left-color: currentcolor;
	text-align: center;
	font-size: 14px;
	-moz-appearance: textfield;
	border-radius: 0;
	outline: 0;
	border-left: 1px solid #c1c6e4;
	border-right: 1px solid #c1c6e4;
	line-height: 1.15;
	padding: 0;
	margin: 0;
}

.bootstrap-touchspin-injected {
	display: flex;
	/* Flexbox özelliğini kullanıyoruz */
	justify-content: center;
	/* Yatayda ortalamak için */
	align-items: center;
	/* Dikeyde ortalamak için */
	height: 24px!important;
	/* Yüksekliği tam yaparak içerikteki elemanların ortalanmasını sağlıyoruz */
}

.input-group-append, .input-group-prepend {
	height: 24px!important;
}

.btn-sm-spin {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 24px!important;
	line-height: 24px!important;
	padding-top: 0px!important;
}

.btn-sm-prepend {
	padding-bottom: 0px!important;
}

.btn-sm-append {
	padding-bottom: 0px!important;
}

.mh-24 {
	height: 24px!important;
}

.lh-18 {
	line-height: 18px!important;
}

.lh-20 {
	line-height: 20px!important;
}

.lh-22 {
	line-height: 22px!important;
}

.lh-24 {
	line-height: 24px!important;
}

.lh-26 {
	line-height: 26px!important;
}

.dragover {
	border: 2px dashed #3e7d3d;
	background-color: #eef6ff;
	transition: all 0.3s ease;
}

.disabled-label {
  pointer-events: none;
  opacity: 0.5;
  cursor: default;
}



/* 1. Modal ve Dış Çerçeve Ayarları */
.modal-dialog.preview-modal-dialog {
    max-width: 800px; 
    margin: 1.75rem auto;
    display: flex;
    align-items: center;
    /* Modalın dikeyde ortalı kalmasını sağlar */
    min-height: calc(100% - 3.5rem); 
}

.preview-modal-content {
    border-radius: 12px;
    overflow: hidden; 
    position: relative;
    width: 100%;
    background-color: #fff;
    border: none;
}

/* 2. Kapat Butonu (X) Sabitleme */
.preview-modal-content .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 3. Teknik Çizim Alanı (Görsel ve Ölçüler) */
.technical-viewer {
    position: relative;
    width: 100%;
    height: 450px; /* Masaüstü sabit yükseklik */
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.image-wrapper img {
    max-width: 85%;
    max-height: 75%;
    width: auto;
    height: auto;
    object-fit: contain;
    z-index: 5;
}

/* 4. Ölçü Metinleri */
.measure-text {
    background: #fff;
    padding: 3px 10px;
    border: none; /* Resimdeki gibi çerçeveli olması için geri ekledim */
    font-size: 13px;
    font-weight: bold;
    color: #333;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 10;
}

.measure-horizontal {
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.measure-vertical {
    position: absolute;
    left: 20px;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.measure-vertical .measure-text {
    transform: rotate(-90deg);
}

/* 5. Mobil Uyumluluk (Responsive) */
@media (max-width: 576px) {
    .modal-dialog.preview-modal-dialog {
        margin: 10px;
        max-width: none;
        width: calc(100% - 20px);
        min-height: calc(100% - 20px);
    }

    .technical-viewer {
        height: 320px; /* Mobilde yüksekliği düşürdük */
    }

    .measure-text {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .measure-vertical {
        left: 10px; /* Mobilde yazıyı biraz daha sola çektik */
    }
}


.image-olcu-container {
    position: relative; 
}

.image-olcu-container img {
    display: block;
    z-index: 5;
	margin-top: 10px;
	margin-left: 10px;
}

.olcu-cizgisi {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    color: #333;
}

.olcu-metni {
    background-color: white; 
    color: #333;
    font-size: 14px;
    font-weight: bold;
    padding: 0 10px;
    line-height: 1;
    white-space: nowrap;
    z-index: 12;
    pointer-events: auto;
}

.olcu-genislik {
    top: -10px;
    left: 0;
    width: calc(100% - 10px);
    height: 2px;
	margin-left: 10px;
    background-color: transparent;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.olcu-genislik::before,
.olcu-genislik::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 8px;
    background-color: transparent;
    top: 50%; 
    transform: translateY(-50%);
}

.olcu-genislik::before {
    left: 0; 
}

.olcu-genislik::after {
    right: 0;
}

.olcu-genislik .genislik-metni {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -8px;
}

.olcu-yukseklik {
    top: 10px;
    left: -10px;
    height: calc(100% - 10px);
    width: 2px;
    background-color: transparent;
}


.olcu-yukseklik .yukseklik-metni {
    position: absolute;
    top: 50%;
    left: -46px; 
    transform: rotate(-90deg) translateY(-50%); 
}

.olcu-yukseklik::before,
.olcu-yukseklik::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 2px;
    background-color: transparent;
    left: 50%;
    transform: translateX(-50%);
}

.olcu-yukseklik::before {
    top: 0;
}

.olcu-yukseklik::after {
    bottom: 0;
}




.icon-cog {
	width: 22px;
    height: 22px;
    background-image: url('svg/cog.svg');
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

.icon-attachments {
	width: 15px;
    height: 15px;
    background-image: url('svg/attachments.svg');
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

.none-menu, .none-menu * {
    box-sizing: border-box;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

.none-menu {
    display: flex;
    gap: 10px;
}

.none-menu-item {
    position: relative;
}

.none-menu-link {
    display: inline-flex;      /* inline-block yerine inline-flex */
    align-items: center;       /* dikey ortalama */
    gap: 4px;                  /* metin ile icon arası boşluk */
    /*padding: 10px 20px;*/
    color: #005096;
	font-family: "Inter", sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
	font-size: 14px;
	line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.none-menu-link:hover {
    color: #003060; /* Hoverda koyulaşır */
}

/* Icon span stil */
.none-menu-link .icon-cog {
    display: inline-block;
    font-size: 14px;   /* icon boyutu */
    line-height: 1.5;    /* dikey ortalama */
}

.none-submenu {
    position: absolute;
    top: 100%;
    left: 0;
	margin-top: 5px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-width: 200px;
    /* başlangıçta gizli */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
	padding: 5px;
	box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
	border-radius: 8px;
}

.none-submenu a {
    padding: 5px 10px;
    text-decoration: none;
    color: #005096;
    transition: all 0.3s;
	font-family: "Inter", sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
	font-size: 14px;
	line-height: 1.5;
}

.none-submenu a:hover {
    text-decoration: underline; /* Hoverda alt çizgi */
}

.none-menu-item.active .none-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.link-stoper-style {
    color: #005095;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.link-stoper-style:hover {
    color: #003d73;
    text-decoration: none; 
}

.link-stoper-style .icon-attachments {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.textarea-counter-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}
.textarea-char-counter {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 12px;
  background: rgba(255,255,255,0.8);
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  color: #333;
  user-select: none;
}

.textarea-char-counter.over {
  color: #b00020;
  font-weight: 600;
}

#demo-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  background: rgba(0, 80, 149, 0.92);
  pointer-events: auto;
  transition: opacity 200ms linear;
  opacity: 0;
}

#demo-overlay .demo-text {
  font-family: 'Inter', Segoe UI, sans-serif;
  color: #fff;
  font-size: clamp(18px, 4vw, 36px);
  font-weight: 500;
  text-align: center;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 6px 30px rgba(0,0,0,0.35);
}

@keyframes demoOverlayPulse {
  0%   { opacity: 0; transform: scale(0.98); }
  10%  { opacity: 1; transform: scale(1); }
  90%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.02); }
}

#demo-overlay.show {
  animation: demoOverlayPulse 2s forwards ease;
}

@media (max-width: 480px) {
  #demo-overlay .demo-text { font-size: clamp(16px, 5vw, 22px); padding: 0.5rem 1rem; }
}

/* --- Model Card Redesign --- */
.stoper-model-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.stoper-model-card:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.08) !important;
}

.custom-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0 !important;
    border-radius: 6px !important;
    background-color: #fff;
    border: 1px solid #dee2e6;
    color: #005095;
    transition: all 0.2s ease;
}
.custom-icon-btn:hover {
    background-color: #f8f9fa;
    border-color: #c1c9d0;
}

.custom-kebab-menu .dropdown-toggle::after {
    display: none; /* Hide default dropdown arrow if it appears */
}

.custom-kebab-menu .dropdown-menu {
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    min-width: 180px;
    padding: 6px 0;
}
.custom-kebab-menu .dropdown-item {
    font-size: 14px;
    border-radius: 6px;
    margin: 2px 6px;
    width: calc(100% - 12px);
    transition: all 0.2s ease;
}
.custom-kebab-menu .dropdown-item:hover {
    background-color: #f0f4f8;
}
.custom-kebab-menu .dropdown-item.disabled {
    opacity: 0.5;
    pointer-events: none;
}
.custom-kebab-menu .dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 15px;
}
.btn-add-to-cart {
    background-color: #004d99;
    border-color: #004d99;
    transition: all 0.2s ease;
}
.btn-add-to-cart:hover {
    background-color: #003366;
    border-color: #003366;
}
/* -------------------------------- */