:root {
    --primary: #6366f1; 
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --secondary: #ec4899;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 16px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Vue Transitions --- */
.list-enter-active,
.list-leave-active {
  transition: all 0.4s ease;
}
.list-enter-from,
.list-leave-to {
  opacity: 0;
  transform: translateY(20px);
}

/* --- Glassmorphism Sidebar --- */
.rt-sidebar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Likęs kodas... */
}

/* --- Search Input --- */
.rt-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 15px;
}

.rt-search-wrapper {
    position: relative;
    flex-grow: 1;
    margin-right: 20px;
}

.rt-search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.rt-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.rt-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    pointer-events: none;
}

#rt-app {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg);
    padding: 40px;
    min-height: 80vh;
}

.rt-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Header */
.rt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.rt-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.rt-header small {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 10px;
}

.rt-reset-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.rt-reset-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* Filters Sidebar */
.rt-sidebar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Calendar Specifics */
.rt-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rt-month-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.rt-nav-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.rt-nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.rt-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.rt-weekday {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rt-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    position: relative;
    font-weight: 500;
}

.rt-day:hover { 
    background: var(--bg); 
    color: var(--primary);
}

.rt-day.has-event::after {
    content: '';
    width: 6px; 
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    position: absolute; 
    bottom: 6px;
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.6); /* Glow effect */
}

.rt-day.selected {
    background: var(--primary);
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.rt-day.empty {
    cursor: default;
    opacity: 0.3;
}

.rt-day.empty:hover {
    background: transparent;
    color: inherit;
}

/* Filter Controls */
.rt-filter-group {
    margin-bottom: 20px;
}

.rt-filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.rt-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
}

.rt-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Event Cards */
.rt-card {
    display: flex;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.rt-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.rt-card-img {
    width: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rt-card:hover .rt-card-img {
    transform: scale(1.05);
}

.rt-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rt-badge {
    background: #e0e7ff;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 12px;
}

.rt-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--text);
    line-height: 1.3;
}

.rt-meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.rt-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
}

.rt-price {
    font-weight: 700;
    color: var(--text);
    font-size: 1.1rem;
}

.rt-price.free { 
    color: #10b981; 
}

.rt-btn, .rt-reset-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.rt-btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rt-reset-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.rt-btn:hover, .rt-reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -1px rgba(79, 70, 229, 0.3);
    filter: brightness(1.1);
}

/* Loading State */
.rt-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.rt-skeleton {
    background: linear-gradient(110deg, #f0f0f0 8%, #f8f8f8 18%, #f0f0f0 33%);
    background-size: 200% 100%;
    animation: shine 1.5s linear infinite;
    border-radius: 8px;
}

@keyframes shine {
    to { background-position-x: -200%; }
}

.rt-skeleton-card {
    display: flex;
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.rt-skeleton-img {
    width: 280px;
    height: 200px;
}

.rt-skeleton-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rt-skeleton-line {
    height: 20px;
    border-radius: 4px;
}

.rt-skeleton-line.short { width: 60%; }
.rt-skeleton-line.tall { height: 32px; width: 80%; }

/* Empty State */
.rt-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.rt-empty h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text);
}

/* EMPTY STATE SVG (New) */
.rt-empty-illustration {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Mobile */
@media (max-width: 768px) {
    #rt-app { padding: 20px; }
    .rt-grid { grid-template-columns: 1fr; }
    .rt-sidebar { 
        order: -1; 
        position: relative; 
        z-index: 10;
    }
    .rt-card { flex-direction: column; }
    .rt-card-img { width: 100%; height: 200px; }
    .rt-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .rt-header h2 { font-size: 1.5rem; }
    .rt-header-actions { 
        flex-direction: column; 
        gap: 10px; 
    }
    .rt-search-wrapper { 
        margin-right: 0; 
        width: 100%; 
    }
}

/* NEW: Icon Buttons */
.rt-icon-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 16px;
}

.rt-icon-btn:hover {
    background: var(--primary-hover);
    color: white;
    transform: scale(1.1);
}

/* NEW: Actions Row */
.rt-actions-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* DARK MODE */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f172a;
        --card-bg: #1e293b;
        --text: #f8fafc;
        --text-muted: #94a3b8;
        --border: #334155;
        --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    }
    
    .rt-sidebar {
        background: rgba(30, 41, 59, 0.85);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .rt-day:hover { background: #334155; }
    .rt-select { background: #0f172a; color: #fff; }
    .rt-search-input { background: #1e293b; color: #fff; }
    .rt-card { background: #1e293b; border-color: #334155; }
}
