/* Base styles */
:root {
    --primary-color: #3B82F6;
    --secondary-color: #93C5FD;
    --text-color: #1F2937;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 375px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background-color: #FAFAFA;
    font-size: 16px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

html {
    background-color: #E5E5E5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* Star rating styles */
.star-rating {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.star-rating i {
    color: var(--gray-300);
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.star-rating i:hover,
.star-rating i.active {
    color: #FCD34D;
    transform: scale(1.1);
}

/* Rating items */
.rating-item {
    background-color: var(--gray-100);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rating-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.rating-item label {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    cursor: pointer;
}

.rating-item input[type="radio"] {
    margin-right: 0.5rem;
    accent-color: var(--primary-color);
    transition: transform 0.2s ease;
}

.rating-item input[type="radio"]:hover {
    transform: scale(1.1);
}

/* Photo upload styles */
.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.05);
}

#photo-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

#photo-preview img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 0.2s ease;
}

#photo-preview img:hover {
    transform: scale(1.05);
}

/* Tag styles */
.tag {
    background-color: var(--gray-100);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.tag:hover {
    background-color: var(--gray-200);
    transform: translateY(-2px);
}

.tag.selected {
    background-color: #3B82F6 !important;
    color: white !important;
}

/* Button styles */
button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* Textarea styles */
textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    resize: none;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Card styles */
.card {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Avatar styles */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    transition: transform 0.2s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section title styles */
.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    padding-left: 0.75rem;
}

.section-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 375px) {
    body {
        width: 100%;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animated elements */
.animated {
    animation: fadeIn 0.5s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Gradient background */
.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Custom checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
}

.custom-checkbox input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-checkbox input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20.28 2.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 001.06 1.06L20.28 4.29a.75.75 0 010-1.06zM4.22 20.28a.75.75 0 010-1.06l7.25-7.25a.75.75 0 00-1.06-1.06L4.22 19.22a.75.75 0 010 1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.custom-checkbox label {
    cursor: pointer;
}

/* Custom radio */
.custom-radio {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
}

.custom-radio input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-radio input[type="radio"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.custom-radio label {
    cursor: pointer;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: var(--gray-700);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}