/**
 * Tobalt Itremejas Frontend Styles
 * Modern Design System v2.0
 *
 * @package Tobalt\Itremejas
 * @author  Tobalt — https://tobalt.lt
 */

/* ==========================================================================
   1. Design Tokens & CSS Variables
   ========================================================================== */
:root {
    /* Primary Palette - Bright & Accessible */
    --tobalt-primary: #4f46e5;
    --tobalt-primary-hover: #4338ca;
    --tobalt-primary-light: #eef2ff;
    --tobalt-primary-rgb: 79, 70, 229;

    /* Secondary Accent */
    --tobalt-accent: #06b6d4;
    --tobalt-accent-hover: #0891b2;
    --tobalt-accent-light: #ecfeff;

    /* Semantic Colors - WCAG AA Compliant */
    --tobalt-success: #059669;
    --tobalt-success-light: #d1fae5;
    --tobalt-warning: #d97706;
    --tobalt-warning-light: #fef3c7;
    --tobalt-error: #dc2626;
    --tobalt-error-light: #fee2e2;
    --tobalt-info: #0284c7;
    --tobalt-info-light: #e0f2fe;

    /* Neutral Palette */
    --tobalt-white: #ffffff;
    --tobalt-gray-50: #f8fafc;
    --tobalt-gray-100: #f1f5f9;
    --tobalt-gray-200: #e2e8f0;
    --tobalt-gray-300: #cbd5e1;
    --tobalt-gray-400: #94a3b8;
    --tobalt-gray-500: #64748b;
    --tobalt-gray-600: #475569;
    --tobalt-gray-700: #334155;
    --tobalt-gray-800: #1e293b;
    --tobalt-gray-900: #0f172a;

    /* Typography */
    --tobalt-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --tobalt-font-display: 'Poppins', var(--tobalt-font-sans);

    /* Spacing Scale */
    --tobalt-space-xs: 4px;
    --tobalt-space-sm: 8px;
    --tobalt-space-md: 16px;
    --tobalt-space-lg: 24px;
    --tobalt-space-xl: 32px;
    --tobalt-space-2xl: 48px;
    --tobalt-space-3xl: 64px;

    /* Border Radius */
    --tobalt-radius-sm: 6px;
    --tobalt-radius: 12px;
    --tobalt-radius-lg: 16px;
    --tobalt-radius-xl: 24px;
    --tobalt-radius-full: 9999px;

    /* Shadows */
    --tobalt-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --tobalt-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --tobalt-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --tobalt-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --tobalt-shadow-glow: 0 0 20px rgba(var(--tobalt-primary-rgb), 0.3);

    /* Glass Effect */
    --tobalt-glass-bg: rgba(255, 255, 255, 0.8);
    --tobalt-glass-border: rgba(255, 255, 255, 0.3);
    --tobalt-glass-blur: blur(12px);

    /* Transitions */
    --tobalt-transition-fast: 150ms ease;
    --tobalt-transition: 200ms ease;
    --tobalt-transition-slow: 300ms ease;

    /* Z-Index Scale */
    --tobalt-z-dropdown: 1000;
    --tobalt-z-sticky: 1020;
    --tobalt-z-fixed: 1030;
    --tobalt-z-modal-backdrop: 1040;
    --tobalt-z-modal: 1050;
    --tobalt-z-tooltip: 1070;
}

/* ==========================================================================
   2. Base & Reset
   ========================================================================== */
.tobalt-wrapper {
    font-family: var(--tobalt-font-sans);
    line-height: 1.6;
    color: var(--tobalt-gray-800);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tobalt-wrapper *,
.tobalt-wrapper *::before,
.tobalt-wrapper *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   3. Background & Container
   ========================================================================== */
.tobalt-page-wrapper {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Subtle Background Pattern */
.tobalt-page-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(79, 70, 229, 0.05) 0%, transparent 40%),
        linear-gradient(135deg, var(--tobalt-gray-50) 0%, var(--tobalt-white) 50%, var(--tobalt-gray-50) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Optional: Geometric Pattern Overlay */
.tobalt-page-wrapper.has-pattern::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234f46e5' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
    opacity: 0.8;
}

.tobalt-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--tobalt-space-lg);
}

/* ==========================================================================
   4. Typography
   ========================================================================== */
.tobalt-heading-xl {
    font-family: var(--tobalt-font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--tobalt-gray-900);
    letter-spacing: -0.025em;
}

.tobalt-heading-lg {
    font-family: var(--tobalt-font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--tobalt-gray-900);
    letter-spacing: -0.02em;
}

.tobalt-heading-md {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--tobalt-gray-800);
}

.tobalt-text-lg {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--tobalt-gray-600);
}

.tobalt-text-sm {
    font-size: 0.875rem;
    color: var(--tobalt-gray-500);
}

.tobalt-gradient-text {
    background: linear-gradient(135deg, var(--tobalt-primary) 0%, var(--tobalt-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.tobalt-hero {
    position: relative;
    padding: var(--tobalt-space-3xl) var(--tobalt-space-lg);
    text-align: center;
    overflow: hidden;
}

.tobalt-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--tobalt-primary-rgb), 0.1) 0%, transparent 70%);
    animation: tobalt-pulse 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes tobalt-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.tobalt-hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.tobalt-hero-title {
    margin: 0 0 var(--tobalt-space-md);
}

