body {
    margin: 0;
    font-family: 'Roboto', Open Sans, sans-serif;
    background-color: #f5f5f5;
    color: #222;
}
h3, h4 {
    margin-bottom: 5px;
	font-family: Aladin;
}
hr {
    clear: both;
    margin-top: 1px;
}
.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.top-bar {
    display: flex;
    align-items: center;
    padding: 5px;
    border-bottom: 2px ridge #eee;
	background-color: #fff;
    position: relative;
}
.logo {
    font-weight: bold;
    margin-right: 20px;
}
.menu {
    display: flex;
}
.menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 5px;
}
.menu ul li {
    margin-right: 20px;
}
.menu ul li a {
    text-decoration: none;
    color: #333;
}

.mactive {
	border: 3px solid #00b7ff;
	border-radius: 50%;
}
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}
.left-column, .right-column {
    background-color: #fff;
    border-right: 1px solid #bbb;
    padding: 2px 2px 5px 10px;
    overflow-y: auto;
}
.left-column {
    width: 330px;
}
.right-column {
    width: 220px;
    border-left: 1px solid #bbb;
}
.left-column h3, .right-column h3 {
    margin-top: 0;
}
.left-column ul {
    list-style: none;
    padding: 0;
}

/* Hide background when image is loaded */
.canvas-area.image-loaded {
    background-image: none; 
}

.canvas-area {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	/* background: #222; */
	/* background-image: url("./images/Drag-Drop.png"); */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 300px;
	max-height: 100%;
	/* position: relative; */
}
#output {
	max-width: 100%;
	max-height: 100%;
	/* background: #fff; */
	cursor: pointer;
}

#dropZone {
	display: flex;
	width: 100%;
	height: 100%;
	justify-content: center;
	align-items: center;
	font-size: 20px;
	flex-direction: column;
}

#imagePreview {
    max-width: 100%;
    max-height: 300px;
    margin-top: 10px;
    object-fit: contain;
}

.warning {
	color: #d32f2f;
	font-size: 0.9em;
	margin-top: 0.5em;
}
#processing-overlay {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(0,0,0,0.7);
	color: white;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 0.9em;
	display: none;
	z-index: 10;
}

#saveBtn {
	padding: 5px;
	font-size: 14px;
	color: #000;
	border: 1px solid black;
    border-radius: 5px;
}
		
.main-content {
    display: flex;
    flex: 1;
    overflow: auto;
}
#menu-toggle {
    display: none;
}
.convert, .convertas {
	display: inline-block;
}
.initsz {
	width: 100%;
}

#loading{
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	display:none;
	align-items: center;
	justify-content:center;
	color:white;
	background:rgba(0,0,0,0.5);
	font-size:1.5em;
	z-index:5;
}
.logo img {
	border: 0px;
	width: 150px;
	height: 34px;
}

.title {
	align-items: flex-end;
	justify-content: flex-end;
	display: flex;
	align-self: end;
	margin-left: auto;
}
.title h1 {
	margin: 0;
	font-family: 'Aladin', Open Sans, sans-serif;
	font-size: 30px;
}
.notes p {
	font-size: 14px;
	font-weight: 400;
	font-family: Roboto;
}
.notes b {
	font-family: Aladin;
	font-size: 16px;
}

/* New footer styles */
.footer-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 10px; */
    border-top: 2px ridge #eee; /* Match top-bar border style */
    background-color: #fff; /* Match column background */
    width: 100%;
	min-height:95px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* max-width: 1200px; */ /* Optional: limit content width */
    padding: 0 20px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.footer-nav ul li {
    margin-left: 20px;
}

.footer-nav ul li a {
    text-decoration: none;
    color: #333;
}

.footer-nav ul li a:hover {
    text-decoration: underline;
}

.ads2{
	display: none;
}

@media (max-width: 480px) {
	
	.title{
		align-self: center;
	}
	
	.title h1 {
		margin: 0;
		font-size: 26px;
	}
	
	.canvas-area{
		background-size: 200px;
	}
	
}

@media (max-width: 400px) {
	.title h1 {
		margin: 0;
		font-size: 22px;
	}
}

