#court-colorizer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.scc-controls {
  background: #f5f5f5;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  
}
.scc-court-selector h3, .scc-logo-upload h3{
    font-size: 16px !important;
    font-weight: 600 !important;

}

.scc-court-selector {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-inline: 53px;
}

.scc-court-selector h3 {
  margin-bottom: 5px;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #333;
  text-wrap: nowrap;
}

.scc-court-selector select {
  max-width: fit-content;
  width: 100%;
  padding: 6px 10px;
  font-size: 15px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
}

.scc-court-selector select:focus {
  outline: none;
  border-color: #0073aa;
}

.scc-color-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
  /* gap: 20px; */
  margin: 20px 0;
  padding-left: 10px;
  padding-right: 10px;
  width: 60%;
}

.scc-color-group {
  background: white;
  padding: 7px;
  padding-inline: 5px;
}

.scc-color-group h3 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #555;
  font-weight: 600;
}

.scc-color-group-title{
  font-size: 14px !important;
  font-weight: 500 !important;
}

.color-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 100%;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  /* border: 2px solid white;
  outline: 2px solid transparent; */
}

.color-swatch:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-swatch.active {
  /* border-color: #333;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.3); */
}

.color-swatch.active::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 12px;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.scc-logo-upload {
  width: 100%;
  margin: 0px;
  padding: 15px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
}

.scc-logo-upload h3 {
  margin-block: 0;
}

.scc-logo-upload input[type="file"] {
  margin-top: 10px;
  padding: 8px;
}

#remove-logo {
  margin-top: 10px;
  padding: 8px 20px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#remove-logo:hover {
  background: #c82333;
}

.fields-container {
  align-items: center;
  gap: 20px;
  padding-block: 35px;
  width: 40%;
  display: flex;
  flex-direction: column;
}

.scc-dimension-toggle {
  /* margin: 20px 0; */
  padding-inline: 35px;
  width: 100%;
}

.scc-dimension-toggle label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
}

.scc-dimension-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.scc-download-btn {
  width: 100%;
  padding: 15px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scc-download-btn:hover {
  background: #218838;
  /* transform: translateY(-2px); */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.scc-canvas-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

#court-canvas {
  max-width: 100%;
  height: auto;
  width: 80%;
}

/* Color Preview Panel */

.color-preview-panel h4,
#court-dimensions h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 8px;
}

.preview-label {
  font-size: 12px;
  color: #fff;
}

.preview-color {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  margin: 0 8px;
  border: 1px solid #ddd;
}

.preview-hex {
  font-family: monospace;
  font-size: 12px;
  color: #999;
}

/* Modal Styles */
.scc-modal {
  position: fixed;
  inset: 0;
  min-width: 100%;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scc-modal-content {
  background: white;
  max-width: 500px;
  /*max-width: 760px;*/
  width: 90%;
  padding: 30px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.scc-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
  color: #999;
  line-height: 1;
}

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

.scc-modal-content h2 {
  /* margin-top: 0;
  color: #333; */
  font-size: 24px !important;
  color: #333333;
  text-align: center !important;
  font-family: "Poppins", Sans-serif;
  font-weight: 600 !important;
}

.scc-modal-content #scc-form-fields {
  display: block;
  /*grid-template-columns: 1fr 1fr;
  gap: 12px;*/
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.form-field input {
  background-color: #f2f2f2;
  color: #000;
  width: 100%;
  padding: 16px 25px;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-field input:focus {
  outline: none;
  border: none;
}

/* CAPTCHA Styling */
.captcha-field {
  margin-top: 20px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.captcha-field .g-recaptcha {
  margin: 10px auto;
  transform: scale(0.85);
  transform-origin: center;
}

.captcha-field .recaptcha-v3-info {
  margin-top: 10px;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

.captcha-field .recaptcha-v3-info a {
  color: #0073aa;
  text-decoration: none;
}

.captcha-field .recaptcha-v3-info a:hover {
  text-decoration: underline;
}

#scc-download-form button {
  width: 100%;
  padding: 15px;
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

#scc-download-form button:hover {
  background: #005a87;
}

.information-section {
  margin-block: 10px !important;
}
.court-information #css-logo{
    width:60%;
}

/* Loading State */
.scc-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0073aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}



/* =============================
   Professional Futuristic Redesign Overrides
   ============================= */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap");

:root {
  --primary: #0073aa;
  --primary-dark: #005a87;
  --accent: #00d9ff;
  --danger: #dc3545;
  --danger-dark: #c82333;
  --bg-grey: #f2f4f8;
  --white: #ffffff;
  --text-dark: #1a1c1e;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  --transition-fast: 0.2s ease;
  --transition-med: 0.35s ease;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text-dark);
  background: var(--bg-grey);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Container */
#court-colorizer-container {
  padding: 40px 10px;
  max-width: 1400px;
}