.tobalt-hero-subtitle {
    font-size: 1.25rem;
    color: var(--tobalt-gray-600);
    margin: 0 0 var(--tobalt-space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tobalt-hero-actions {
    display: flex;
    gap: var(--tobalt-space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   6. Process Flow Section
   ========================================================================== */
.tobalt-process {
    padding: var(--tobalt-space-3xl) 0;
}

.tobalt-process-title {
    text-align: center;
    margin-bottom: var(--tobalt-space-2xl);
}

.tobalt-process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--tobalt-space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.tobalt-process-step {
    position: relative;
    background: var(--tobalt-glass-bg);
    backdrop-filter: var(--tobalt-glass-blur);
    -webkit-backdrop-filter: var(--tobalt-glass-blur);
    border: 1px solid var(--tobalt-glass-border);
    border-radius: var(--tobalt-radius-lg);
    padding: var(--tobalt-space-xl);
    text-align: center;
    transition: var(--tobalt-transition);
}

.tobalt-process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--tobalt-shadow-lg);
}

.tobalt-process-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--tobalt-primary) 0%, var(--tobalt-accent) 100%);
    color: var(--tobalt-white);
    border-radius: var(--tobalt-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: var(--tobalt-shadow-glow);
}

.tobalt-process-icon {
    font-size: 3rem;
    margin-bottom: var(--tobalt-space-md);
    display: block;
}

.tobalt-process-step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--tobalt-gray-900);
    margin: 0 0 var(--tobalt-space-sm);
}

.tobalt-process-step p {
    font-size: 0.9375rem;
    color: var(--tobalt-gray-600);
    margin: 0;
    line-height: 1.6;
}

/* Role-specific Process Cards */
.tobalt-process-freelancer .tobalt-process-number {
    background: linear-gradient(135deg, var(--tobalt-success) 0%, #10b981 100%);
}

.tobalt-process-institution .tobalt-process-number {
    background: linear-gradient(135deg, var(--tobalt-primary) 0%, var(--tobalt-accent) 100%);
}

/* ==========================================================================
   7. Buttons
   ========================================================================== */
.tobalt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--tobalt-space-sm);
    padding: 12px 24px;
    border: none;
    border-radius: var(--tobalt-radius);
    font-family: var(--tobalt-font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--tobalt-transition);
    position: relative;
    overflow: hidden;
}

.tobalt-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.tobalt-btn:hover::before {
    left: 100%;
}

.tobalt-btn-primary {
    background: linear-gradient(135deg, var(--tobalt-primary) 0%, var(--tobalt-primary-hover) 100%);
    color: var(--tobalt-white);
    box-shadow: 0 4px 14px 0 rgba(var(--tobalt-primary-rgb), 0.4);
}

.tobalt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--tobalt-primary-rgb), 0.5);
    color: var(--tobalt-white);
}

.tobalt-btn-secondary {
    background: var(--tobalt-white);
    color: var(--tobalt-gray-700);
    border: 2px solid var(--tobalt-gray-200);
}

.tobalt-btn-secondary:hover {
    border-color: var(--tobalt-primary);
    color: var(--tobalt-primary);
    background: var(--tobalt-primary-light);
}

.tobalt-btn-accent {
    background: linear-gradient(135deg, var(--tobalt-accent) 0%, var(--tobalt-accent-hover) 100%);
    color: var(--tobalt-white);
    box-shadow: 0 4px 14px 0 rgba(6, 182, 212, 0.4);
}

.tobalt-btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
    color: var(--tobalt-white);
}

.tobalt-btn-success {
    background: linear-gradient(135deg, var(--tobalt-success) 0%, #059669 100%);
    color: var(--tobalt-white);
}

.tobalt-btn-danger {
    background: linear-gradient(135deg, var(--tobalt-error) 0%, #b91c1c 100%);
    color: var(--tobalt-white);
}

.tobalt-btn-danger:hover {
    transform: translateY(-2px);
    color: var(--tobalt-white);
}

.tobalt-btn-ghost {
    background: transparent;
    color: var(--tobalt-gray-600);
}

.tobalt-btn-ghost:hover {
    background: var(--tobalt-gray-100);
    color: var(--tobalt-gray-900);
}

.tobalt-btn-small {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

.tobalt-btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.tobalt-btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--tobalt-radius-full);
}

.tobalt-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ==========================================================================
   8. Cards
   ========================================================================== */
.tobalt-card {
    background: var(--tobalt-white);
    border-radius: var(--tobalt-radius-lg);
    box-shadow: var(--tobalt-shadow);
    overflow: hidden;
    transition: var(--tobalt-transition);
}

.tobalt-card:hover {
    box-shadow: var(--tobalt-shadow-lg);
}

.tobalt-card-glass {
    background: var(--tobalt-glass-bg);
    backdrop-filter: var(--tobalt-glass-blur);
    -webkit-backdrop-filter: var(--tobalt-glass-blur);
    border: 1px solid var(--tobalt-glass-border);
}

.tobalt-card-body {
    padding: var(--tobalt-space-lg);
}

.tobalt-card-header {
    padding: var(--tobalt-space-lg);
    border-bottom: 1px solid var(--tobalt-gray-100);
}

.tobalt-card-footer {
    padding: var(--tobalt-space-md) var(--tobalt-space-lg);
    background: var(--tobalt-gray-50);
    border-top: 1px solid var(--tobalt-gray-100);
}

/* Task Card - Enhanced */
.tobalt-task-card {
    background: var(--tobalt-white);
    border: 1px solid var(--tobalt-gray-200);
    border-radius: var(--tobalt-radius-lg);
    padding: var(--tobalt-space-lg);
    box-shadow: var(--tobalt-shadow);
    transition: var(--tobalt-transition);
    position: relative;
    overflow: hidden;
}

.tobalt-task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tobalt-primary), var(--tobalt-accent));
    opacity: 0;
    transition: var(--tobalt-transition);
}

.tobalt-task-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tobalt-shadow-xl);
    border-color: var(--tobalt-primary-light);
}

.tobalt-task-card:hover::before {
    opacity: 1;
}

.tobalt-task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--tobalt-space-sm);
    margin-bottom: var(--tobalt-space-md);
}

.tobalt-task-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.tobalt-task-title a {
    color: var(--tobalt-gray-900);
    text-decoration: none;
    transition: var(--tobalt-transition-fast);
}

.tobalt-task-title a:hover {
    color: var(--tobalt-primary);
}

