/* Review Hound - Custom Styles */

/* Theme colors */
:root {
  --bg-page: #faf9f7;
  --bg-surface: #fffffe;
  --bg-surface-hover: #f5f4f2;
  --bg-muted: #f3f2f0;
  --border: #e8e6e3;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
}

.dark {
  --bg-page: #141312;
  --bg-surface: #1f1e1c;
  --bg-surface-hover: #2a2927;
  --bg-muted: #252422;
  --border: #2e2c29;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
}

/* Base improvements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sentiment bar */
.sentiment-bar {
    height: 8px;
    border-radius: 9999px;
    overflow: hidden;
}

/* Card hover effect */
.card-hover {
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
}

/* Star rating color */
.rating-stars {
    color: #f59e0b;
}

/* Form input improvements */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
select,
textarea {
    border-color: #d1d5db;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Button improvements */
button {
    transition: all 0.15s ease-in-out;
}

/* Primary button hover glow */
.bg-indigo-600:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Table styling */
thead {
    border-bottom: 2px solid var(--border);
}

tbody tr {
    border-bottom: 1px solid var(--border);
}

tbody tr:hover {
    background-color: var(--bg-surface-hover);
}

/* Modal backdrop blur */
.bg-black.bg-opacity-50 {
    backdrop-filter: blur(2px);
}

/* Scrollbar styling for modals */
.overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: var(--bg-muted);
    border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Range input styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: var(--bg-muted);
    border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #6366f1;
    border-radius: 50%;
    margin-top: -6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #4f46e5;
}

input[type="range"]::-moz-range-track {
    height: 8px;
    background: var(--bg-muted);
    border-radius: 4px;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #6366f1;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Badge/chip styling */
.bg-green-100,
.bg-blue-100,
.bg-red-100,
.bg-yellow-100 {
    font-weight: 500;
}

/* Loading spinner animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 0.8s linear infinite;
}

/* Disabled button state */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Link underline animation */
a.hover\:underline {
    text-decoration: none;
    position: relative;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Chart container */
canvas {
    border-radius: 8px;
}
