body {
    font-family: "degular-text", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin: 20px 40px;
    background: #fafafa;
}
p{
    margin-top: 0;
    margin-bottom: 2em;
}
h1,h2,h3,h4{
    font-family: "degular-display", sans-serif;
    font-weight: 700;
    font-style: normal;
}
.app{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.left{
    width: 50%;
    text-align: left;
    padding-right: 20px;
    box-sizing: border-box;
    border-right: 2px solid #eee;
}
.right{
    width: 40%;
    justify-content: center;
    text-align: center;
    align-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#dropzone {
    border: 2px dashed #888;
    padding: 40px;
    border-radius: 12px;
    color: #666;
    cursor: pointer;
    margin-bottom: 20px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#dropzone.has-files {
    height: auto;
    min-height: 20px;
}
#dropzone.dragover {
    border-color: #00aaff;
    background: #e6f7ff;
    color: #0077aa;
}
#preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}
.preview-item {
    position: relative;
    cursor: move;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 5px;
    background: white;
    transition: all 0.2s;
}
.preview-item:hover {
    border-color: #0077cc;
    transform: scale(1.05);
}
.preview-item.dragging {
    opacity: 0.5;
}
.preview-item.drag-over {
    border-color: #00aaff;
    background: #e6f7ff;
}
.preview-item img, .preview-item video {
    max-width: 100px;
    max-height: 100px;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}
.preview-item .remove-btn {
    position: absolute;
    top: -10px;
    right: 0px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: none;
    padding: 0;
}
.preview-item:hover .remove-btn {
    display: block;
}
.preview-item .order-number {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0, 119, 204, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}
.controls {
    margin: 20px 0;
    display: none;
    flex-direction: row;
    justify-content: space-between;
    flex-flow: wrap;
}
.controls.show{
    display: flex;
}
.control-group{
    width: 50%;
    margin-top: 20px;
}
.premium-group{
    width: 100%;
    display: flex;
}
label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;
}
select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 2px solid #ddd;
    background: white;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 10px;
    width: 80%;
}
select:hover {
    border-color: #0077cc;
}
a#download,
button {
    background: #5eaa64;
    color: #000;
    border: none;
    font-weight: bold;
    padding: 20px 30px;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 15px;
}
button:hover {
    background: #1f6024;
    color: #FFF;
}
button:disabled {
    background: #ccc;
    cursor: not-allowed;
}
#clearBtn {
    background: #f06e6e;
    margin-left: 10px;
}
#clearBtn:hover {
    background: #ae0202;
    color: #FFF;
}
video#result {
    display: none;
    max-width: 90%;
    border-radius: 8px;
    margin-bottom: 20px;
    max-height: 600px;
}
video#result.show {
    display: block;
}
a#download {
    display: none;
    margin-top: 20px;
    text-decoration: none;
}
#loading {
    display: none;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 400px;
}
#loading.show {
    display: block;
}
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0077cc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}
.gold-button,
#buyPremium,
#goPremiumBtn {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    color: #333;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    border: 2px solid #e6c200;
    transition: all 0.3s ease;
    display: inline-block;
}
.gold-button:hover,
#goPremiumBtn:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700, #ffed4e);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
}
#goPremiumBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}
.premium-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #e6c200;
}

.premium-feature.unlocked .premium-badge {
  display: none;
}

.premium-feature select {
  opacity: 0.6;
  cursor: not-allowed;
}

.premium-feature.unlocked select {
  opacity: 1;
  cursor: pointer;
}

ul{
    text-align:left; 
    margin: 20px 0 30px 0; 
    padding-left: 20px; 
    color:#333; 
    font-size:16px;
    list-style: none;
}
ul li{
    list-style: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.progress-container {
    width: 100%;
    background: #f3f3f3;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
    height: 20px;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0077cc, #00aaff);
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}
.storage-info {
    margin: 10px 0;
    font-size: 12px;
    color: #666;
}
.storage-warning {
    color: #ff4444;
    font-weight: bold;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#closePremiumPopup{
    background: 0 none;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    padding: 0;
    box-shadow: 0 none;
    display: flex;
    width: 100%;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
}
#buyPremium{
    display: flex;
    width: 100%;
    justify-content: center;
}
#button-controls{
    display: none;
}
#upgradeSizeBtn.gold-button{
    display: none;
    margin-top: 10px;
}
#upgradeSizeBtn.show{
    display: block;
}
#button-controls.show{
    display: block;
}

/* Add to existing styles */

/* Premium user styles */
body.premium .premium-badge {
  display: none !important;
}

body.premium .premium-feature {
  opacity: 1 !important;
  cursor: default !important;
}

body.premium .premium-feature select,
body.premium .premium-feature input {
  cursor: default !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}

body.premium .gold-button#goPremiumBtn,
body.premium .gold-button#upgradeSizeBtn {
  display: none !important;
}

/* Non-premium user styles */
body:not(.premium) .premium-feature {
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body:not(.premium) .premium-feature:hover {
  opacity: 0.85;
}

body:not(.premium) .premium-feature select,
body:not(.premium) .premium-feature input {
  cursor: pointer !important;
  pointer-events: none;
}

body:not(.premium) .premium-feature select option[data-premium="true"]:disabled {
  color: #999;
}

@media screen and (max-width: 768px) {
    body .app{
        flex-direction: column;
    }
    body .left, body .right{
        width: 100%;
        padding: 0;
        border: none;
        margin-bottom: 40px;
    }
    .controls .control-group{
        width: 100%;
    }
    
}