.tobalt-task-meta {
    display: flex;
    gap: var(--tobalt-space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--tobalt-space-md);
}

.tobalt-task-excerpt {
    color: var(--tobalt-gray-600);
    font-size: 0.9375rem;
    margin-bottom: var(--tobalt-space-md);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tobalt-task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--tobalt-space-md);
    border-top: 1px solid var(--tobalt-gray-100);
}

.tobalt-task-actions {
    display: flex;
    gap: var(--tobalt-space-sm);
    align-items: center;
}

/* Tasks Grid */
.tobalt-tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--tobalt-space-lg);
}

/* ==========================================================================
   9. Badges & Tags
   ========================================================================== */
.tobalt-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--tobalt-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.tobalt-badge-primary {
    background: var(--tobalt-primary-light);
    color: var(--tobalt-primary);
}

.tobalt-badge-info {
    background: var(--tobalt-info-light);
    color: var(--tobalt-info);
}

.tobalt-badge-open {
    background: var(--tobalt-success-light);
    color: var(--tobalt-success);
}

.tobalt-badge-assigned {
    background: var(--tobalt-warning-light);
    color: #92400e; /* Darker amber for WCAG AA contrast */
}

.tobalt-badge-submitted {
    background: var(--tobalt-info-light);
    color: var(--tobalt-info);
}

.tobalt-badge-completed {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(16, 185, 129, 0.1));
    color: var(--tobalt-success);
}

.tobalt-badge-closed {
    background: var(--tobalt-gray-100);
    color: var(--tobalt-gray-500);
}

.tobalt-badge-pending {
    background: var(--tobalt-warning-light);
    color: #92400e; /* Darker amber for WCAG AA contrast */
}

.tobalt-badge-selected {
    background: var(--tobalt-success-light);
    color: var(--tobalt-success);
}

.tobalt-badge-rejected {
    background: var(--tobalt-error-light);
    color: var(--tobalt-error);
}

/* Category Tags */
.tobalt-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--tobalt-gray-100);
    color: var(--tobalt-gray-700);
    border-radius: var(--tobalt-radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: var(--tobalt-transition-fast);
}

.tobalt-tag:hover {
    background: var(--tobalt-primary-light);
    color: var(--tobalt-primary);
}

/* ==========================================================================
   10. Forms
   ========================================================================== */
.tobalt-form {
    max-width: 640px;
}

.tobalt-form-group {
    margin-bottom: var(--tobalt-space-lg);
}

.tobalt-form-group label {
    display: block;
    margin-bottom: var(--tobalt-space-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--tobalt-gray-700);
}

.tobalt-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--tobalt-space-md);
}

.tobalt-input,
.tobalt-textarea,
.tobalt-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--tobalt-gray-200);
    border-radius: var(--tobalt-radius);
    font-family: var(--tobalt-font-sans);
    font-size: 0.9375rem;
    color: var(--tobalt-gray-900);
    background: var(--tobalt-white);
    transition: var(--tobalt-transition);
}

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

.tobalt-input:hover,
.tobalt-textarea:hover,
.tobalt-select:hover {
    border-color: var(--tobalt-gray-300);
}

.tobalt-input:focus,
.tobalt-textarea:focus,
.tobalt-select:focus {
    outline: none;
    border-color: var(--tobalt-primary);
    box-shadow: 0 0 0 4px rgba(var(--tobalt-primary-rgb), 0.1);
}

.tobalt-textarea {
    min-height: 120px;
    resize: vertical;
}

.tobalt-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 44px;
}

.tobalt-form-actions {
    margin-top: var(--tobalt-space-xl);
    display: flex;
    gap: var(--tobalt-space-md);
}

.tobalt-form-hint {
    margin-top: var(--tobalt-space-xs);
    font-size: 0.8125rem;
    color: var(--tobalt-gray-500);
}

.tobalt-form-error {
    margin-top: var(--tobalt-space-xs);
    font-size: 0.8125rem;
    color: var(--tobalt-error);
}

.required {
    color: var(--tobalt-error);
}

/* Checkbox & Radio */
.tobalt-checkbox-label,
.tobalt-radio-label {
    display: flex;
    align-items: center;
    gap: var(--tobalt-space-sm);
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--tobalt-gray-700);
}

.tobalt-checkbox-label input,
.tobalt-radio-label input {
    width: 20px;
    height: 20px;
    accent-color: var(--tobalt-primary);
}

/* ==========================================================================
   11. Search
   ========================================================================== */
.tobalt-search-form {
    margin-bottom: var(--tobalt-space-xl);
}

.tobalt-search-main {
    display: flex;
    gap: var(--tobalt-space-md);
    margin-bottom: var(--tobalt-space-md);
}

.tobalt-search-input-wrap {
    flex: 1;
    position: relative;
}

.tobalt-search-input {
    width: 100%;
    padding: 14px 20px;
    padding-left: 48px;
    border: 2px solid var(--tobalt-gray-200);
    border-radius: var(--tobalt-radius-full);
    font-size: 1rem;
    background: var(--tobalt-white);
    transition: var(--tobalt-transition);
}

.tobalt-search-input-wrap::before {
    content: '🔍';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.5;
}

.tobalt-search-input:focus {
    outline: none;
    border-color: var(--tobalt-primary);
    box-shadow: 0 0 0 4px rgba(var(--tobalt-primary-rgb), 0.1);
}

.tobalt-toggle-filters {
    display: flex;
    align-items: center;
    gap: var(--tobalt-space-sm);
    padding: 12px 20px;
    background: var(--tobalt-gray-100);
    border: none;
    border-radius: var(--tobalt-radius-full);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--tobalt-gray-700);
    cursor: pointer;
    transition: var(--tobalt-transition);
}

.tobalt-toggle-filters:hover {
    background: var(--tobalt-gray-200);
}

.tobalt-filter-icon {
    font-size: 0.625rem;
    transition: transform var(--tobalt-transition);
}

