* {
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* FORCE consistent border-radius across ALL elements */
.rounded,
.rounded-sm,
.rounded-md,
.rounded-lg,
.rounded-xl,
.rounded-2xl,
.rounded-3xl,
[class*="rounded"] {
    border-radius: 0.5rem !important;
}

/* Small elements get smaller radius */
.badge,
.status-badge,
.tag,
.chip,
.pagination button {
    border-radius: 0.25rem !important;
}

/* Keep circular elements circular */
.rounded-full,
[class*="rounded-full"] {
    border-radius: 50% !important;
}

body {
    background: #0f1419;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Simple gradient background */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Clean card style */
.glass {
    background: #161b22;
    border: 1px solid #30363d;
}

/* Subtle shadow */
.neon-glow {
    box-shadow: none;
}

.neon-text {
    text-shadow: none;
}

/* Removed pulse animation for cleaner look */

/* Removed shimmer effect */
.shimmer {
    display: none;
}

/* Removed particle effects */

/* Simple hover effects */
.hover-lift:hover {
    transform: translateY(-2px);
}

.hover-glow:hover {
    border-color: #667eea;
}

/* Progress bar */
.progress-bar {
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 100%;
    animation: progress-flow 2s ease-in-out infinite;
}

@keyframes progress-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* AI Brain animation */
@keyframes brain-pulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

.brain-pulse {
    animation: brain-pulse 2s ease-in-out infinite;
}

/* Custom scrollbar - Simple */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0d1117;
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

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

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

/* Cursor pointer */
.cursor-pointer {
    cursor: pointer;
}

/* ============================================================================
   LAYOUT COMPONENTS
   ============================================================================ */

/* Simple Background */
.animated-bg {
    background: #0f1419;
    min-height: 100vh;
}

.particles-container {
    display: none;
}

/* Sidebar - Professional */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: #161b22;
    border-right: 1px solid #30363d;
    padding: 1.5rem 1rem;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.sidebar-header i {
    font-size: 1.5rem;
    color: #667eea;
}

.sidebar-header span {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.15s ease;
}

.sidebar-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: white;
}

.sidebar-link.active {
    background: #667eea;
    color: white;
}

.sidebar-link i {
    width: 1.25rem;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Glass Card - Clean professional */
.glass-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

/* Buttons - Simple professional */
.btn-primary {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #30363d;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #161b22;
    border-color: #667eea;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
}

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

/* Input Fields - Simple */
.input {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: white;
    width: 100%;
    transition: all 0.15s ease;
    font-size: 0.875rem;
}

.input:focus {
    outline: none;
    border-color: #667eea;
    background: #0d1117;
}

.input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 0.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 1.5rem;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.status-in_progress {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-failed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Stat Cards - Clean professional */
.stat-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 0.5rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color 0.15s ease;
}

.stat-card:hover {
    border-color: #667eea;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Table styles - Modern clean design */
table {
    border-collapse: collapse;
    width: 100%;
}

table thead {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

table td {
    padding: 1.25rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9375rem;
}

table tbody tr {
    transition: background 0.15s ease;
}

table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Header - Clean */
header.glass {
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

/* Search input - Clean */
.search-input {
    background: #0d1117;
    border: 1px solid #30363d;
    color: white;
    padding: 0.5rem 0.75rem;
    padding-left: 2.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.search-input:focus {
    background: #0d1117;
    border-color: #667eea;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Trend indicators */
.trend-up {
    color: #0BDA57;
}

.trend-down {
    color: #FA5F38;
}

/* Status badges - Clean */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.badge-success {
    background: rgba(11, 218, 87, 0.2);
    color: #0BDA57;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.badge-error {
    background: rgba(250, 95, 56, 0.2);
    color: #FA5F38;
}

.badge-info {
    background: rgba(17, 147, 212, 0.2);
    color: #1193d4;
}

/* Card hover - Minimal */
.card-hover {
    transition: border-color 0.15s ease;
}

.card-hover:hover {
    border-color: #667eea;
}

/* Text colors */
.text-primary {
    color: #667eea;
}

.text-muted {
    color: #92b7c9;
}

.text-success {
    color: #0BDA57;
}

.text-error {
    color: #FA5F38;
}

/* Background colors */
.bg-card {
    background: #161b22;
}

.bg-card-hover {
    background: #0d1117;
}

.bg-primary {
    background: #667eea;
}

/* Border colors */
.border-card {
    border-color: #30363d;
}

.border-primary {
    border-color: #667eea;
}

/* Dropdown styling */
select.input,
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Typography - Modern hierarchy */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

/* Tag/Chip - Clean */
.tag, .chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.625rem;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.tag .remove-btn, .chip .remove-btn {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.tag .remove-btn:hover, .chip .remove-btn:hover {
    opacity: 1;
}

/* Status dot - Simple */
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-dot.active { background: #10b981; }
.status-dot.generating { background: #f59e0b; }
.status-dot.error { background: #ef4444; }
.status-dot.pending { background: #3b82f6; }

/* Pagination - Clean */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 2rem;
}

.pagination button,
.pagination span {
    min-width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.pagination button {
    background: transparent;
    border: 1px solid #30363d;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.pagination button:hover:not(:disabled) {
    background: #161b22;
    border-color: #667eea;
    color: white;
}

.pagination button.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Dynamic Fields section */
.dynamic-field-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-block;
}

.dynamic-field-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
}

/* Filter dropdown - Modern style */
.filter-dropdown {
    background: #0d1117;
    border: 1px solid #30363d;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-dropdown:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Character count */
.char-count {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
    margin-top: 0.5rem;
}

/* Section headers */
.section-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

/* Sidebar compact - Modern style */
.sidebar-compact {
    background: rgba(15, 20, 32, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
}

.sidebar-compact .sidebar-link {
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
}

/* Comment/Chat section */
.comment-item {
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 0.75rem;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: white;
}

.comment-time {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.comment-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-size: 0.9375rem;
}

.comment-reply {
    color: #667eea;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.5rem;
    display: inline-block;
}

.comment-reply:hover {
    color: #764ba2;
}

/* Alert/Notice boxes */
.alert {
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
}
