* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

label.size-option-label.selected span.size-text {
    border-color: red;
}
div#optionGrid4 label.size-option-label.selected span {
    border-color: #000000;
}

.terrazzo-designer {
    font-family: 'Arial', sans-serif;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.terrazzo-header {
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 30px 20px 0;
    background: #fff;
    gap: 260px;
}
.terrazzo-header {
    max-width: 1290px;
    margin: 0 auto;
    width: 100%;
	margin-bottom: 20px;
}

.logo-section {
    text-align: left;
}

.logo-title {
    font-size: 32px;
    font-weight: 500;
    /* letter-spacing: 1px; */
    margin: 0 0 0px;
    color: #000;
    line-height: 1.2em;
    font-family: "My Custom Font", Sans-serif !important;
}

.logo-subtitle {
    font-size: 11px;
    letter-spacing: 3px;
    color: #666;
    margin-top: 5px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.name-input-field {
    width: 350px;
    padding: 15px 25px;
    border: 2px solid #000;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
}

.name-input-field::placeholder {
    color: #999;
}

.add-to-list-btn {
    padding: 15px 30px;
   /*  background: #000; */
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
}
.add-to-list-btn, .add-to-list-btn:hover {
    background: #fff;
    color: #000;
    background: linear-gradient(90deg, #2b0b14, #5f0707);
    -webkit-background-clip: text;
/*     -webkit-text-fill-color: transparent; */
    font-weight: 600;
}

.add-to-list-btn:hover {
   opacity:0.6;
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    gap: 0;
    flex: 1;
    background: transparent;
}
.content-wrapper {
    max-width: 1270px;
    margin: 0 auto;
    width: 98%;
}
/* Preview Section */
.preview-section {
/*     flex: 1; */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
	padding-top: 0;
    background: #fff;
	width: 75%;
}
.preview-layer {
    border: 1px solid #0000000f;
}
.terrazzo-canvas {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    position: relative;
    background: #e0e0e0;
    border-radius: 0px;
    overflow: hidden;
}

.preview-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Sidebar */
.sidebar-list {
    display: flex;
    width: 100%;
    max-width: 1290px;
    margin: 0 auto;
    gap: 40px;
    background: #fff;
    padding: 30px 20px;
    border-left: 0px solid #ddd;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-top: 50px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0;
    color: #000;
    margin-top: 0;
    align-items: center;
    display: flex;
}

.saved-items {
    display: flex;
    flex-direction: row;
    gap: 15px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 10px;
    border-left: 2px solid #ececec;
    padding-left: 2%;
}

.empty-message {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 40px 0;
}
.saved-item-card {
    display: flex;
    align-items: center; 
    gap: 12px;
    padding: 10px;
    border: 1px solid #ff0000;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 250px;
}

.saved-item-card:hover {
    background: #f9f9f9;
    transform: translateX(-3px);
}

.saved-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    border: 1px solid #ddd;
}
.saved-thumbnail {
    width: 100%;
    border: 0;
}
.saved-item-info {
    flex: 1;
    overflow: hidden;
}
.saved-item-info {
    position: absolute;
    left: 0;
    right: 0;
}

button#addToListBtn span {
    margin-right: 10px;
}
.saved-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
} 

.saved-items {
    position: relative;
}
.saved-item-card {
    position: relative;
}

.delete-saved-btn {
    background: #ff4444;
    color: #fff;
    border: none;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 0;
    transition: background 0.2s;
}
button.delete-saved-btn {
    position: absolute;
    right: 11px;
    top: 2px;
    width: 15px;
    height: 15px;
    font-size: 15px;
    padding: 2px;
}

.delete-saved-btn:hover {
    background: #cc0000;
}

.scroll-indicator {
    position: absolute;
    right: 5px;
    top: 80px;
    bottom: 80px;
    width: 4px;
    display: none;
}

/* Control Panel */
.control-panel {
    background: #fafafa;
    padding: 45px 25px;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    width: 23%;
	position: relative;
}

/* .category-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 220px;
} */

.category-buttons {
    display: flex;
    gap: 30px;
    justify-content: flex-start;
    flex-direction: column;
	padding-top: 10px;
}

/* .category-btn {
    padding: 18px 30px;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    white-space: nowrap;
} */
.category-btn {
    font-size: 9px;
    padding: 10px 5px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    border: none;
    color: #fff;
    background: linear-gradient(90deg, #6b0000 0%, #d60000 100%);
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.25), inset 0 -4px 8px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: 0.2s;

}

.category-btn:hover {
    background: #fff;
    color: #000;
}

/* .category-btn.active {
    background: #8B0000;
    border-color: #8B0000;
    color: #fff;
} */
.category-btn.active {
    border-color: #8B0000;
    color: #fff;
    padding: 10px 5px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    color: #000000;
    background: #fff;
    box-shadow: inset 0 1px 6px rgba(255, 255, 255, 0.25), inset 0 -4px 8px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: 0.2s;
}