.tobalt-toggle-filters[aria-expanded="true"] .tobalt-filter-icon {
    transform: rotate(180deg);
}

.tobalt-search-advanced {
    background: var(--tobalt-glass-bg);
    backdrop-filter: var(--tobalt-glass-blur);
    -webkit-backdrop-filter: var(--tobalt-glass-blur);
    border: 1px solid var(--tobalt-glass-border);
    padding: var(--tobalt-space-lg);
    border-radius: var(--tobalt-radius-lg);
    margin-bottom: var(--tobalt-space-md);
    animation: tobalt-slideDown 0.3s ease;
}

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

.tobalt-search-row {
    display: flex;
    gap: var(--tobalt-space-md);
    flex-wrap: wrap;
    margin-bottom: var(--tobalt-space-md);
}

.tobalt-search-row:last-child {
    margin-bottom: 0;
}

.tobalt-search-field {
    flex: 1;
    min-width: 180px;
}

.tobalt-search-field label {
    display: block;
    margin-bottom: var(--tobalt-space-xs);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tobalt-gray-600);
}

.tobalt-search-actions {
    display: flex;
    align-items: flex-end;
}

.tobalt-search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--tobalt-space-md);
    flex-wrap: wrap;
    gap: var(--tobalt-space-md);
}

.tobalt-results-count {
    color: var(--tobalt-gray-500);
    font-size: 0.9375rem;
    margin: 0;
}

.tobalt-saved-searches-actions {
    display: flex;
    gap: var(--tobalt-space-sm);
}

/* ==========================================================================
   12. Dashboard
   ========================================================================== */
.tobalt-dashboard-nav {
    display: flex;
    gap: var(--tobalt-space-sm);
    margin-bottom: var(--tobalt-space-xl);
    padding: var(--tobalt-space-sm);
    background: var(--tobalt-gray-100);
    border-radius: var(--tobalt-radius-full);
    overflow-x: auto;
}

.tobalt-dashboard-nav a {
    padding: 10px 20px;
    color: var(--tobalt-gray-600);
    text-decoration: none;
    border-radius: var(--tobalt-radius-full);
    font-weight: 500;
    white-space: nowrap;
    transition: var(--tobalt-transition);
}

.tobalt-dashboard-nav a:hover {
    background: var(--tobalt-white);
    color: var(--tobalt-gray-900);
}

.tobalt-dashboard-nav a.active {
    background: var(--tobalt-white);
    color: var(--tobalt-primary);
    box-shadow: var(--tobalt-shadow-sm);
}

.tobalt-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--tobalt-space-md);
    margin-bottom: var(--tobalt-space-xl);
}

.tobalt-stat-card {
    background: var(--tobalt-white);
    border-radius: var(--tobalt-radius-lg);
    padding: var(--tobalt-space-lg);
    text-align: center;
    box-shadow: var(--tobalt-shadow);
    transition: var(--tobalt-transition);
    position: relative;
    overflow: hidden;
}

.tobalt-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tobalt-primary), var(--tobalt-accent));
}

.tobalt-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tobalt-shadow-lg);
}

.tobalt-stat-icon {
    font-size: 2rem;
    margin-bottom: var(--tobalt-space-sm);
    display: block;
}

.tobalt-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--tobalt-gray-900);
    line-height: 1;
}

.tobalt-stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--tobalt-gray-500);
    margin-top: var(--tobalt-space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Task Row */
.tobalt-task-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--tobalt-space-md);
    border: 1px solid var(--tobalt-gray-200);
    border-radius: var(--tobalt-radius);
    margin-bottom: var(--tobalt-space-sm);
    background: var(--tobalt-white);
    transition: var(--tobalt-transition);
}

.tobalt-task-row:hover {
    border-color: var(--tobalt-primary-light);
    box-shadow: var(--tobalt-shadow-sm);
}

.tobalt-task-info {
    display: flex;
    align-items: center;
    gap: var(--tobalt-space-md);
    flex-wrap: wrap;
}

/* ==========================================================================
   13. Modal
   ========================================================================== */
.tobalt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: var(--tobalt-z-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--tobalt-space-md);
    animation: tobalt-fadeIn 0.2s ease;
}

@keyframes tobalt-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tobalt-modal-content {
    background: var(--tobalt-white);
    border-radius: var(--tobalt-radius-xl);
    padding: var(--tobalt-space-xl);
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--tobalt-shadow-xl);
    animation: tobalt-slideUp 0.3s ease;
}

@keyframes tobalt-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tobalt-modal-content h3 {
    margin: 0 0 var(--tobalt-space-md);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tobalt-gray-900);
}

.tobalt-modal-actions {
    display: flex;
    gap: var(--tobalt-space-md);
    justify-content: flex-end;
    margin-top: var(--tobalt-space-lg);
    padding-top: var(--tobalt-space-lg);
    border-top: 1px solid var(--tobalt-gray-100);
}

/* ==========================================================================
   14. Notices
   ========================================================================== */
.tobalt-notice {
    padding: var(--tobalt-space-md);
    border-radius: var(--tobalt-radius);
    margin-bottom: var(--tobalt-space-md);
    display: flex;
    align-items: flex-start;
    gap: var(--tobalt-space-md);
}