/* Controls Panel */
.scc-controls {
  background: var(--white);
  /* border-radius: var(--radius); */
  border-radius: 0px;
  
  padding: 35px;
  padding-inline: 5px;
  
}


/* Select Dropdown */
.scc-court-selector select {
  border: 2px solid transparent;
  background: var(--bg-grey);
  transition: border var(--transition-fast), background var(--transition-fast);
}
.scc-court-selector select:focus {
  border-color: var(--primary);
  background: var(--white);
}

/* Color swatches */
.color-swatch {
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), border var(--transition-fast);
}

/* Upload Logo */
.scc-logo-upload {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Toggle */
.scc-dimension-toggle input[type="checkbox"]:focus-visible {
  outline: 2px dashed var(--primary);
  outline-offset: 3px;
}

/* Download Button */
.scc-download-btn,
#scc-download-form button {
  /* background-image: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); */
  background-image: linear-gradient(90deg, #2e4b7c 0%, #00205b 100%) !important;
  border: none;
  /* border-radius: var(--radius); */
  border-radius: 30px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  /* line-height: 1.7em !important; */
  text-transform: uppercase;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
}
.scc-download-btn:hover,
#scc-download-form button:hover {
  /* transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2); */
  --webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.6);
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.6);
}

/* Canvas Container */
.scc-canvas-container {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Modal */
.scc-modal {
  backdrop-filter: blur(4px);
}

.scc-modal-content {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.scc-close:focus-visible {
  outline: 2px solid var(--primary);
  border-radius: 50%;
}

/* Accessibility */
*:focus-visible {
  outline: 2px dashed var(--primary);
  outline-offset: 2px;
}

/* Light Hover Elevation Utility */
.elevate:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.court-information {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #0d1226;
  /* width: 180px; */
  width: 100%;
  padding: 20px;
  font-size: 12px;
  color: #fff;
  /* height: 100%; */
  scrollbar-width: none;
}

.court-information p strong {
  font-weight: 700;
}

.preview-item {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  /* margin-bottom: 8px; */
  /* margin: 8px 0; */
  padding: 5px 0;
}

.preview-label {
  flex: 1 1 100%;
  font-weight: bold;
}

.preview-color {
  width: 15px;
  height: 15px;
  border: 1px solid #ccc;
  border-radius: 50%;
}

.preview-hex {
  font-family: monospace;
  align-self: center;
}

div#selected-information {
  overflow: scroll;
  max-height: 800px;
  /* max-width: 180px; */
  max-width: 100%;
  width: 20%;
}
.disclaimer-section p{
    margin-bottom:0 !important;
}
/* Ensure canvas responsiveness across all devices */
#court-canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Improve form field responsiveness */
.form-field {
  margin-bottom: 15px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  box-sizing: border-box;
}

/* Better button handling on mobile */
button,
input[type="button"],
input[type="submit"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
}

/* Ensure proper canvas scaling on all devices */
.scc-canvas-container canvas {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* Touch feedback and mobile enhancements */
.color-swatch.touch-active {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.1s ease;
}
/* Focus indicators for keyboard navigation */
.color-swatch:focus,
.scc-download-btn:focus,
.scc-court-selector select:focus {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

/* Loading states for better UX */
.scc-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.scc-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0073aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Error states */
.scc-error {
  background: #fed7d7;
  color: #c53030;
  padding: 12px;
  border-radius: 6px;
  margin: 10px 0;
  border: 1px solid #feb2b2;
}

.scc-success {
  background: #c6f6d5;
  color: #2f855a;
  padding: 12px;
  border-radius: 6px;
  margin: 10px 0;
  border: 1px solid #9ae6b4;
}

.css-logo img {
  display: block;
  width: 100%;
  margin-bottom: 15px;
}

.information-section p {
  margin: 0px !important;
}

.court-information {
  position: relative;
}

.disclaimer-section {
  position: relative;
  bottom: 5px;
  padding: 2px;
  background-color: #0d1226;
}

.scc-color-controls {
  height: fit-content;
}

#selected-colors-list {
 /* margin-bottom: 100px;*/
  max-height: 425px;
  overflow-y: scroll;
  scrollbar-width: none;
}

.entry-content.alignfull.wp-block-post-content.has-global-padding.is-layout-constrained.wp-block-post-content-is-layout-constrained {
  padding-inline: 5px;
}

/* =============================
   Enhanced Responsive Design for Mobile & Tablet
   ============================= */


/* Responsive Design */
@media (max-width: 1200px) {
  .color-preview-panel {
    position: static;
    margin-top: 20px;
    max-height: none;
  }
}



/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
 /* #court-colorizer-container {
    padding: 20px 15px;
  }*/

 /* .scc-controls {
    padding: 25px 20px;
  }*/

  .scc-court-selector {
    padding-inline: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .scc-court-selector select {
    width: 100%;
    max-width: 300px;
  }

  .scc-color-controls {
    width: 100%;
    padding-left: 10px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  .fields-container {
    width: 100%;
    padding-block: 20px;
  }

  .scc-dimension-toggle {
    padding-inline: 20px;
  }

  #court-canvas {
    width:80%;
  max-width: 100%;
    height: auto;
  }

  .court-information {
    padding: 20px;
    font-size: 7px;
  }

  .css-logo img {
    margin-bottom: 0px !important;
  }
  .information-section {
    margin-block: 5px !important;
  }
  .color-preview-panel {
    margin-block: 5px !important;
  }
  .color-preview-panel h4,
  #court-dimensions h4 {
    margin: 0 0 5px 0;
    font-size: 9px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 2px;
  }
  .color-preview-panel h4,
  #court-dimensions h4 {
    margin: 0 0 5px 0;
    font-size: 9px;
    padding-bottom: 2px;
  }
  .preview-label {
    font-size: 7px;
  }
  .preview-hex {
    font-size: 7px;
  }
  .preview-item {
    gap: 0px !important;
    padding: 2px 0 !important;
  }
  .scc-controls > div:last-child{
    flex-direction: row !important;
  }
  .scc-color-controls {
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)) !important;
    gap: 0px;
}
.scc-color-group{
  padding: 7px  !important;
}
div#selected-information{
  max-width: 100%;
  width: 20%;
}

