.tcc-dashboard-panel {
    direction: rtl;
    text-align: right;
}

.tcc-dash-title {
    margin-bottom: 20px;
}

.tcc-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tcc-filter-search,
.tcc-filter-select {
    flex: 1;
    min-width: 180px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.tcc-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tcc-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-right: 5px solid #434829;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tcc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.tcc-card-header h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 10px;
}

.tcc-card-body p {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
}

.tcc-serial {
    font-family: monospace;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
}

.tcc-grade {
    font-weight: bold;
    color: #27ae60;
}

.tcc-card-footer {
    margin-top: 15px;
    text-align: center;
}

.tcc-card-footer a.tcc-force-download {
    width: 100%;
    display: block;
    box-sizing: border-box;
    text-decoration: none;
    background: #434829;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s, opacity 0.3s;
}

.tcc-card-footer a.tcc-force-download:hover {
    background: #363c22;
    color: #fff;
}

.tcc-no-results {
    margin-top: 15px;
}

/* موبایل: یک ستون و فیلترها زیر هم برای خوانایی بهتر */
@media screen and (max-width: 480px) {
    .tcc-cards-wrapper {
        grid-template-columns: 1fr;
    }

    .tcc-filters {
        flex-direction: column;
    }

    .tcc-filter-search,
    .tcc-filter-select {
        min-width: 100%;
    }
}