@media (max-width: 1024px) {
    .top-bar {
        justify-content: space-between;
    }
	
	.container {
        height: auto; /* Remove fixed height */
        min-height: 100vh; /* Allow container to grow with content */
    }
	
	.main-content {
        flex-direction: column; /* Stack columns vertically */
        height: auto; /* Allow natural height */
    }
	
    .menu {
        display: none;
        position: fixed;
        top: 60px;
        right: 0;
        width: 200px;
        background-color: #fff;
        border-left: 1px solid #ddd;
        height: calc(100vh - 60px);
    }
    .menu ul {
        flex-direction: column;
        padding-left: 15px;
    }
    .menu ul li {
        margin: 10px 0;
    }
    .hamburger {
        display: block;
    }
    #menu-toggle:checked ~ .menu {
        display: block;
    }
    .left-column, .right-column {
        width: 100%;
        height: auto;
        /* max-height: 200px; */
        overflow-y: visible;
    }
    .left-column {
        border-bottom: 1px solid #aaa;
    }
    .right-column {
        border-top: 1px solid #aaa;
    }
    .main-content {
        flex-direction: column;
    }
	.controls {
		display: block;
	}

	.input-container {
		/* display: flex; */
		float: left;
		margin-right: 15px;
	}
	
	.canvas-area {
        width: 100%; /* Ensure canvas takes full width */
    }
	
	 .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-nav ul {
       /*  flex-direction: column; */
		gap: 20px;
    }

    .footer-nav ul li {
        margin: 5px 0;
    }
	
	#dropZone {
		padding:25px;
	}
	
	.ads1{
		display: none;
	}
	.ads2{
		dipslay: block;
	}
	
}

.input-container, .SVGpanel .input-container {
    padding-top: 5px;
    padding-bottom: 5px;
}
label {
    display: block;
}
.input-container select {
    /* width: 50%; */
    height: 29px;
    border: 1px solid black;
    border-radius: 5px;
    outline: none;
    margin-left: 10px;
}
.spectrum.with-add-on {
    width: 40px;
}
.custom-number-input {
    background: #ebebeb;
    display: flex;
    align-items: center;
    padding: 1px;
    height: 30px;
    background-color: #e4e4e4;
    border-radius: 6px;
    text-align: center;
}
.custom-number-input button {
    width: 36px !important;
    height: 30px !important;
    background-color: #fff;
    background-clip: padding-box;
    border-radius: 6px;
    color: #333;
    border: 1px solid transparent;
    font-size: 16px;
    cursor: pointer;
    outline: none;
}
.custom-number-input input {
    height: 30px !important;
    width: 60px !important;
    background: transparent !important;
    border: none;
    outline: none;
    text-align: center;
}
.custom-number-input input::-webkit-outer-spin-button,
.custom-number-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.custom-number-input input[type=number] {
    -moz-appearance: textfield;
}
.custom-container label {
    width: 27%;
}
.custom-container {
    display: flex;
    align-items: center;
    padding-top: 5px;
    padding-bottom: 5px;
}
.float-container {
    display: inline-block;
    padding-top: 5px;
    padding-bottom: 5px;
}
#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: inherit;
}
#theme-toggle .theme-icon {
    display: inline-block;
}
#theme-toggle .light-icon {
    display: inline;
}
#theme-toggle .dark-icon {
    display: none;
}
body.dark-theme {
    background-color: #1a1a1a;
    color: #e0e0e0;
}
body.dark-theme .top-bar {
    background-color: #2c2c2c;
    border-bottom: 1px solid #444;
}
body.dark-theme .menu ul li a {
    color: #ccc;
}
body.dark-theme .menu {
    background-color: #2c2c2c;
    border-left: 1px solid #444;
}
body.dark-theme .left-column, body.dark-theme .right-column {
    background-color: #2c2c2c;
    border-right: 1px solid #444;
    border-left: 1px solid #444;
}
body.dark-theme .canvas-area {
    background-color: #222;
    /*background-image: url("./images/Drag-Drop-dark.svg");*/
}
body.dark-theme .canvas-area.image-loaded {
    background-image: none; /* Hide dark background when image is loaded */
}
body.dark-theme #output {
    /* background: #2c2c2c; */ /* Solid background for dark theme */
}
body.dark-theme .input-container select {
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #555;
}
body.dark-theme .input-container .custom-number-input {
    background-color: #333;
    border: 1px solid #555;
}
body.dark-theme .input-container .custom-number-input button {
    background-color: #444;
    color: #e0e0e0;
    border: 1px solid #555;
}
body.dark-theme .input-container .custom-number-input input {
    background: transparent !important;
    color: #e0e0e0;
}
body.dark-theme label {
    color: #e0e0e0;
}
body.dark-theme button.decrease, body.dark-theme button.increase {
    background-color: dimgrey;
    color: white;
}
body.dark-theme #theme-toggle .light-icon {
    display: none;
}
body.dark-theme #theme-toggle .dark-icon {
    display: inline;
}
body.dark-theme #theme-toggle {
    color: #ccc;
}

body.dark-theme .footer-bar {
    background-color: #2c2c2c;
    border-top: 1px solid #444; /* Match top-bar dark theme */
}

body.dark-theme .footer-nav ul li a {
    color: #ccc;
}

body.dark-theme .footer-content p {
    color: #e0e0e0;
}