canvas#court-canvas{
    width:80%;
  max-width: 100%;
}

.preview-color{
  width: 10px !important;
  height: 10px !important;
}
}

/* Landscape Mobile Styles */
@media (max-width: 768px) and (orientation: landscape) {
  .scc-controls {
    padding: 15px 20px;
  }

  .scc-court-selector {
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }

  .scc-court-selector select {
    max-width: 200px;
  }

  .scc-color-controls {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .court-information {
    max-height: 150px;
  }
   .scc-controls {
    /* max-height: 80vh; */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .court-information {
    max-height: 120px;
  }

  #court-canvas {
    /* max-height: 60vh; */
    width: auto;
  }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .color-swatch {
    border-width: 0.5px;
  }

  .scc-controls {
    border-width: 0.5px;
  }
}

/* Mobile Styles (up to 768px) */
@media (max-width: 767px) {
     .scc-color-controls {
    grid-template-columns: 1fr;
  }

  .color-swatches {
    justify-content: flex-start;
  }

  .scc-canvas-container {
    padding: 10px;
  }
  
  #court-colorizer-container {
    padding: 15px 10px;
  }

  .scc-controls {
    padding: 20px 15px;
    margin-bottom: 15px;
  }

  .scc-court-selector {
    padding-inline: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .scc-court-selector h3 {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .scc-court-selector select {
    width: 100%;
    max-width: none;
    font-size: 14px;
    padding: 6px 10px;
  }
  .scc-court-canvas-container{
      flex-direction: column;
  }
.color-preview-panel, .company-details{
    display: none;
}


  /* Canvas and info layout for mobile */
  .scc-controls > div:nth-child(2) {
    /* flex-direction: column; */
    /* gap: 15px; */
  }

  #court-canvas {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .court-information {
    width: 100%;
    max-height: 200px;
    font-size: 8px;
    line-height: 1.4em;
    padding: 15px;
    margin-top: 0px;
    display: none !important;
  }

  /* Color controls for mobile */
  .scc-color-controls {
    width: 100%;
    padding-left: 0;
    margin: 15px 0;
    grid-template-columns: 1fr;
  }

  .scc-color-group {
    padding: 7px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .scc-color-group h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .scc-color-group-title{
    font-size: 14px !important;
    font-weight: 500 !important;
  }

  .color-swatches {
    gap: 10px;
    justify-content: center;
  }

  .color-swatch {
    width: 16px;
    height: 16px;
  }

  /* Fields container for mobile */
  .fields-container {
    width: 100%;
    padding-block: 20px;
    gap: 15px;
  }

  .scc-logo-upload {
    padding: 20px;
    border-radius: 8px;
  }

  .scc-logo-upload h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .scc-logo-upload input[type="file"] {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }

  #remove-logo {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    margin-top: 10px;
  }

  .scc-dimension-toggle {
    padding-inline: 0;
    width: 100%;
  }

  .scc-dimension-toggle label {
    font-size: 16px;
    padding: 10px 0;
  }

  .scc-dimension-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }

  .scc-download-btn {
    padding: 18px;
    font-size: 16px;
    border-radius: 25px;
  }
  div#selected-information {
  
  max-width: 100%;
  width: 100%;
}

  /* Canvas container for mobile */
  .scc-canvas-container {
    padding: 15px;
    margin-top: 15px;
  }

  /* Modal adjustments for mobile */
  .scc-modal-content {
    width: 95%;
    padding: 25px 20px;
    margin: 20px;
  }

  .scc-modal-content h2 {
    font-size: 20px !important;
    margin-bottom: 20px;
  }

 /* .scc-modal-content #scc-form-fields {
    grid-template-columns: 1fr;
    gap: 15px;
  }*/

  .form-field input {
    padding: 15px 20px;
    font-size: 16px;
  }

  #scc-download-form button {
    padding: 18px;
    font-size: 16px;
  }

  /* Color preview adjustments */
  .color-preview-panel h4 {
    font-size: 7px;
    margin-bottom: 0px;
    padding-bottom: 0px;
  }


  .preview-color {
    width: 10px;
    height: 10px;
  }

  .preview-hex {
    font-size: 7px;
  }
  .preview-label{
    font-size: 6px;
  }

  .information-section ,.color-preview-panel{
    margin-block: 2px !important;
  }
  

  .css-logo img{
    margin-bottom:  5px !important;
  }
  .preview-item{
    gap: 0px !important;
    padding: 0px 0 !important;
  }
  #selected-colors-list{
    margin-bottom: 0px !important;
    height: 65px !important;
  }
  .color-swatches{
    justify-content: left;
    gap:7px !important
  }
   /* Ensure canvas doesn't overflow on mobile */
  canvas#court-canvas {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
  }

  /* Improve touch targets */
  .color-swatch {
    touch-action: manipulation;
  }

  /* Better spacing for mobile */
  .scc-controls > div {
    margin-bottom: 15px;
  }

  /* Stack elements vertically on mobile */
  .scc-controls > div:last-child {
    flex-direction: column;
    gap: 15px;
  }

  /* Ensure proper canvas scaling */
  .scc-canvas-container {
    overflow: hidden;
  }

  /* Improve modal on mobile */
  .scc-modal {
    padding: 10px;
  }

  .scc-modal-content {
    max-height: 90vh;
    overflow-y: auto;
  }
  #court-canvas {
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  /* Improve touch targets for mobile */
  .scc-court-selector select,
  .scc-download-btn,
  .form-field input,
  #remove-logo {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Better mobile scrolling */
  .court-information {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  /* Mobile-friendly modal */
  .scc-modal {
    -webkit-overflow-scrolling: touch;
  }

  .scc-modal-content {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Mobile CAPTCHA styling */
  .captcha-field .g-recaptcha {
    transform: scale(0.75);
    transform-origin: center;
  }

  .captcha-field .recaptcha-v3-info {
    font-size: 11px;
    padding: 0 10px;
  }

  /* Prevent text selection on mobile */
  .scc-controls,
  .scc-canvas-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  /* Allow text selection in form fields */
  .form-field input,
  .form-field textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
  }
  canvas#court-canvas {
      /*max-width: 300px !important;
      height: 265px !important;*/
      display: block;
      margin: 0; 
  }
  .court-information {
      width: 100%;
      font-size: 14px;
      line-height: 1.4em;
      padding: 10px;
      margin-top: 0px;
  }

}


