/**
 * TG频道同步系统 - 全局样式表
 * 补充TailwindCSS的自定义样式
 */

@layer base {
    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        background-color: #f3f4f6;
    }
}

@layer components {
    .sidebar-link {
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
        color: #4b5563;
        border-radius: 0.5rem;
        transition: all 0.2s;
    }
    .sidebar-link:hover {
        background-color: #eff6ff;
        color: #2563eb;
    }
    .sidebar-link.active {
        background-color: #eff6ff;
        color: #2563eb;
        font-weight: 500;
        border-right: 4px solid #2563eb;
    }

    .card {
        background-color: white;
        border-radius: 0.75rem;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        border: 1px solid #f3f4f6;
        padding: 1.5rem;
    }

    .btn-primary {
        background-color: #2563eb;
        color: white;
        padding: 0.625rem 1.25rem;
        border-radius: 0.5rem;
        font-weight: 500;
        transition: all 0.2s;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }
    .btn-primary:hover {
        background-color: #1d4ed8;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .btn-secondary {
        background-color: white;
        border: 1px solid #d1d5db;
        color: #374151;
        padding: 0.625rem 1.25rem;
        border-radius: 0.5rem;
        font-weight: 500;
        transition: all 0.2s;
    }
    .btn-secondary:hover {
        background-color: #f9fafb;
    }

    .btn-danger {
        background-color: #ef4444;
        color: white;
        padding: 0.625rem 1.25rem;
        border-radius: 0.5rem;
        font-weight: 500;
        transition: all 0.2s;
    }
    .btn-danger:hover {
        background-color: #dc2626;
    }

    .btn-success {
        background-color: #22c55e;
        color: white;
        padding: 0.625rem 1.25rem;
        border-radius: 0.5rem;
        font-weight: 500;
        transition: all 0.2s;
    }
    .btn-success:hover {
        background-color: #16a34a;
    }

    .input-field {
        width: 100%;
        padding: 0.625rem 1rem;
        border: 1px solid #d1d5db;
        border-radius: 0.5rem;
        outline: none;
        transition: all 0.2s;
    }
    .input-field:focus {
        border-color: transparent;
        box-shadow: 0 0 0 2px #3b82f6;
    }

    .status-badge {
        padding: 0.25rem 0.75rem;
        border-radius: 9999px;
        font-size: 0.75rem;
        font-weight: 500;
    }
    .status-success {
        background-color: #dcfce7;
        color: #15803d;
    }
    .status-pending {
        background-color: #fef9c3;
        color: #a16207;
    }
    .status-failed {
        background-color: #fee2e2;
        color: #b91c1c;
    }
    .status-inactive {
        background-color: #f3f4f6;
        color: #4b5563;
    }

    .platform-icon {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }
    .platform-instagram {
        background: linear-gradient(to bottom right, #a855f7, #ec4899, #fb923c);
    }
    .platform-twitter {
        background-color: #000000;
    }
    .platform-facebook {
        background-color: #1d4ed8;
    }
}

/* 响应式表格 */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 文本截断 */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