.tobalt-notice-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tobalt-notice-error {
    background: var(--tobalt-error-light);
    color: var(--tobalt-error);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.tobalt-notice-warning {
    background: var(--tobalt-warning-light);
    color: var(--tobalt-warning);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.tobalt-notice-success {
    background: var(--tobalt-success-light);
    color: var(--tobalt-success);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.tobalt-notice-info {
    background: var(--tobalt-info-light);
    color: var(--tobalt-info);
    border: 1px solid rgba(2, 132, 199, 0.2);
}

/* ==========================================================================
   15. File Upload
   ========================================================================== */
.tobalt-file-upload {
    margin-bottom: var(--tobalt-space-md);
}

.tobalt-file-dropzone {
    border: 2px dashed var(--tobalt-gray-300);
    border-radius: var(--tobalt-radius-lg);
    padding: var(--tobalt-space-2xl);
    text-align: center;
    cursor: pointer;
    transition: var(--tobalt-transition);
    background: var(--tobalt-gray-50);
}

.tobalt-file-dropzone:hover,
.tobalt-file-dropzone.dragover {
    border-color: var(--tobalt-primary);
    background: var(--tobalt-primary-light);
}

.tobalt-file-dropzone-icon {
    font-size: 3rem;
    margin-bottom: var(--tobalt-space-md);
    display: block;
}

.tobalt-file-dropzone-text {
    color: var(--tobalt-gray-600);
    font-size: 0.9375rem;
}

.tobalt-file-dropzone-text strong {
    color: var(--tobalt-primary);
    cursor: pointer;
    text-decoration: underline;
}

.tobalt-file-dropzone-hint {
    color: var(--tobalt-gray-500);
    font-size: 0.8125rem;
    margin-top: var(--tobalt-space-sm);
}

.tobalt-file-input {
    display: none;
}

.tobalt-file-list {
    margin-top: var(--tobalt-space-md);
}

.tobalt-file-item {
    display: flex;
    align-items: center;
    gap: var(--tobalt-space-md);
    padding: var(--tobalt-space-md);
    background: var(--tobalt-gray-50);
    border-radius: var(--tobalt-radius);
    margin-bottom: var(--tobalt-space-sm);
    border: 1px solid var(--tobalt-gray-200);
}

.tobalt-file-icon {
    font-size: 1.5rem;
}

.tobalt-file-info {
    flex: 1;
    overflow: hidden;
}

.tobalt-file-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--tobalt-gray-800);
}

.tobalt-file-meta {
    font-size: 0.8125rem;
    color: var(--tobalt-gray-500);
}

.tobalt-file-actions {
    display: flex;
    gap: var(--tobalt-space-sm);
}

.tobalt-file-download,
.tobalt-file-delete {
    padding: 6px 12px;
    border: none;
    border-radius: var(--tobalt-radius-sm);
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: var(--tobalt-transition-fast);
}

.tobalt-file-download {
    background: var(--tobalt-primary);
    color: var(--tobalt-white);
    text-decoration: none;
}

.tobalt-file-download:hover {
    background: var(--tobalt-primary-hover);
}

.tobalt-file-delete {
    background: var(--tobalt-error);
    color: var(--tobalt-white);
}

.tobalt-file-delete:hover {
    background: #b91c1c;
}

.tobalt-file-progress {
    height: 4px;
    background: var(--tobalt-gray-200);
    border-radius: var(--tobalt-radius-full);
    margin-top: var(--tobalt-space-sm);
    overflow: hidden;
}

.tobalt-file-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--tobalt-primary), var(--tobalt-accent));
    width: 0;
    transition: width 0.3s;
}

/* ==========================================================================
   16. Favorites & Report
   ========================================================================== */
.tobalt-favorite-btn,
.tobalt-report-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--tobalt-gray-400);
    transition: var(--tobalt-transition);
    padding: var(--tobalt-space-xs);
    line-height: 1;
    border-radius: var(--tobalt-radius-full);
}

.tobalt-favorite-btn:hover {
    color: var(--tobalt-warning);
    background: var(--tobalt-warning-light);
    transform: scale(1.1);
}

.tobalt-favorite-btn.favorited {
    color: var(--tobalt-warning);
}

.tobalt-report-btn:hover {
    color: var(--tobalt-error);
    background: var(--tobalt-error-light);
}

/* ==========================================================================
   17. Saved Searches
   ========================================================================== */
.tobalt-saved-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tobalt-saved-list-item {
    display: flex;
    align-items: center;
    gap: var(--tobalt-space-md);
    padding: var(--tobalt-space-md);
    border: 1px solid var(--tobalt-gray-200);
    border-radius: var(--tobalt-radius);
    margin-bottom: var(--tobalt-space-sm);
    transition: var(--tobalt-transition);
}

.tobalt-saved-list-item:hover {
    background: var(--tobalt-gray-50);
    border-color: var(--tobalt-primary-light);
}

.tobalt-saved-list-info {
    flex: 1;
}

.tobalt-saved-list-name {
    font-weight: 600;
    text-decoration: none;
    color: var(--tobalt-gray-800);
    transition: var(--tobalt-transition-fast);
}

.tobalt-saved-list-name:hover {
    color: var(--tobalt-primary);
}

.tobalt-saved-list-alert {
    font-size: 0.75rem;
    color: var(--tobalt-success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tobalt-saved-list-actions {
    display: flex;
    gap: var(--tobalt-space-sm);
}

.tobalt-saved-list-delete {
    background: none;
    border: none;
    color: var(--tobalt-gray-400);
    cursor: pointer;
    padding: var(--tobalt-space-xs);
    border-radius: var(--tobalt-radius-full);
    transition: var(--tobalt-transition-fast);
}

.tobalt-saved-list-delete:hover {
    color: var(--tobalt-error);
    background: var(--tobalt-error-light);
}

.tobalt-saved-list-empty {
    color: var(--tobalt-gray-500);
    text-align: center;
    padding: var(--tobalt-space-xl);
}

/* ==========================================================================
   18. Portfolio
   ========================================================================== */
.tobalt-portfolio-header {
    display: flex;
    gap: var(--tobalt-space-lg);
    align-items: center;
    margin-bottom: var(--tobalt-space-2xl);
    padding: var(--tobalt-space-xl);
    background: var(--tobalt-glass-bg);
    backdrop-filter: var(--tobalt-glass-blur);
    border-radius: var(--tobalt-radius-xl);
    border: 1px solid var(--tobalt-glass-border);
}

.tobalt-portfolio-header img {
    border-radius: var(--tobalt-radius-full);
    box-shadow: var(--tobalt-shadow-lg);
}

.tobalt-portfolio-info h2 {
    margin: 0 0 var(--tobalt-space-sm);
    font-size: 1.5rem;
}

.tobalt-rating {
    display: flex;
    align-items: center;
    gap: var(--tobalt-space-sm);
}

.tobalt-rating-stars span {
    color: var(--tobalt-gray-300);
    font-size: 1.25rem;
}

.tobalt-rating-stars span.filled {
    color: #fbbf24;
}

.tobalt-rating-value {
    font-weight: 700;
    color: var(--tobalt-gray-900);
}

.tobalt-rating-count {
    color: var(--tobalt-gray-500);
    font-size: 0.875rem;
}

.tobalt-review {
    background: var(--tobalt-gray-50);
    border-radius: var(--tobalt-radius);
    padding: var(--tobalt-space-md);
    margin-bottom: var(--tobalt-space-md);
    border: 1px solid var(--tobalt-gray-200);
}

.tobalt-review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--tobalt-space-sm);
}

