:root {
    --primary: #9370DB;
    --primary-light: #D8BFD8;
    --primary-dark: #663399;
    --accent: #FF69B4;
    --light: #F8F0FF;
    --dark: #4A235A;
    --text: #3A3042;
  }
  
  body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--light);
    color: var(--text);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }
  
  .container {
    width: 90%;
    max-width: 800px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(147, 112, 219, 0.2);
    padding: 30px;
    text-align: center;
  }
  
  h1 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 2.2rem;
  }
  
  .subtitle {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 1.1rem;
  }
  
  .tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-light);
  }
  
  .tab {
    flex: 1;
    padding: 12px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: bold;
    color: var(--primary);
  }
  
  .tab.active {
    border-bottom: 3px solid var(--accent);
    color: var(--primary-dark);
  }
  
  .tab-content {
    display: none;
  }
  
  .tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .input-group {
    margin-bottom: 20px;
    text-align: left;
  }
  
  label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-dark);
    font-weight: bold;
  }
  
  input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--primary-light);
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
  }
  
  input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 8px rgba(147, 112, 219, 0.4);
  }
  
  button {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-weight: bold;
  }
  
  button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(147, 112, 219, 0.4);
  }
  
  .result {
    margin-top: 30px;
    background-color: var(--primary-light);
    padding: 20px;
    border-radius: 15px;
    display: none;
  }
  
  .result h2 {
    color: var(--primary-dark);
    margin-top: 0;
  }
  
  .result-box {
    background-color: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .result-shape {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: bold;
  }
  
  .history-item {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
    border-left: 5px solid var(--primary);
    transition: all 0.3s ease;
  }
  
  .history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(147, 112, 219, 0.2);
  }
  
  .history-date {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 5px;
  }
  
  .history-shape {
    font-weight: bold;
    color: var(--accent);
  }
  
  .history-measurements {
    color: var(--text);
    font-size: 0.9rem;
    margin-top: 5px;
  }
  
  .no-history {
    color: var(--primary);
    font-style: italic;
    text-align: center;
    padding: 20px;
  }
  
  .recommendations {
    margin-top: 20px;
  }
  
  .recommendations h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
  }
  
  .icon {
    font-size: 24px;
    margin-right: 5px;
    color: var(--accent);
  }
  
  .clear-history {
    background-color: var(--accent);
    margin-top: 20px;
  }
  
  .clear-history:hover {
    background-color: #FF1493;
  }
  
  .silhouette-icon {
    height: 100px;
    margin: 10px auto;
    display: block;
  }

  /* Add this to your existing CSS file */

/* Viewport meta tag - Add this to your HTML head */
/* <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> */

/* Base responsive styles */
body {
margin: 0;
padding: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Container for the entire app */
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 15px;
box-sizing: border-box;
}

/* Responsive form styles */
.form-section, #measurement-form {
width: 100%;
max-width: 800px;
margin: 0 auto;
}

.form-group {
margin-bottom: 15px;
}

label {
display: block;
margin-bottom: 5px;
}

input[type="number"] {
width: 100%;
padding: 10px;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 4px;
}

button {
padding: 10px 15px;
cursor: pointer;
}

/* Responsive tab navigation */
.tab-container {
display: flex;
flex-wrap: wrap;
margin-bottom: 20px;
}

.tab {
padding: 10px 15px;
cursor: pointer;
background-color: #f0f0f0;
border: none;
margin-right: 2px;
}

.tab.active {
background-color: #9370DB;
color: white;
}

.tab-content {
display: none;
width: 100%;
}

.tab-content.active {
display: block;
}

/* Result section */
#result {
display: none;
margin-top: 20px;
padding: 15px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Grid layouts for outfit and celebrity cards */
.outfit-ideas, #celebs-list {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15px;
margin-top: 20px;
}

.outfit-card, .celeb-card {
background-color: #f9f9f9;
padding: 15px;
border-radius: 5px;
text-align: center;
}

/* Notification */
.notification {
position: fixed;
bottom: -50px;
left: 50%;
transform: translateX(-50%);
padding: 10px 20px;
background-color: #9370DB;
color: white;
border-radius: 5px;
transition: bottom 0.3s ease;
z-index: 1000;
}

.notification.show {
bottom: 20px;
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
/* Header adjustments */
h1 {
  font-size: 24px;
  text-align: center;
}

h2 {
  font-size: 20px;
}

/* Form adjustments */
.mobile-view {
  padding: 10px;
}

.mobile-input {
  font-size: 16px; /* Prevent iOS zoom on focus */
  height: 44px; /* Larger touch target */
}

.mobile-button {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  font-size: 16px;
}

/* Tab navigation */
.mobile-tabs {
  flex-direction: row;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.mobile-tabs .tab {
  flex: 0 0 auto;
  padding: 12px;
}

/* Avatar adjustments */
.mobile-avatar {
  width: 60%;
  margin: 0 auto;
}

/* Card layouts */
.mobile-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.outfit-card, .celeb-card {
  margin-bottom: 10px;
}

/* History items */
.history-item {
  padding: 10px;
  margin-bottom: 10px;
}

/* Accordion panels */
.accordion {
  padding: 15px 10px;
}

.panel {
  padding: 0 10px;
}

/* Notification adjustments */
.notification {
  width: 90%;
  text-align: center;
}
}

/* Tablet-specific styles */
@media screen and (min-width: 769px) and (max-width: 1024px) {
.tablet-view {
  padding: 15px;
}

.tablet-input {
  height: 40px;
}

.tablet-button {
  padding: 10px 15px;
  font-size: 15px;
}

.tablet-tabs {
  justify-content: center;
}

.tablet-avatar {
  width: 40%;
  margin: 0 auto;
}

.tablet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* Result layout for tablet */
#result.tablet-view {
  display: flex;
  flex-wrap: wrap;
}

#result.tablet-view .result-header {
  width: 100%;
}

#result.tablet-view .result-left {
  width: 30%;
}

#result.tablet-view .result-right {
  width: 70%;
}
}

/* Print styles for when users want to print their results */
@media print {
.tab-container, button, .form-section, footer {
  display: none !important;
}

#result {
  display: block !important;
  box-shadow: none;
  border: 1px solid #ddd;
}

/* Improve print layout */
.outfit-ideas, #celebs-list {
  grid-template-columns: repeat(3, 1fr);
}
}

/* Additional accessibility improvements */
@media (prefers-reduced-motion: reduce) {
* {
  animation: none !important;
  transition: none !important;
}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
body {
  background-color: #121212;
  color: #f0f0f0;
}

.tab {
  background-color: #333;
  color: #f0f0f0;
}

.tab.active {
  background-color: #9370DB;
}

input, select, textarea {
  background-color: #333;
  color: #f0f0f0;
  border-color: #555;
}

#result, .outfit-card, .celeb-card, .history-item {
  background-color: #2d2d2d;
  color: #f0f0f0;
}

.accordion {
  background-color: #333;
}

.panel {
  background-color: #222;
}
}