* { box-sizing: border-box; }

body {
    background-color: #f9fafb;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    line-height: 1.5;
}

.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.p-6 { padding: 1.5rem; }
.sm\:p-8 { padding: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-green-100 { background-color: #dcfce7; }
.bg-red-100 { background-color: #fee2e2; }

.rounded-2xl { border-radius: 1rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }

.text-center { text-align: center; }
.text-left { text-align: left; }

.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-800 { color: #1f2937; }
.text-red-500 { color: #ef4444; }
.text-blue-600 { color: #2563eb; }
.text-green-600 { color: #16a34a; }
.text-red-600 { color: #dc2626; }
.text-white { color: #fff; }

.text-2xl { font-size: 1.5rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }

.w-full { width: 100%; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }

.border { border-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-b-2 { border-bottom-width: 2px; }
.border-blue-600 { border-color: #2563eb; }

.min-h-screen { min-height: 100vh; }

.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.gradient-bg {
    background: linear-gradient(135deg, #0066CC 0%, #0099FF 100%);
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    width: fit-content;
}

.star-rating input { display: none; }

.star-rating label {
    cursor: pointer;
    transition: color 0.2s;
    color: #d1d5db;
    font-size: 28px;
    margin-left: 6px;
}

.star-rating input:checked ~ label { color: #fbbf24; }
.star-rating label:hover,
.star-rating label:hover ~ label { color: #fbbf24; }

.star-desc {
    font-size: 12px;
    color: #374151;
    line-height: 1.5;
    margin-top: 4px;
    margin-bottom: 8px;
    text-align: left;
}

.form-item { margin-bottom: 20px; }

.hidden { display: none; }

textarea {
    font-family: inherit;
    resize: none;
}

textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

button[type="submit"] {
    outline: none;
    border: none;
}

button[type="submit"]:focus {
    outline: none;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

button[type="submit"]::-moz-focus-inner {
    border: 0;
}

*:focus {
    outline: none;
}

@media (min-width: 640px) {
    .sm\:p-8 { padding: 2rem; }
}