.tobalt-review-stars span {
    color: var(--tobalt-gray-300);
    font-size: 0.875rem;
}

.tobalt-review-stars span.filled {
    color: #fbbf24;
}

.tobalt-review-date {
    color: var(--tobalt-gray-500);
    font-size: 0.8125rem;
}

.tobalt-review-comment {
    margin: 0 0 var(--tobalt-space-sm);
    color: var(--tobalt-gray-700);
}

.tobalt-review-task {
    color: var(--tobalt-gray-500);
    font-size: 0.875rem;
}

/* ==========================================================================
   19. Login Form
   ========================================================================== */
.tobalt-login {
    max-width: 420px;
    margin: var(--tobalt-space-2xl) auto;
    padding: var(--tobalt-space-xl);
    background: var(--tobalt-white);
    border-radius: var(--tobalt-radius-xl);
    box-shadow: var(--tobalt-shadow-lg);
}

.tobalt-login h2 {
    text-align: center;
    margin-bottom: var(--tobalt-space-xl);
    font-size: 1.5rem;
}

.tobalt-login-links {
    text-align: center;
    margin-top: var(--tobalt-space-md);
    padding-top: var(--tobalt-space-md);
    border-top: 1px solid var(--tobalt-gray-100);
}

.tobalt-login-links a {
    color: var(--tobalt-primary);
    text-decoration: none;
    font-weight: 500;
}

.tobalt-login-links a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   20. Empty States
   ========================================================================== */
.tobalt-no-results,
.tobalt-empty-state {
    text-align: center;
    padding: var(--tobalt-space-3xl);
    color: var(--tobalt-gray-500);
}

.tobalt-empty-icon {
    font-size: 4rem;
    margin-bottom: var(--tobalt-space-md);
    display: block;
    opacity: 0.5;
}

.tobalt-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tobalt-gray-700);
    margin: 0 0 var(--tobalt-space-sm);
}

.tobalt-empty-text {
    margin: 0 0 var(--tobalt-space-lg);
}

/* ==========================================================================
   21. Analytics Charts
   ========================================================================== */
.tobalt-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--tobalt-space-lg);
    margin-top: var(--tobalt-space-lg);
}

.tobalt-chart-card {
    background: var(--tobalt-white);
    border-radius: var(--tobalt-radius-lg);
    padding: var(--tobalt-space-lg);
    box-shadow: var(--tobalt-shadow);
}

.tobalt-chart-card h4 {
    margin: 0 0 var(--tobalt-space-md);
    font-size: 1rem;
    font-weight: 600;
    color: var(--tobalt-gray-800);
}

.tobalt-chart-card canvas {
    max-height: 250px;
}

/* ==========================================================================
   22. Messages (Compact File Upload)
   ========================================================================== */
.tobalt-file-upload-compact {
    display: inline-block;
}

.tobalt-file-dropzone-compact {
    border: none;
    padding: 0;
    background: none;
    display: inline-block;
    cursor: pointer;
}

.tobalt-file-attach-btn {
    font-size: 1.5rem;
    opacity: 0.6;
    transition: var(--tobalt-transition);
}

.tobalt-file-attach-btn:hover {
    opacity: 1;
}

.tobalt-file-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tobalt-space-sm);
    margin-top: var(--tobalt-space-sm);
}

.tobalt-file-list-inline .tobalt-file-item {
    padding: 6px 10px;
    font-size: 0.8125rem;
}

.tobalt-message-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--tobalt-space-sm);
}

.tobalt-message-attachments {
    display: flex;
    align-items: center;
    gap: var(--tobalt-space-sm);
}

.tobalt-message-files {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: var(--tobalt-space-sm);
}

.tobalt-message-file {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--tobalt-radius-sm);
    font-size: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: var(--tobalt-transition-fast);
}

.tobalt-message-other .tobalt-message-file {
    background: rgba(0, 0, 0, 0.1);
}

.tobalt-message-file:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   23. Attachments Section
   ========================================================================== */
.tobalt-attachments-section {
    margin-top: var(--tobalt-space-xl);
    padding-top: var(--tobalt-space-xl);
    border-top: 1px solid var(--tobalt-gray-200);
}

.tobalt-attachments-section h4 {
    margin: 0 0 var(--tobalt-space-md);
    font-size: 1rem;
    font-weight: 600;
}

/* ==========================================================================
   24. Animations & Transitions
   ========================================================================== */
@keyframes tobalt-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.tobalt-loading {
    background: linear-gradient(90deg, var(--tobalt-gray-100) 25%, var(--tobalt-gray-200) 50%, var(--tobalt-gray-100) 75%);
    background-size: 200% 100%;
    animation: tobalt-shimmer 1.5s infinite;
    border-radius: var(--tobalt-radius);
}

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

