:root {
    /* Color Palette - Modern Professional */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff6ff;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    
    /* Neutrals */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --input-bg: #f1f5f9;
}

/* Base resets & Typography */
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', 'Noto Sans Lao', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Modern Card */
.tvs-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.tvs-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Modern Input */
.tvs-input {
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-card);
    transition: all 0.2s;
    font-size: 0.95rem;
}

.tvs-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Auth Specific Input - Match button design */
.tvs-input-auth {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.tvs-input-auth::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.tvs-input-auth:focus {
    background: var(--primary-hover) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

/* Modern Button */
.tvs-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

.tvs-btn-primary {
    background-color: var(--primary);
    color: white;
}

.tvs-btn-primary:hover {
    background-color: var(--primary-hover);
    transform: scale(1.02);
}

.tvs-btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
}

.tvs-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Modern Table */
.tvs-table-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: white;
}

.tvs-table {
    width: 100%;
    border-collapse: collapse;
}

.tvs-table th {
    background-color: var(--bg-main);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 20px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.tvs-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.tvs-table tr:last-child td {
    border-bottom: none;
}

.tvs-table tr:hover {
    background-color: #f8fafc;
}

/* Badge Styles */
.tvs-badge {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tvs-badge-success { background: #d1fae5; color: #065f46; }
.tvs-badge-warning { background: #fef3c7; color: #92400e; }
.tvs-badge-danger { background: #fee2e2; color: #991b1b; }
.tvs-badge-info { background: #e0f2fe; color: #075985; }

/* Responsive adjustments */
@media (max-width: 640px) {
    .tvs-card { border-radius: 12px; }
    .tvs-btn { width: 100%; }
}

/* Dashboard Specifics */
.stat-card-gradient {
    position: relative;
    overflow: hidden;
}

.stat-card-gradient::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