/* Options Area */
.options-area {
    flex: 0;
    display: flex;
    gap: 30px;
    padding-top: 10px;
    align-items: flex-start;
}
.options-area {
    border-left: 2px solid #e0d4d4;
    /* height: 277px; */
    padding-left: 5%;
    margin-left: 5%;
}
div#optionsContainer {
    max-height: 440px;
    overflow: auto;
    min-width: 110px;
    padding: 7px 10px 0;
    min-height: -webkit-fill-available;
}
.options-container {
    flex: 1;
}

/* .option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 15px;
    max-width: 800px;
} */
/* .option-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    max-width: 800px;
} */
.option-grid {
    grid-template-columns: repeat(auto-fill, minmax(35px, 0fr));
    max-width: 100px;
    gap: 20px;
}
/* Color Circles */
.color-circle-label {
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
}

.color-circle-label input {
    display: none;
}

.color-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid #ff0000;
    transition: all 0.3s;
    cursor: pointer;
}

.color-circle-label:hover .color-circle {
    transform: scale(1.1);
}

.color-circle-label.selected .color-circle {
    border-color: #fff;
    box-shadow: 0 0 0 2px #8B0000, 0 4px 12px rgba(0,0,0,0.3);
    transform: scale(1.05);
}

/* Size Options */
.size-option-label {
    cursor: pointer;
}

.size-option-label input {
    display: none;
}

.size-text {
    display: block;
    padding: 10px 20px;
    background: rgb(0 0 0);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.size-option-label:hover .size-text {
    opacity: 0.8;
    background: rgb(0 0 0);
    border-color: rgba(255,255,255,0.5);
}

.size-option-label.selected .size-text {
    background: #000000;
    color: #ffffff;
    border-color: #fff;
}

div#optionGrid4 {
    grid-template-columns: repeat(auto-fill, minmax(102px, 0fr));
    max-width: 100px;
    gap: 20px;
}

/* Download Button */
.download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #8B0000;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 20px 35px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.download-btn:hover {
    background: #A00000;
    transform: translateY(-2px);
}

.download-icon {
    font-size: 28px;
}

.download-label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}
.download-label img {
    position: relative;
    top: 5px;
    width: 29px;
    right: 10px;
}
button#downloadAllBtn {
    border: 0;
	border-radius: 0;
	
}
button#downloadAllBtn:hover, button#downloadAllBtn:focus {
    opacity: 0.8;
}
.header-actions input#terrazzoNameInput {
    border-radius: 50px;
    border: 2px solid;
    color: #000;
    padding: 13px;
	min-width: 224px;
	background: linear-gradient(90deg, #2b0b14, #5f0707);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.header-actions input#terrazzoNameInput::placeholder {
    color: #000;
	font-weight: 600;
    background: linear-gradient(90deg, #2b0b14, #5f0707);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* 10-nov-2025*/
/* Add spacing between option buttons */
.category-btn {
    margin-bottom: 15px;
}

/* Chip Size buttons spacing */
.size-option-label {
    margin-bottom: 12px;
}

/* Circles spacing */
.color-circle-label {
    margin-bottom: 15px;
}
.control-panel {
    padding-top: 0px;
    padding-bottom: 0;
	width: 28%;
}
.category-buttons {
    padding-top: 40px;
}
.options-area {
    padding-top: 40px;
    padding-bottom: 40px;
}
div#optionGrid2::before {
    top: 0;
}
div#optionGrid2::after {
    bottom: 0;
}
.category-btn {
    padding: 15px;
}
.category-btn.active {
    padding: 15px;
}
/* CTA Button Styling */
.add-to-list-btn {
    font-size: 12px;
    padding: 13px 18px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    border: none;
    color: #fff;
    background: linear-gradient(90deg, #6b0000 0%, #d60000 100%);
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.25), inset 0 -4px 8px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: 0.2s;
}


/* Responsive */
@media (max-width: 1200px) {

    .control-panel {
        flex-direction: column;
        gap: 30px;
    }
    
    .category-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .options-area {
        flex-direction: row;
		border-left: 0px solid #fff;
        width: 100%;
    }
	.option-grid {
		grid-template-columns: repeat(3, minmax(50px, 1fr));
		gap: 20px;
	}

	.size-text {
		max-width: 180px;
	}
    
    .option-grid {
        max-width: 100%;
    }
	button#downloadAllBtn {
		margin-top: 0px;
	}
}
@media (max-width: 1024px) { 
	.preview-section {
			width: 65%;
		}
			.content-wrapper {
				padding: 20px;
				
			}
		.control-panel {
			width: 35%;
			align-items: center;
		}	
	.option-grid {
        grid-template-columns: repeat(4, minmax(50px, 1fr));
        gap: 20px;
    }
	.options-area {

		padding-left: 0;
		margin-left: 0;
	}
	.options-container {
		flex: 1;
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: center;
	}
	.category-buttons {
		display: flex;
		gap: 25px;
	}
}