.tobalt-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--tobalt-gray-200);
    border-top-color: var(--tobalt-primary);
    border-radius: var(--tobalt-radius-full);
    animation: tobalt-spin 0.8s linear infinite;
}

/* Focus Visible for Accessibility */
.tobalt-btn:focus-visible,
.tobalt-input:focus-visible,
.tobalt-select:focus-visible,
.tobalt-textarea:focus-visible,
a:focus-visible,
.tobalt-toggle-filters:focus-visible,
.tobalt-favorite-btn:focus-visible,
.tobalt-report-btn:focus-visible,
.tobalt-dashboard-nav a:focus-visible,
.tobalt-tag:focus-visible,
.tobalt-saved-list-name:focus-visible,
.tobalt-task-title a:focus-visible,
.tobalt-file-download:focus-visible,
.tobalt-file-delete:focus-visible {
    outline: 2px solid var(--tobalt-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   25. Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .tobalt-form-row {
        grid-template-columns: 1fr;
    }

    .tobalt-tasks-grid {
        grid-template-columns: 1fr;
    }

    .tobalt-hero {
        padding: var(--tobalt-space-2xl) var(--tobalt-space-md);
    }

    .tobalt-hero-actions {
        flex-direction: column;
    }

    .tobalt-hero-actions .tobalt-btn {
        width: 100%;
    }

    .tobalt-process-grid {
        grid-template-columns: 1fr;
    }

    .tobalt-search-main {
        flex-direction: column;
    }

    .tobalt-dashboard-nav {
        justify-content: flex-start;
        padding: var(--tobalt-space-xs);
    }

    .tobalt-dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .tobalt-task-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--tobalt-space-md);
    }

    .tobalt-portfolio-header {
        flex-direction: column;
        text-align: center;
    }

    .tobalt-modal-content {
        padding: var(--tobalt-space-md);
        margin: var(--tobalt-space-md);
    }

    .tobalt-analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --tobalt-space-lg: 16px;
        --tobalt-space-xl: 24px;
    }

    .tobalt-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .tobalt-stat-value {
        font-size: 2rem;
    }

    .tobalt-btn {
        width: 100%;
        justify-content: center;
    }

    .tobalt-btn-small {
        width: auto;
    }
}

/* ==========================================================================
   26. Landing Page
   ========================================================================== */
.tobalt-landing-stats {
    padding: var(--tobalt-space-xl) 0;
    background: var(--tobalt-white);
    border-top: 1px solid var(--tobalt-gray-100);
    border-bottom: 1px solid var(--tobalt-gray-100);
}

.tobalt-stats-row {
    display: flex;
    justify-content: center;
    gap: var(--tobalt-space-3xl);
    flex-wrap: wrap;
}

.tobalt-landing-stat {
    text-align: center;
}

.tobalt-landing-stat-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--tobalt-primary) 0%, var(--tobalt-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.tobalt-landing-stat-label {
    display: block;
    font-size: 0.9375rem;
    color: var(--tobalt-gray-600);
    margin-top: var(--tobalt-space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tobalt-process-header {
    text-align: center;
    margin-bottom: var(--tobalt-space-2xl);
}

.tobalt-process-header .tobalt-process-title {
    margin-top: var(--tobalt-space-md);
    margin-bottom: var(--tobalt-space-sm);
}

.tobalt-process-cta {
    text-align: center;
    margin-top: var(--tobalt-space-2xl);
}

.tobalt-process-institution {
    background: var(--tobalt-gray-50);
}

/* Features Section */
.tobalt-features {
    padding: var(--tobalt-space-3xl) 0;
}

.tobalt-features-header {
    text-align: center;
    margin-bottom: var(--tobalt-space-2xl);
}

.tobalt-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--tobalt-space-lg);
}

.tobalt-feature-card {
    padding: var(--tobalt-space-xl);
    text-align: center;
    transition: var(--tobalt-transition);
}

.tobalt-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tobalt-shadow-lg);
}

.tobalt-feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--tobalt-space-md);
}

.tobalt-feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--tobalt-gray-900);
    margin: 0 0 var(--tobalt-space-sm);
}

.tobalt-feature-card p {
    font-size: 0.9375rem;
    color: var(--tobalt-gray-600);
    margin: 0;
    line-height: 1.6;
}

/* CTA Section */
.tobalt-cta {
    padding: var(--tobalt-space-3xl) 0;
    background: linear-gradient(135deg, var(--tobalt-primary-light) 0%, var(--tobalt-accent-light) 100%);
}

.tobalt-cta-content {
    text-align: center;
    padding: var(--tobalt-space-3xl);
    max-width: 700px;
    margin: 0 auto;
}

.tobalt-cta-content h2 {
    margin: 0 0 var(--tobalt-space-md);
}

.tobalt-cta-content p {
    margin: 0 0 var(--tobalt-space-xl);
}

.tobalt-cta-actions {
    display: flex;
    gap: var(--tobalt-space-md);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .tobalt-stats-row {
        gap: var(--tobalt-space-xl);
    }

    .tobalt-landing-stat-value {
        font-size: 2.5rem;
    }

    .tobalt-features-grid {
        grid-template-columns: 1fr;
    }

    .tobalt-cta-content {
        padding: var(--tobalt-space-xl);
    }

    .tobalt-cta-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   27. Task Templates
   ========================================================================== */
.tobalt-template-selector {
    margin-bottom: var(--tobalt-space-xl);
    padding: var(--tobalt-space-lg);
    background: linear-gradient(135deg, var(--tobalt-primary-light) 0%, var(--tobalt-accent-light) 50%);
    border-radius: var(--tobalt-radius-lg);
    border: 1px solid var(--tobalt-primary-100);
}

.tobalt-template-selector label {
    display: block;
    font-weight: 600;
    color: var(--tobalt-primary-700);
    margin-bottom: var(--tobalt-space-sm);
}

.tobalt-template-row {
    display: flex;
    gap: var(--tobalt-space-sm);
    align-items: center;
}

.tobalt-template-row .tobalt-select {
    flex: 1;
}

/* Modal Styles */
.tobalt-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--tobalt-space-lg);
}

