/* ----------------------- GENERAL ------------------------ */
body {
    margin: 0;
    background: #f3f4f6;
    font-family: Arial, sans-serif;
    text-align: center;
}
.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}
h1 {
    
    margin-bottom: 10px;
}
  .header{background-color:#fff;width:100%;margin:0;border-bottom:2px solid #cfd6ce;}
    h1{text-align: left;font-size:20px;}
    .main-menu{background-color:#fff;overflow:hidden;margin:0 auto;width:100%;max-width:1130px;color:#222;z-index:9999999;}
    .sidenav{height:100%;width:0;position:fixed;z-index:9999999;top:0;left:0;background-color:#fafafa;overflow-x:hidden;transition:0.5s;padding-top:60px;}
    .sidenav a,.sidenav h3{padding:5px 32px;text-decoration:none;font-size:18px;color:#222;display:block;transition:0.3s;text-align:left;}
    .sidenav a:hover{color:#2A80B9;}
    .sidenav .closebtn{position:absolute;top:0;right:25px;font-size:36px;margin-left:50px;}
    .logo{background: linear-gradient(90deg, #2196F3, #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;font-weight:800;}
    
/* ----------------------- UPLOAD ------------------------ */
#uploadImage { display: none; }
#uploadLabel {
    display: inline-block;
    background: #005CC8;
    padding: 14px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    margin-top: 10px;
}
/* ----------------------- GRID PREVIEW ------------------------ */
.multi-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.preview-item {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    overflow: hidden;
}
.preview-item canvas {
    width: 100%;
    height: auto;
    display: block;
}
.download-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.download-btn {
    opacity: 0;
    padding: 12px 22px;
    background: #005CC8;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    transform: scale(0.8);
    transition: 0.3s;
}
.preview-item:hover .download-overlay {
    background: rgba(0,0,0,0.55);
}
.preview-item:hover .download-btn {
    opacity: 1;
    transform: scale(1);
}
/* ----------------------- CROP MODAL ------------------------ */
#cropperModal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.modal-box {
    background: white;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.cropper-area {
    flex: 1;
    overflow: auto;
    max-height: 70vh;
}
#cropperImage {
    width: 100%;
    display: block;
    max-width: 100%;
}
#cropBtn {
    margin-top: 15px;
    padding: 14px;
    font-size: 18px;
    background: #ff4646;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
/* ----------------------- CONTROLS ------------------------ */
.controls-section {
    background:#fff;
    border-radius:16px;
    padding:20px;
    margin-top:25px;
    box-shadow:0 4px 20px rgba(0,0,0,0.08);
}
.controls-header {
    margin-bottom:15px;
    font-size:22px;
    color:#333;
    text-align:left;
}
.controls-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}
.control-group {
    text-align:left;
}
.control-label {
    display:block;
    font-weight:600;
    margin-bottom:8px;
}
.select-box {
    width:100%;
    padding:12px;
    border-radius:10px;
    border:2px solid #ddd;
    font-size:16px;
}
.upload-btn {
    width:100%;
    padding:12px 20px;
    background:#005CC8;
    color:#fff;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;
}
.color-picker {
    display:flex;
    align-items:center;
    gap:10px;
}
.color-picker input[type="color"] {
    width:50px;
    height:50px;
    border:none;
    cursor:pointer;
    border-radius:6px;
}

 /* Hero Section */
  .hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color:#fff;
    padding:80px 24px;
    text-align:center;
    position:relative;
    overflow:hidden;
  }
  .hero::before {
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity:0.3;
  }
  .hero-content {
    position:relative;
    z-index:1;
    max-width:900px;
    margin:0 auto;
  }
  .hero h1 {
    font-size:56px;
    font-weight:900;
    margin-bottom:20px;
    line-height:1.1;
    letter-spacing:-1px;
  }
  .hero p {
    font-size:20px;
    margin-bottom:40px;
    opacity:0.95;
    font-weight:400;
  }
  .hero-cta {
    display:inline-flex;
    gap:16px;
    flex-wrap:wrap;
    justify-content:center;
  }
  .btn-primary {
    padding:16px 40px;
    background:#fff;
    color:var(--primary);
    border:none;
    border-radius:12px;
    font-size:18px;
    font-weight:700;
    cursor:pointer;
    transition:all 0.3s;
    box-shadow:0 8px 24px rgba(0,0,0,0.15);
  }
  .btn-primary:hover {
    transform:translateY(-2px);
    box-shadow:0 12px 32px rgba(0,0,0,0.2);
  }
  .btn-secondary {
    padding:16px 40px;
    background:rgba(255,255,255,0.2);
    color:#fff;
    border:2px solid #fff;
    border-radius:12px;
    font-size:18px;
    font-weight:700;
    cursor:pointer;
    transition:all 0.3s;
    backdrop-filter:blur(10px);
  }
  .btn-secondary:hover {
    background:rgba(255,255,255,0.3);
  }

 /* Footer */
  .footer {
    background:#222;
    color:#fff;
    padding:60px 24px 30px;
    margin-top:80px;
  }
  .footer-content {
    max-width:1400px;
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(250px,1fr));
    gap:40px;
    margin-bottom:40px;
  }
  .footer-section h3 {
    font-size:18px;
    margin-bottom:16px;
    font-weight:700;
  }
  .footer-section p {
    color:#94a3b8;
    margin-bottom:12px;
    line-height:1.8;
  }
  .footer-section ul {
    list-style:none;
  }
  .footer-section ul li {
    margin-bottom:10px;
  }
  .footer-section ul li a {
    color:#94a3b8;
    text-decoration:none;
    transition:color 0.2s;
  }
  .footer-section ul li a:hover {
    color:#fff;
  }
  .footer-bottom {
    max-width:1400px;
    margin:0 auto;
    padding-top:30px;
    border-top:1px solid rgba(255,255,255,0.1);
    text-align:center;
    color:#94a3b8;
  }
   .footer-section{text-align: left;}