/* Small Mobile Styles (up to 480px) */
@media (max-width: 480px) {
  #court-colorizer-container {
    padding: 10px 5px;
  }

  .scc-controls {
    padding: 15px 10px;
  }

  .scc-court-selector h3 {
    font-size: 16px;
  }

  .scc-court-selector select {
    padding: 6px 10px;
    font-size: 14px;
  }

  .scc-color-group {
    padding: 7px;
    box-shadow: none;
  }

  .scc-color-group h3 {
    font-size: 15px !important;
  }

  .scc-color-group-title{
    font-size: 14px !important;
    font-weight: 500 !important;
  }

  .color-swatch {
    width: 18px;
    height: 18px;
  }

  .scc-logo-upload {
    padding: 15px;
  }

  .scc-logo-upload h3 {
    font-size: 15px;
  }

  .scc-download-btn {
    padding: 16px;
    font-size: 15px;
  }

  .scc-modal-content {
    padding: 20px 15px;
  }

  .scc-modal-content h2 {
    font-size: 18px !important;
  }

  .form-field input {
    padding: 12px 18px;
    font-size: 15px;
  }

  #scc-download-form button {
    padding: 16px;
    font-size: 15px;
  }
  div#selected-information {
    max-width: 100%;
  }
   .scc-controls {
      padding: 15px 5px;
  }
}

