:root {
    --primary-50: rgb(253, 242, 248);
    --primary-100: rgb(252, 231, 243);
    --primary-200: rgb(251, 207, 232);
    --primary-300: rgb(253, 206, 232);
    --primary-400: rgb(244, 114, 182);
    --primary-500: rgb(236, 72, 153);
    --primary-600: rgb(219, 39, 119);
    --primary-700: rgb(190, 24, 93);
    --primary-800: rgb(157, 23, 77);
    --primary-900: rgb(131, 24, 67);
    --primary-950: rgb(80, 7, 36);
  }

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: var(--primary-50);
    color: var(--primary-900);
}

.container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.camera-container {
    margin: 20px 0;
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

video, #captured-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.primary-btn {
    background-color: var(--primary-700);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.primary-btn:hover {
    background-color: var(--primary-800);
}

.primary-btn:disabled {
    background-color: var(--primary-300);
    cursor: not-allowed;
}

.separator {
    color: var(--primary-600);
    font-size: 16px;
    align-self: center;
}

.file-upload {
    display: inline-block;
}

.file-upload input[type="file"] {
    padding: 8px;
    border: 2px solid var(--primary-300);
    border-radius: 4px;
    cursor: pointer;
}

#video-container,
#preview-container {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

#video,
#captured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button {
    padding: 12px 24px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#loading {
    margin: 20px 0;
    font-style: italic;
}

#results {
    margin: 20px 0;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    text-align: left;
}

.camera-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.site-header {
    background: linear-gradient(to right, var(--primary-700), var(--primary-800));
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(124, 45, 18, 0.1), 0 2px 4px -1px rgba(124, 45, 18, 0.06);
    margin-bottom: 2rem;
}

.header-content {
    max-width: 36rem;
    margin: 0 auto;
}

.site-header h1 {
    color: white;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.site-header .tagline {
    color: var(--primary-100);
    font-size: 1.125rem;
    font-weight: 500;
    opacity: 0.9;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-900));
    -webkit-background-clip: text;
    background-clip: text;
    position: relative;
    display: flex;
    gap: 0.5rem;
}

.style-text {
    color: var(--primary-700);
    font-weight: 700;
}

.guru-text {
    color: var(--primary-900);
    font-style: italic;
}

.logo {
    width: 50px;  /* Adjust size as needed */
    height: auto;
    object-fit: contain;
}

h1 {
    margin: 0;
    color: #333;
    font-size: 2.5rem;
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.style-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: white;
}

.style-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 10px;
}

.style-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.style-item p {
    margin: 0 0 15px 0;
    color: #666;
}

#capture-btn {
    background-color: var(--primary-700);
    /* ... rest of capture button styles ... */
}

#capture-btn:hover {
    background-color: var(--primary-800);
}

#occasion-select {
    border: 2px solid var(--primary-200);
    color: var(--primary-700);
}

#occasion-select:focus {
    border-color: var(--primary-400);
    outline: none;
    box-shadow: 0 0 0 2px rgba(124, 45, 18, 0.1);
}

.loading-indicator {
    color: var(--primary-600);
    background-color: var(--primary-50);
}

.error {
    color: #ef4444;
    background-color: #fee2e2;
}

/* Update any hover effects or focus states */
.primary-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-100), 0 0 0 4px var(--primary-500);
}

/* File input styling */
input[type="file"] {
    border-color: var(--primary-300);
}

/* Analysis results sections */
.analysis-details,
.color-palette,
.combination-section {
    border: 1px solid var(--primary-200);
}

.analysis-details h3,
.combination-section h3 {
    color: var(--primary-700);
}

/* Add this to your HTML head section */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.75rem;
    }
}

.error-container {
    background-color: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--primary-700);
}

.error-message svg {
    color: var(--primary-600);
}

.error-message p {
    margin: 0;
    font-size: 1.1rem;
}

.error-container .primary-btn {
    margin-top: 15px;
}

.occasion-dropdown {
    width: 200px;  /* Fixed width */
    padding: 8px 12px;  /* Reduced padding */
    border: 2px solid var(--primary-200);
    border-radius: 8px;
    background-color: white;
    color: var(--primary-700);
    font-size: 0.95rem;  /* Slightly smaller font */
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.occasion-dropdown:hover {
    border-color: var(--primary-300);
}

.occasion-dropdown:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(124, 45, 18, 0.1);
}

.occasion-dropdown optgroup {
    font-weight: 600;
    color: var(--primary-600);
    background-color: var(--primary-50);
    padding: 6px;  /* Reduced padding */
}

.occasion-dropdown option {
    padding: 6px;  /* Reduced padding */
    background-color: white;
    color: var(--primary-700);
}

.occasion-dropdown option:hover {
    background-color: var(--primary-50);
}

/* For Webkit browsers like Chrome/Safari */
.occasion-dropdown::-webkit-scrollbar {
    width: 8px;
}

.occasion-dropdown::-webkit-scrollbar-track {
    background: var(--primary-50);
    border-radius: 4px;
}

.occasion-dropdown::-webkit-scrollbar-thumb {
    background: var(--primary-300);
    border-radius: 4px;
}

.occasion-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--primary-400);
}

.primary-btn.disabled {
    background-color: var(--primary-200);
    cursor: not-allowed;
    opacity: 0.7;
}

.primary-btn.disabled:hover {
    background-color: var(--primary-200);
    transform: none;
}

/* Add responsive styles */
@media (min-width: 640px) {
    .site-header {
        padding: 1rem 2rem;
    }

    .site-header h1 {
        font-size: 3rem;
    }

    .site-header .tagline {
        font-size: 1.25rem;
    }
}

/* Optional: Add a subtle animation on page load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-header {
    animation: fadeIn 0.5s ease-out;
}
