/* Update slider styles */
.event-type-slider {
    right: -400px; /* Increased width */
    width: 400px;
    padding: 0; /* Remove padding to accommodate header */
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #2a2a2a;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
}

.event-type-slider.active {
    right: 0;
}

.slider-header {
    position: sticky;
    top: 0;
    z-index: 11;
    background: #363636;
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    flex-grow: 1;
}

.event-type-slider h4 {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    background: #363636;
    position: sticky;
    top: 0;
    z-index: 11;
}

.event-category {
    padding: 15px 20px;
    border-bottom: 1px solid #444;
}

.event-category:last-child {
    border-bottom: none;
}

.event-category-title {
    color: #0d6efd;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-type-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-type-item {
    background: #363636;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.event-type-item:hover {
    background: #404040;
    border-color: #0d6efd;
    transform: translateX(5px);
}

.event-type-item i {
    width: 20px;
    text-align: center;
    color: #0d6efd;
    font-size: 1.1em;
}

.canvas-editor-container .slider-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.back-button {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-button:hover {
    background: #404040;
    border-color: #0d6efd;
    color: #0d6efd;
}

.action-categories, .platforms-list, .action-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Slider animation */
.sliding-content {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.sliding-content.active {
    opacity: 1;
    transform: translateX(0);
}

/* Update category and platform items */
.action-category, .platform-item {
    background: #363636;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-category:hover, .platform-item:hover {
    background: #404040;
    border-color: #0d6efd;
    transform: translateX(5px);
}

.category-info, .platform-info {
    flex-grow: 1;
}

.category-name, .platform-name {
    color: #fff;
    font-weight: 500;
    margin-bottom: 4px;
}

.category-count, .platform-count {
    color: #aaa;
    font-size: 0.85em;
}

/* Update scrollbars */
.action-categories::-webkit-scrollbar,
.platforms-list::-webkit-scrollbar,
.action-list::-webkit-scrollbar {
    width: 8px;
}

.action-categories::-webkit-scrollbar-track,
.platforms-list::-webkit-scrollbar-track,
.action-list::-webkit-scrollbar-track {
    background: #2a2a2a;
}

.action-categories::-webkit-scrollbar-thumb,
.platforms-list::-webkit-scrollbar-thumb,
.action-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.event-type-slider::-webkit-scrollbar {
    width: 8px;
}

.event-type-slider::-webkit-scrollbar-track {
    background: #2a2a2a;
}

.event-type-slider::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.event-type-slider::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.workflow-table-wrapper {
    background: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 1rem;
}

.workflow-title {
    color: #fff;
    font-weight: 600;
}

.workflow-table {
    color: #fff;
}

.workflow-table thead th {
    font-weight: 600;
    border-bottom: 2px solid #444;
    padding: 1rem;
    color: #fff;
}

.workflow-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: #444;
}

.workflow-name-input {
    max-width: 300px;
    border: none;
    border-bottom: 2px solid #444;
    border-radius: 0;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    background: transparent;
    color: #fff;
}

.workflow-name-input:focus {
    border-color: #0d6efd;
    box-shadow: none;
    background: transparent;
    color: #fff;
}

.editor-header {
    background: #2a2a2a;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.no-workflows i {
    color: #444;
}

.workflow-table .action-btn {
    padding: 0.4rem 0.8rem;
    margin: 0 0.2rem;
    border-radius: 4px;
}

.workflow-table .btn-edit {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
}

.workflow-table .btn-delete {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.back-to-list {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* Workflow List Styles */
.workflow-header {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.workflow-filters {
    border-top: 1px solid #444;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-box input {
    padding-left: 2.5rem;
    background: #363636;
    border: 1px solid #444;
    color: #fff;
}

.search-box input:focus {
    background: #363636;
    border-color: #0d6efd;
    color: #fff;
    box-shadow: none;
}

.workflow-card {
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #444;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.workflow-card:hover {
    transform: translateY(-2px);
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.workflow-card .card-title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.workflow-card .card-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.workflow-card .card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #444;
}

.workflow-card .btn-icon {
    padding: 0.4rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #363636;
    border: 1px solid #444;
    color: #888;
    transition: all 0.2s ease;
}

.workflow-card .btn-icon:hover {
    background: #404040;
    color: #fff;
    border-color: #0d6efd;
}

.workflow-card .btn-edit:hover {
    color: #0d6efd;
}

.workflow-card .btn-delete:hover {
    color: #dc3545;
}

.empty-state {
    padding: 3rem;
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
    color: #444;
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #888;
    margin-bottom: 1.5rem;
}

/* Enhanced Publish Switch Styles */
.publish-switch-wrapper {
    background: #363636;
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid #444;
}

.publish-switch-wrapper .form-check {
    margin: 0;
    padding: 0;
    min-height: auto;
}


/* New Publish Switch Styles */
.publish-control {
    background: #2a2a2a;
    padding: 6px 16px;
    border-radius: 12px;
    border: 1px solid #444;
}

.publish-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 4px 0;
    gap: 12px;
}

.publish-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.switch-track {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background: #463E3E;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.switch-thumb {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc3545;
    transition: all 0.3s ease;
}

.status-text {
    font-size: 14px;
    font-weight: 500;
    color: #dc3545;
    transition: all 0.3s ease;
}

.status-text::after {
    content: 'inactive';
}

/* Publish Switch Active States */
.publish-switch input:checked + .switch-track {
    background: #198754;
}

.publish-switch input:checked ~ .switch-thumb {
    left: calc(100% - 110px);
}

.publish-switch input:checked ~ .status-indicator .status-dot {
    background: #198754;
}

.publish-switch input:checked ~ .status-indicator .status-text {
    color: #198754;
}

.publish-switch input:checked ~ .status-indicator .status-text::after {
    content: 'active';
}

/* Focus and Hover States */
.publish-switch:hover .switch-track {
    opacity: 0.8;
}

.publish-switch input:focus-visible + .switch-track {
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.25);
}

/* Remove old publish switch styles */
.publish-switch-wrapper,
.form-switch {
    display: none;
}