.tobalt-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.tobalt-modal-content {
    position: relative;
    background: white;
    border-radius: var(--tobalt-radius-xl);
    box-shadow: var(--tobalt-shadow-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    animation: tobalt-modal-appear 0.2s ease-out;
}

@keyframes tobalt-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tobalt-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--tobalt-space-lg);
    border-bottom: 1px solid var(--tobalt-gray-200);
}

.tobalt-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--tobalt-gray-900);
}

.tobalt-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    color: var(--tobalt-gray-500);
    cursor: pointer;
    border-radius: var(--tobalt-radius-md);
    transition: var(--tobalt-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tobalt-modal-close:hover {
    background: var(--tobalt-gray-100);
    color: var(--tobalt-gray-700);
}

.tobalt-modal-body {
    padding: var(--tobalt-space-lg);
}

.tobalt-modal-footer {
    display: flex;
    gap: var(--tobalt-space-sm);
    justify-content: flex-end;
    padding: var(--tobalt-space-lg);
    border-top: 1px solid var(--tobalt-gray-200);
    background: var(--tobalt-gray-50);
}

/* Checkbox label styling */
.tobalt-checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--tobalt-space-sm);
    cursor: pointer;
    font-weight: normal;
}

.tobalt-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--tobalt-primary);
}

/* Outline button variant */
.tobalt-btn-outline {
    background: transparent;
    border: 2px solid var(--tobalt-gray-300);
    color: var(--tobalt-gray-700);
}

.tobalt-btn-outline:hover {
    background: var(--tobalt-gray-50);
    border-color: var(--tobalt-gray-400);
}

@media (max-width: 640px) {
    .tobalt-template-row {
        flex-direction: column;
    }

    .tobalt-template-row .tobalt-select,
    .tobalt-template-row .tobalt-btn {
        width: 100%;
    }

    .tobalt-modal-footer {
        flex-direction: column-reverse;
    }

    .tobalt-modal-footer .tobalt-btn {
        width: 100%;
    }
}

/* ==========================================================================
   28. Skill Match Badges
   ========================================================================== */
.tobalt-match-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: help;
}

.tobalt-match-icon {
    font-size: 0.75rem;
}

.tobalt-match-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
}

.tobalt-match-primary {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.tobalt-match-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.tobalt-match-gray {
    background: var(--tobalt-gray-100);
    color: var(--tobalt-gray-600);
}

/* Recommended Tasks Section */
.tobalt-recommended-tasks {
    margin-bottom: var(--tobalt-space-xl);
    padding: var(--tobalt-space-lg);
    background: linear-gradient(135deg, var(--tobalt-primary-light) 0%, var(--tobalt-accent-light) 100%);
    border-radius: var(--tobalt-radius-lg);
}

.tobalt-recommended-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--tobalt-space-md);
}

.tobalt-recommended-header h3 {
    margin: 0;
    color: var(--tobalt-primary-700);
    font-size: 1.125rem;
}

.tobalt-recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--tobalt-space-md);
}

.tobalt-recommended-card {
    background: white;
    border-radius: var(--tobalt-radius-md);
    padding: var(--tobalt-space-md);
    box-shadow: var(--tobalt-shadow-sm);
    transition: var(--tobalt-transition);
}

.tobalt-recommended-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tobalt-shadow-md);
}

.tobalt-recommended-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 var(--tobalt-space-xs);
}

.tobalt-recommended-title a {
    color: var(--tobalt-gray-900);
    text-decoration: none;
}

.tobalt-recommended-title a:hover {
    color: var(--tobalt-primary);
}

.tobalt-recommended-meta {
    display: flex;
    align-items: center;
    gap: var(--tobalt-space-sm);
    flex-wrap: wrap;
}

/* Matching Freelancers Panel */
.tobalt-matching-freelancers {
    margin-top: var(--tobalt-space-xl);
    padding: var(--tobalt-space-lg);
    background: var(--tobalt-gray-50);
    border-radius: var(--tobalt-radius-lg);
}

.tobalt-matching-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--tobalt-space-lg);
}

.tobalt-matching-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.tobalt-freelancer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--tobalt-space-md);
}

.tobalt-freelancer-card {
    display: flex;
    gap: var(--tobalt-space-md);
    padding: var(--tobalt-space-md);
    background: white;
    border-radius: var(--tobalt-radius-md);
    box-shadow: var(--tobalt-shadow-sm);
    transition: var(--tobalt-transition);
}

.tobalt-freelancer-card:hover {
    box-shadow: var(--tobalt-shadow-md);
}

.tobalt-freelancer-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.tobalt-freelancer-info {
    flex: 1;
    min-width: 0;
}

.tobalt-freelancer-name {
    font-weight: 600;
    color: var(--tobalt-gray-900);
    margin: 0 0 4px;
}

.tobalt-freelancer-name a {
    color: inherit;
    text-decoration: none;
}

.tobalt-freelancer-name a:hover {
    color: var(--tobalt-primary);
}

.tobalt-freelancer-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--tobalt-warning);
}

.tobalt-freelancer-availability {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}

.tobalt-availability-available {
    background: #dcfce7;
    color: #166534;
}

.tobalt-availability-busy {
    background: #fef3c7;
    color: #92400e;
}

/* ==========================================================================
   29. Print Styles
   ========================================================================== */
@media print {
    .tobalt-page-wrapper::before,
    .tobalt-page-wrapper::after {
        display: none;
    }

    .tobalt-btn,
    .tobalt-dashboard-nav,
    .tobalt-search-form {
        display: none;
    }

    .tobalt-card,
    .tobalt-task-card {
        box-shadow: none;
        border: 1px solid var(--tobalt-gray-300);
    }
}
