body {
  font-family: Arial, sans-serif;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.main {
	display: flex;
    height: 100vh;
	width: 100vw;
	flex-direction: column; 
}

.mainHeader{
	background: #d5d6d6;
    width: 100%;
    height: 60px;
	display:flex; 
}

.mainFooter{
	background: #d5d6d6;
    width: 100%;
    height: auto;
	display:flex; 
	top: auto;
	/* align-items: center;
	justify-content: center; */
	padding: 10px;
	position: relative;
}

.logo{
	height: 40px;
    margin-left: 10px;
    margin-bottom: 5px;
	margin-top: 5px;
	cursor: pointer;
}

.footer-bar {
  padding: 8px 15px;
  font-size: 18px;
  font-weight: bold;
}

.footer-step-title {
  color: #333;
  font-size: 18px;
  padding: 10px;
}

.footer-toggle {
  left: 10px;
  background: #38e338;
  border: black;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.3s;
}

.footer-toggle:hover {
  background: #bcc7c7;
}

.steps-header {
	display: flex;
	align-items: center;
	gap: 40px;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}

.step {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #aaa;
}

.step-circle {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #ccc;
	color: white;
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: bold;
}

.step-label {
	font-size: 13px;
	font-weight: bold;
	margin-top: 4px;
}

.step.active .step-circle {
	background: #38e338;
}

.step.active .step-label {
	color: black;
	font-weight: bold;
}

.step:hover .step-circle {
	background: #38e338;
	cursor: pointer;
}

.step:hover .step-label {
	color: black;
	font-weight: bold;
	
}

.step-circle,
.step-label {
	transition: background 0.3s ease, color 0.3s ease;
}

.backButton{
	display:none; 
	position: absolute;
	top: 10px;
    left: 370px;
    z-index: 5;
    background: #rgb(108 101 101);
    color: #cb1a3b;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
	border: 2px solid black; 
    font-size: 25px;
    transition: left 0.3s ease;
}

.contentWrapper {
  display: flex;
  flex: 1; 
  width: 100%;
  height: calc(100% - 50px);
}

.mainContent {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: opacity 0.5s ease, height 0.5s ease, width 0.3s ease;
  z-index: 1;
  padding: 10px;
  padding-right: 25px;
  box-sizing: border-box;
}


.mainContent h2 {
  background-color: #bcc7c7;
  padding: 10px;
  margin: 0 0 20px 0;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.card-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top:30px;
}

.card {
  background: #f9f9f9;
  border: 2px solid rgb(108 101 101);
  border-radius: 10px;
  width: 220px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border: 2px solid #38e338; 
}
.card:hover .card-label {
  background: #38e338; 
}

.card-icon {
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-icon img {
  max-width: 50px;
  max-height: 50px;
}

.card-label {
  background: #bcc7c7;
  color: #000;
  padding: 8px;
  font-size: 14px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #38e338;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  line-height: 24px;
  font-size: 12px;
  text-align: center;
}

.rotate-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
    padding-bottom: 5px;
	background: #38e338;
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 16px;
	transition: transform 0.3s ease;
	z-index: 1000;
}

.card-icon.rotated {
	transform: rotate(90deg);
	transition: transform 0.3s ease;
}

.footer-progress {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  height: 120px;
  margin-top: auto; 
  margin-left: auto;
  padding: 10px 70px;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-bg,
.progress-bar {
  fill: none;
  stroke-width: 8;
  r: 45;
  cx: 50;
  cy: 50;
}

.progress-bg {
  stroke: #c1cacb;
}

.progress-bar {
  stroke: #38e338;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.3s;
}

.progress-text {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 20px;
  padding-top: 10px
}

.step-nav {
  position: absolute;
  width: 100%;
  text-align: center;
  bottom: 20px;
  justify-content: space-around;
}

.prev-btn,
.next-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  color: #333;
}

.prev-btn:hover:not(:disabled),
.next-btn:hover:not(:disabled) {
  color: #38e338;        
  transform: scale(1.15); 
}

.prev-btn:disabled,
.next-btn:disabled {
  color: #aaa;           
  cursor: not-allowed;   
  transform: none;       
  opacity: 0.6;          
}

.sidebar {
  width: 400px;
  height: 100%;
  background: #f7f7f7;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding:10px;
}

.sidebar-header {
  background: #949594;
  color: #fff;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  justify-content: space-between;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}


.sidebar-toggle-btn{
  position: absolute;
  top: 10px;
    left: 300px;
    z-index: 5;
    background: #rgb(108 101 101);
    color: #cb1a3b;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
	border: 2px solid black; 
    font-size: 25px;
    transition: left 0.3s ease;
}
.sidebar-toggle-btn:hover,{
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
}

.sidebar-content {
  flex: 1;
  padding: 32px 24px 0 24px;
  overflow-y: auto;
}

.sidebar-card {
	border: 1px solid #38e338;
	border-radius: 4px;
	padding: 10px;
	margin-bottom: 15px;
	background-color: #fff;
	cursor: pointer;
	transition: box-shadow 0.3s ease;
}

.sidebar-card:hover {
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.sidebar-card-title {
	font-size: 16px;
	font-weight: bold;
	color: black;
	margin-bottom: 5px;
}

.sidebar-card-subtitle {
	font-size: 14px;
	color: black;
}

.rectangle-sidebar table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}
.rectangle-sidebar th, .rectangle-sidebar td {
    padding: 8px;
    border: 1px solid #ddd;
}
.rectangle-sidebar input {
    border: 1px solid #ccc;
    padding: 4px;
    border-radius: 4px;
}
.rectangle-sidebar label {
    font-weight: bold;
}
.invalid {
	border: 2px solid red;
	outline: 2px solid red;
}
.wall-length{
	text-align:center;
	font-size: medium;
}

.wall-height{
	width:80px; 
	text-align:center; 
	margin-top: 10px;
}

.wall-thickness{
	width:80px; 
	text-align:center; 
	margin-top: 10px;
}

@media (max-width: 500px) {
  .sidebar {
    width: 100vw;
    min-width: 0;
  }
}

.row {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.row label {
  flex: 0 0 30px;
}

.row input {
  flex: 1;
  margin: 0 5px;
}

.row span {
  flex: 0 0 30px;
}

.tooltip-msg {
	color: red;
	display: none;
	font-size: 12px;
	margin-top: 4px;
}

.sidebar.closed {
  right: -400px;
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
}

.sidebar.collapsed {
  width: 60px;
  min-width: 0;
}
.sidebar.collapsed .sidebar-title,
.sidebar.collapsed .sidebar-content,
.sidebar.collapsed .sidebar-card {
  display: none !important;
}
.sidebar.collapsed .sidebar-header-actions {
  flex-direction: column;
  gap: 0;
}

.roomType {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.roomType-text {
  flex: 0 0 auto;
  padding: 5px;
}

.roomType-canvas {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
}

.room-rotate, .back-roomsize {
	position: relative;
	width: 32px;
	height: 32px;
    padding-bottom: 7px;
	background: #38e338;
	color: white;
	border-radius: 50%;
	border: 1px solid #807f7f;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 16px;
	transition: transform 0.3s ease;
}

.element-box {
  background: #fff;
  padding: 15px;
  border: 1px solid #eee;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s, border-color 0.2s;
}

.element-box:hover {
  background-color: #f5f5f5;
  color: #38e338;
}

.element-box.active {
  background-color: #e3f2fd;
  border-color: #2196f3;
}
