/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(180deg, #DAE0E6 0%, #e5e7eb 100%);
    background-attachment: fixed;
    color: #1c1c1c;
    line-height: 1.6;
}

code {
    font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
        monospace;
}

/* Colors */
:root {
    --reddit-orange: #FF4500;
    --reddit-orange-hover: #FF5722;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --red-50: #fef2f2;
    --red-500: #ef4444;
    --red-700: #b91c1c;
    --blue-100: #dbeafe;
    --blue-800: #1e40af;
    --green-100: #dcfce7;
    --green-800: #166534;
    --yellow-100: #fef3c7;
    --yellow-800: #92400e;
    --indigo-100: #e0e7ff;
    --indigo-800: #3730a3;
    --orange-100: #ffedd5;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-white {
    color: white;
}

.text-gray-400 {
    color: var(--gray-400);
}

.text-gray-500 {
    color: var(--gray-500);
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-700 {
    color: var(--gray-700);
}

.text-gray-900 {
    color: var(--gray-900);
}

.text-red-700 {
    color: var(--red-700);
}

.bg-white {
    background-color: white;
}

.bg-gray-50 {
    background-color: var(--gray-50);
}

.bg-gray-100 {
    background-color: var(--gray-100);
}

.bg-gray-200 {
    background-color: var(--gray-200);
}

.bg-red-50 {
    background-color: var(--red-50);
}

.bg-reddit-orange {
    background-color: var(--reddit-orange);
}

.bg-blue-100 {
    background-color: var(--blue-100);
}

.bg-green-100 {
    background-color: var(--green-100);
}

.bg-yellow-100 {
    background-color: var(--yellow-100);
}

.text-blue-800 {
    color: var(--blue-800);
}

.text-green-800 {
    color: var(--green-800);
}

.text-yellow-800 {
    color: var(--yellow-800);
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.border {
    border-width: 1px;
    border-style: solid;
}

.border-gray-200 {
    border-color: var(--gray-200);
}

.border-gray-300 {
    border-color: var(--gray-300);
}

.border-l-4 {
    border-left-width: 4px;
}

.border-red-500 {
    border-color: var(--red-500);
}

.border-t {
    border-top-width: 1px;
    border-top-style: solid;
}

.border-t-transparent {
    border-top-color: transparent;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cursor-pointer {
    cursor: pointer;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.hover\:bg-gray-100:hover {
    background-color: var(--gray-100);
}

.hover\:bg-gray-200:hover {
    background-color: var(--gray-200);
}

.hover\:bg-orange-600:hover {
    background-color: var(--reddit-orange-hover);
}

.hover\:text-reddit-orange:hover {
    color: var(--reddit-orange);
}

.hover\:text-orange-600:hover {
    color: var(--reddit-orange-hover);
}

.hover\:text-gray-900:hover {
    color: var(--gray-900);
}

.hover\:underline:hover {
    text-decoration: underline;
}

.disabled\:opacity-50:disabled {
    opacity: 0.5;
}

.disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
}

.w-full {
    width: 100%;
}

.w-3 {
    width: 0.75rem;
}

.w-4 {
    width: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-16 {
    width: 4rem;
}

.h-3 {
    height: 0.75rem;
}

.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-14 {
    height: 3.5rem;
}

.h-16 {
    height: 4rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-md {
    max-width: 28rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.ml-auto {
    margin-left: auto;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-8 > * + * {
    margin-top: 2rem;
}

.flex-1 {
    flex: 1 1 0%;
}

.min-w-0 {
    min-width: 0;
}

.whitespace-pre-wrap {
    white-space: pre-wrap;
}

.text-center {
    text-align: center;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

/* Components */
.reddit-card {
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.reddit-card:hover {
    border-color: var(--gray-300);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Enhanced Button Styles */
.reddit-button {
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reddit-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.reddit-button:hover::before {
    width: 300px;
    height: 300px;
}

.reddit-button-primary {
    background: linear-gradient(135deg, var(--reddit-orange) 0%, #ff6b35 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(255, 69, 0, 0.3), 0 2px 4px -1px rgba(255, 69, 0, 0.2);
}

.reddit-button-primary:hover {
    background: linear-gradient(135deg, #ff5722 0%, var(--reddit-orange) 100%);
    box-shadow: 0 10px 15px -3px rgba(255, 69, 0, 0.4), 0 4px 6px -2px rgba(255, 69, 0, 0.3);
    transform: translateY(-2px);
}

.reddit-button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(255, 69, 0, 0.3);
}

.reddit-button-primary:focus {
    outline: 2px solid var(--reddit-orange);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.2);
}

.reddit-button-secondary {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    color: var(--gray-700);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reddit-button-secondary:hover {
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.reddit-button-secondary:active {
    transform: translateY(0);
}

/* Button Variants */
.btn-success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--reddit-orange);
    color: var(--reddit-orange);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--reddit-orange);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(255, 69, 0, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* Enhanced Header */
.header {
    background: linear-gradient(180deg, white 0%, #fafafa 100%);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .header-content {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .header-content {
        padding: 0 2rem;
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
}

/* Loader */
.loader {
    width: 2rem;
    height: 2rem;
    border: 4px solid rgba(255, 69, 0, 0.2);
    border-top-color: var(--reddit-orange);
    border-radius: 9999px;
    animation: spin 1s linear infinite;
}

.loader-small {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 69, 0, 0.2);
    border-top-color: var(--reddit-orange);
    border-radius: 9999px;
    animation: spin 1s linear infinite;
}

.loader-large {
    width: 3rem;
    height: 3rem;
    border: 4px solid rgba(255, 69, 0, 0.2);
    border-top-color: var(--reddit-orange);
    border-radius: 9999px;
    animation: spin 1s linear infinite;
}

.loading-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-in;
}

.animate-slide-up {
    animation: slide-up 0.3s ease-out;
}

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

/* Enhanced Form Elements */
input[type="email"],
input[type="password"],
input[type="text"],
textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
    color: var(--gray-900);
}

input:hover,
textarea:hover {
    border-color: var(--gray-400);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--reddit-orange);
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
    transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder {
    color: var(--gray-400);
}

textarea {
    resize: vertical;
    font-family: inherit;
    min-height: 10rem;
    line-height: 1.6;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
}

/* Enhanced Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.badge:hover {
    transform: scale(1.05);
}

.badge-pending {
    background: linear-gradient(135deg, var(--yellow-100) 0%, #fde68a 100%);
    color: var(--yellow-800);
    border: 1px solid rgba(146, 64, 14, 0.2);
}

.badge-in-progress {
    background: linear-gradient(135deg, var(--blue-100) 0%, #bfdbfe 100%);
    color: var(--blue-800);
    border: 1px solid rgba(30, 64, 175, 0.2);
}

.badge-replied {
    background: linear-gradient(135deg, var(--green-100) 0%, #bbf7d0 100%);
    color: var(--green-800);
    border: 1px solid rgba(22, 101, 52, 0.2);
}

/* 3-Color Classification System */
.badge-dm {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #27ae60;
}

.badge-comment {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 2px solid #f39c12;
}

.badge-skip {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #e74c3c;
}

/* Responsive */
@media (min-width: 640px) {
    .sm\:flex {
        display: flex;
    }
    
    .sm\:inline {
        display: inline;
    }
    
    .sm\:items-center {
        align-items: center;
    }
    
    .sm\:justify-between {
        justify-content: space-between;
    }
    
    .sm\:flex-row {
        flex-direction: row;
    }
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--reddit-orange);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Post title hover */
.post-title {
    transition: color 0.2s;
}

.post-title:hover {
    color: var(--reddit-orange);
}

/* Enhanced empty state */
.empty-state {
    background: white;
    border-radius: 0.5rem;
    border: 2px dashed var(--gray-300);
    padding: 3rem;
    text-align: center;
    transition: all 0.3s;
}

.empty-state:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
}

/* Stats display */
.stats-card {
    background: linear-gradient(135deg, white 0%, var(--gray-50) 100%);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Link styles */
a {
    color: var(--reddit-orange);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    color: var(--reddit-orange-hover);
    text-decoration: underline;
}

/* Enhanced comment cards */
.comment-card {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border-left: 3px solid var(--gray-300);
    transition: all 0.2s;
}

.comment-card:hover {
    border-left-color: var(--reddit-orange);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Enhanced Gradient background */
.bg-gradient-reddit {
    background: linear-gradient(135deg, #ff4500 0%, #ff6b35 30%, #ff8c42 60%, #ffa366 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.bg-gradient-reddit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Filter Buttons */
.filter-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--reddit-orange) 0%, #ff6b35 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(255, 69, 0, 0.3);
    border-color: var(--reddit-orange);
}

.filter-btn:not(.active) {
    background: white;
    color: var(--gray-700);
    border-color: var(--gray-200);
}

.filter-btn:not(.active):hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Action Buttons */
.action-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.action-btn-primary {
    background: linear-gradient(135deg, var(--reddit-orange) 0%, #ff6b35 100%);
    color: white;
}

.action-btn-primary:hover {
    background: linear-gradient(135deg, #ff5722 0%, var(--reddit-orange) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(255, 69, 0, 0.3);
}

.action-btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.action-btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

/* Icon Buttons */
.icon-btn {
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
    border: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: var(--gray-100);
    transform: scale(1.1);
}

.icon-btn:active {
    transform: scale(0.95);
}

.icon-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.icon-btn:disabled:hover {
    background: transparent;
    transform: none;
}

/* Enhanced Keywords Display */
.keywords-section {
    margin: 12px 0;
    padding: 12px;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.keyword-category {
    margin-bottom: 10px;
}

.keyword-category:last-child {
    margin-bottom: 0;
}

.keyword-category-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
    margin-bottom: 6px;
    vertical-align: middle;
}

.keyword-category-label.keyword-action {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.keyword-category-label.keyword-intent {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(245, 87, 108, 0.3);
}

.keyword-category-label.keyword-entity {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(79, 172, 254, 0.3);
}

.keyword-category-label.keyword-location {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(67, 233, 123, 0.3);
}

.keyword-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.keyword-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: default;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.keyword-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.keyword-tag-action {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
    border: 1px solid #818cf8;
}

.keyword-tag-intent {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #831843;
    border: 1px solid #f472b6;
}

.keyword-tag-entity {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #60a5fa;
}

.keyword-tag-location {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #34d399;
}

.keyword-more {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75em;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 12px;
    border: 1px solid #d1d5db;
}

/* Worker Classification Buttons */
.classification-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.classification-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.classification-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.classify-btn-dm {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-color: #27ae60;
}

.classify-btn-dm:hover:not(:disabled) {
    background: linear-gradient(135deg, #c3e6cb 0%, #b1dfbb 100%);
    border-color: #229954;
}

.classify-btn-comment {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-color: #f39c12;
}

.classify-btn-comment:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdd835 100%);
    border-color: #d68910;
}

.classify-btn-skip {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-color: #e74c3c;
}

.classify-btn-skip:hover:not(:disabled) {
    background: linear-gradient(135deg, #f5c6cb 0%, #f1b0b7 100%);
    border-color: #c0392b;
}