/* Extra Small Mobile (up to 360px) */
@media (max-width: 360px) {
  #court-colorizer-container {
    padding: 8px 3px;
  }

  .scc-controls {
    padding: 12px 8px;
  }

  .scc-court-selector h3 {
    font-size: 15px;
  }

  .scc-court-selector select {
    padding: 6px 10px;
    font-size: 14px;
  }

  .scc-color-group {
    padding: 7px;
  }

  .color-swatch {
    width: 20px;
    height: 20px;
  }

  .scc-logo-upload {
    padding: 12px;
  }

  .scc-download-btn {
    padding: 14px;
    font-size: 14px;
  }

  .scc-modal-content {
    padding: 15px 10px;
  }

  .scc-modal-content h2 {
    font-size: 18px !important;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .color-swatch:hover {
    transform: none;
  }

  .scc-download-btn:hover {
    transform: none;
  }

  .color-swatch {
    min-width: 16px;
    min-height: 16px;
  }

  .scc-court-selector select {
    min-height: 44px;
  }

  .scc-download-btn {
    min-height: 44px;
  }

  .form-field input {
    min-height: 44px;
  }
}

/* Print Styles */
@media print {
  .scc-controls {
    display: none;
  }

  #court-canvas {
    max-width: 100%;
    height: auto;
  }

  .scc-canvas-container {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}


/* High contrast mode support for accessibility */
@media (prefers-contrast: high) {
  .color-swatch {
    border: 2px solid #000;
  }

  .color-swatch.active {
    border: 3px solid #000;
  }

  .scc-download-btn {
    border: 2px solid #000;
  }
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
  .color-swatch,
  .scc-download-btn,
  .scc-controls {
    transition: none;
  }

  .color-swatch:hover,
  .scc-download-btn:hover {
    transform: none;
  }
}

/* Dark mode support */
/* @media (prefers-color-scheme: dark) {
  .scc-controls {
    background: #2d3748;
    color: #e2e8f0;
  }
  
  .scc-color-group {
    background: #4a5568;
    color: #e2e8f0;
  }
  
  .scc-logo-upload {
    background: #4a5568;
    color: #e2e8f0;
  }
  
  .scc-modal-content {
    background: #2d3748;
    color: #e2e8f0;
  }
  
  .form-field input {
    background-color: #4a5568;
    color: #e2e8f0;
  }
} */



/* Print optimizations */
@media print {
  .scc-controls,
  .scc-modal {
    display: none !important;
  }

  #court-canvas {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
  }

  .scc-canvas-container {
    box-shadow: none !important;
    border: 2px solid #000 !important;
    page-break-inside: avoid;
  }
}





