/* Sidebar */
.sidebar {
    transition: transform 0.3s ease-in-out;
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Drag and drop zone */
.drop-zone {
    border: 2px dashed #d1d5db;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
}
.drop-zone.drag-over {
    border-color: #4f46e5;
    background-color: #eef2ff;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.toast {
    animation: slideIn 0.3s ease forwards;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background-color: white;
    min-width: 300px;
}
.toast.fadeOut {
    animation: slideOut 0.3s ease forwards;
}
.toast-success { border-left: 4px solid #10b981; }
.toast-error { border-left: 4px solid #ef4444; }
.toast-warning { border-left: 4px solid #f59e0b; }
.toast-info { border-left: 4px solid #3b82f6; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Progress bar animation */
.progress-bar {
    transition: width 0.5s ease;
}
.progress-bar-animated {
    background-image: linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    animation: progress-stripes 1s linear infinite;
}
@keyframes progress-stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

/* Loading spinner */
.spinner {
    animation: spin 1s linear infinite;
    display: inline-block;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Status indicators */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    display: inline-block;
    margin-right: 0.25rem;
}
.status-dot.active { background-color: #10b981; }
.status-dot.restricted { background-color: #f59e0b; }
.status-dot.removed { background-color: #ef4444; }
.status-dot.inactive { background-color: #9ca3af; }

/* Modal overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Telegram-style message preview */
.telegram-preview {
    background: linear-gradient(to bottom right, #eff6ff, #e0e7ff);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    max-width: 400px;
    padding: 1rem;
}
.telegram-preview .message-bubble {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 0.75rem;
    word-break: break-word;
}
.telegram-preview .inline-button {
    text-align: center;
    color: #3b82f6;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

/* Responsive table */
@media (max-width: 768px) {
    .responsive-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Sidebar mobile */
.sidebar-open { transform: translateX(0); }
.sidebar-closed { transform: translateX(-100%); }
@media (min-width: 1024px) {
    .sidebar-closed { transform: translateX(0); }
}

/* Card hover effect */
.card-hover {
    transition: all 0.2s;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Step indicator for broadcast wizard */
.step-indicator {
    display: flex;
    align-items: center;
}
.step-indicator .step {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.step-indicator .step.active {
    background-color: #4f46e5;
    color: white;
}
.step-indicator .step.completed {
    background-color: #10b981;
    color: white;
}
.step-indicator .step.inactive {
    background-color: #e5e7eb;
    color: #6b7280;
}
.step-connector {
    height: 0.25rem;
    flex-grow: 1;
}
.step-connector.active {
    background-color: #4f46e5;
}
.step-connector.inactive {
    background-color: #e5e7eb;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.empty-state i {
    font-size: 2.25rem;
    line-height: 2.5rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}
