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

.container-svg-editor {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #ffeece 0%, #fff2da 100%);
  min-height: 100vh;
  /* overflow-x: auto; */
  position: sticky;
  z-index: 2;
}

.container-svg-editor .containerr {
  display: flex;
  height: 100vh;
  max-width: 100%;
}

.container-svg-editor .sidebar {
  width: 300px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 0 20px 20px 0;
  padding: 20px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.container-svg-editor .main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  min-width: 0;
}

.container-svg-editor .toolbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.container-svg-editor .canvas-container {
  flex: 1;
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.container-svg-editor .btn {
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #de9406 0%, #de9406 100%);
  color: white;
}

.container-svg-editor .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.container-svg-editor .btn-secondary {
  background: linear-gradient(135deg, #de9406 0%, #de9406 100%);
}

.container-svg-editor .btn-success {
  background: linear-gradient(135deg, #de9406 0%, #de9406 100%);
}

.container-svg-editor .btn-danger {
  background: linear-gradient(135deg, #de9406 0%, #de9406 100%);
}

.container-svg-editor .section {
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.container-svg-editor .section h3 {
  margin-bottom: 15px;
  color: #333;
  font-size: 18px;
  border-bottom: 2px solid #de9406;
  padding-bottom: 8px;
}

.container-svg-editor .form-group {
  margin-bottom: 15px;
}

.container-svg-editor .form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
}

.container-svg-editor .form-control {
  width: 100%;
  padding: 10px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.container-svg-editor .form-control:focus {
  outline: none;
  border-color: #de9406;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.container-svg-editor .color-picker {
  width: 50px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.container-svg-editor .shapes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.container-svg-editor .shape-btn {
  width: 60px;
  height: 60px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
}

.container-svg-editor .shape-btn:hover {
  border-color: #de9406;
  background: #f8f9ff;
  transform: scale(1.05);
}

.container-svg-editor .shape-btn.active {
  border-color: #de9406;
  background: #de9406;
  color: white;
}

.container-svg-editor .file-input {
  display: none;
}

.container-svg-editor .file-label {
  display: inline-block;
  padding: 12px 20px;
  background: linear-gradient(135deg, #de9406 0%, #de9406 100%);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
}

.container-svg-editor .file-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.container-svg-editor .range-slider {
  width: 100%;
  margin: 10px 0;
}

.container-svg-editor .font-selector {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 10px;
  align-items: center;
}

.container-svg-editor .toggle-sidebar {
  display: none;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .container-svg-editor .containerr {
    flex-direction: column;
  }

  .container-svg-editor .sidebar {
    width: 100%;
    height: auto;
    border-radius: 0;
    position: absolute;
    top: 0;
    left: calc(-100% - 15px);
    z-index: 999;
    transition: left 0.3s ease;
  }

  .container-svg-editor .sidebar.active {
    left: 0;
  }

  .container-svg-editor .toggle-sidebar {
    display: block;
  }

  .container-svg-editor .toolbar {
    flex-direction: column;
    gap: 5px;
  }

  .container-svg-editor .btn {
    width: 100%;
    justify-content: center;
  }

  .container-svg-editor .shapes-grid {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  }

  .container-svg-editor .shape-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .container-svg-editor .main-content {
    padding: 10px;
  }

  .container-svg-editor .toolbar {
    padding: 10px;
  }

  .container-svg-editor .canvas-container {
    padding: 10px;
  }

  .container-svg-editor .sidebar {
    padding: 15px;
    height: 100vh;
    overflow-y: auto;
  }

  .container-svg-editor .section {
    padding: 15px;
  }
}

.container-svg-editor .canvas-wrapper {
  width: 100%;
  height: 100%;
  /* Change from 500px to 100% */
  border: 2px dashed #ddd;
  border-radius: 10px;
  overflow: visible;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container-svg-editor #cropButtons {
  pointer-events: auto;
}

.container-svg-editor #cropButtons button:hover {
  transform: translateY(-1px) !important;
}

.container-svg-editor #canvas {
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100% !important;
  /* Force full width */
  height: 100% !important;
  /* Force full height */
  max-width: none;
  /* Remove max-width constraint */
  max-height: none;
  /* Remove max-height constraint */
}

.container-svg-editor .effects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.container-svg-editor .effect-btn {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  text-align: center;
  font-size: 12px;
  transition: all 0.3s ease;
}

.container-svg-editor .effect-btn:hover {
  background: #f0f0f0;
  border-color: #de9406;
}

.container-svg-editor .alignment-buttons {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.container-svg-editor .align-btn {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

.container-svg-editor .align-btn:hover {
  background: #f0f0f0;
  border-color: #de9406;
}

.container-svg-editor .align-btn.active {
  background: #de9406;
  color: white;
  border-color: #de9406;
}