@media (max-width: 768px) {
	.category-buttons {
		display: flex;
		gap: 15px;
	}
	.saved-thumbnail {
		width: 100%;
		height: 60px;
		border-radius: 6px;
		background: border-box;
	} 
    .terrazzo-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .header-actions input#terrazzoNameInput {
		border-radius: 50px;
		border: 2px solid;
		color: #000;
		font-size: 12px;
		padding: 7px;
		min-width: 194px;
		background: linear-gradient(90deg, #2b0b14, #5f0707);
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
	}
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar-list {
		width: 100%;
		border-left: none;
		border-top: 1px solid #ddd;
		flex-direction: column;
		padding-top: 86px;
	}
	.preview-section {
    width: 100%;
	}
    
    .control-panel {
        padding: 20px;
		width: 100%;
    }
    
    .name-input-field {
        width: 100%;
    }
	.saved-items {
		display: flex;
		flex-direction: column;
		gap: 15px;
		max-height: calc(100vh - 200px);
		overflow-y: auto;
		padding-right: 10px;
		border-left: 2px solid #ececec;
		padding-left: 2%;
	}
	
	/* 20 nov 2025 */
	.control-panel {
		padding: 0px 0 0 !important;
	}
	#hoverTitleBox {
    	top: -40px !important;
	}
	.preview-section {
    	align-items: flex-start !important;
	}

}


/* Modal Styles */
.terrazzo-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 10%);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #000000;
    margin: 1% auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
    position: relative;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    font-size: 22px;
    font-weight: normal;
    margin: 0 0 8px 0;
    color: #ffffff;
    text-align: center;
	margin-bottom: 30px;
}

.modal-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0 0 30px 0;
}

.download-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: normal;
    color: #fff;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 15px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-error {
    background-color: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    border-left: 4px solid #e74c3c;
}

.modal-submit-btn {
    background: red;
    color: white;
    border: none;
    padding: 8px 5px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
    max-width: 111px;
}

.modal-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.modal-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.modal-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-loader {
    display: inline-block;
}
button#verifyOtpBtn, button#sendOtpBtn  {
    max-width: 130px;
    margin-top: 5px;
    border-radius: 15px;
    padding: 5px;
    background: #ffffff;
	color:#000;
}
button#verifyOtpBtn:hover, button#sendOtpBtn:hover {
	opacity:0.9;
}
/*.modal-content {
    overflow-y: scroll !important;
    height: 100vh;
}*/

button#downloadAllBtn {
     border-radius: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 0px 40px 5px;
    border: none;
    color: #fff;
    background: linear-gradient(90deg, #6b0000 0%, #d60000 100%);
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.25), inset 0 -4px 8px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: 0.2s;
	height: 80px;
}
.download-label {
    color: #ffffff;
}
/* 
div#hoverTitleBox {
    max-width: 90%;
    margin: 0 auto;
} */
.terrazzo-canvas {
    box-shadow: 0px 7px 12px 8px #00000017;
    margin-bottom: 30px;
}
div#hoverTitleBox {
    max-width: 220px;
    margin: 0 auto;
}
.terrazzo-canvas {
    margin-right: 20px;
}

@media (max-width: 1024px) {
    .category-buttons {
        flex-direction: column;
        max-width: 170px;
    }
	.content-wrapper {
		display: flex;
		gap: 10px;
	}
}
/* iPad Landscape */
@media only screen 
  and (min-device-width: 768px)
  and (max-device-width: 1024px)
  and (orientation: landscape) {

    /* Your CSS here */
	  .terrazzo-canvas {
		height: 90vh;
	}
	footer.control-panel {
		height: 90vh;
	}
	.saved-thumbnail {
		background-size: cover;
	}
 .saved-item-card {
		min-width: 190px;
	}
}


/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
        width: 95%;
    }
    
    .modal-title {
        font-size: 20px;
    }
}

/* iPad Portrait */
@media only screen 
  and (min-device-width: 768px)
  and (max-device-width: 1024px)
  and (orientation: portrait) {
    /* Your CSS */
	    .preview-section {
        width: 70%;
    }
	.control-panel {
        padding: 40px 0 0;
        width: 30%;
    }
	  .content-wrapper {
        flex-direction: row;
    }
	.terrazzo-canvas {
  	  height: 60vh;
   }
	
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  20% { transform: scale(1.03); }
  40% { transform: scale(1.06); }
  60% { transform: scale(1.03); }
  80% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.heartbeat-animate {
  animation: heartbeat 1.2s ease-in-out infinite;
}
