/* List Pages Styling */

.main-content {
    padding-top: 2rem;
    min-height: calc(100vh - 30vh);
    background: var(--light);
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.content h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.content > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: var(--dark);
}

/* Filters Section */
.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark);
}

.form-group select,
.form-group input {
    padding: 0.75rem;
    border: 1px solid var(--primary);
    border-radius: 4px;
    font-size: 1rem;
    background: white;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(var(--secondary-rgb), 0.2);
}

/* Activity List Table */
.activity-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--dark);
}

.content-table th,
.content-table td {
    padding: 1rem;
    border: 1px solid var(--dark);
    text-align: left;
    text-transform: capitalize;
}

.content-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    text-align: center;
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif;
    text-transform: capitalize;
}

.content-table td {
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif;
    text-align: left;
}

.content-table td:first-child {
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif;
    text-align: left;
}

.content-table td.difficulty {
    text-align: center;
    color: var(--primary);
}

.content-table tr:last-child td {
    border-bottom: 1px solid var(--dark);
}

/* Topic Cell */
.topic-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topic-cell i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Links */
.preview-link,
.download-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.preview-link:hover,
.download-link:hover {
    color: var(--secondary);
}

.download-link:hover i {
    color: var(--secondary);
}

.preview-link i {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.download-link i {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.preview-link span,
.download-link span {
    font-size: 0.9rem;
    color: var(--dark);
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif;
    text-transform: capitalize;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--dark);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content {
        padding: 0 1rem 1rem;
    }

    .filters {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .content-table th,
    .content-table td {
        padding: 0.75rem;
    }

    .content-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .topic-cell {
        min-width: 150px;
    }
}

/* Print Styles */
@media print {
    .filters {
        display: none;
    }

    .content-table {
        border: none;
    }

    .content-table th,
    .content-table td {
        border: 1px solid #000;
    }

    .preview-link,
    .download-link {
        color: #000;
    }

    .preview-link i,
    .download-link i {
        display: none;
    }
}

/* Modern Rounded Table Style */
.modern-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    border-radius: 0.5rem !important;
    overflow: hidden !important;
    box-shadow: 0 0 0 1px var(--border-color) !important;
    background: white !important;
    margin: 1rem 0 !important;
}

.modern-table thead {
    background-color: var(--primary) !important;
    color: white !important;
}

.modern-table th {
    padding: 1rem !important;
    font-weight: 600 !important;
    text-align: left !important;
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif !important;
    text-transform: capitalize !important;
    border: none !important;
}

.modern-table td {
    padding: 1rem !important;
    border-top: 1px solid var(--border-color) !important;
    font-family: "Rockwell", "Rockwell Nova", "Roboto Slab", serif !important;
    border-left: none !important;
    border-right: none !important;
}

.modern-table tbody tr:hover {
    background-color: var(--hover-color) !important;
}

.modern-table th:first-child {
    border-top-left-radius: 0.5rem !important;
}

.modern-table th:last-child {
    border-top-right-radius: 0.5rem !important;
}

.modern-table tr:last-child td:first-child {
    border-bottom-left-radius: 0.5rem !important;
}

.modern-table tr:last-child td:last-child {
    border-bottom-right-radius: 0.5rem !important;
}

/* Modern Table Action Columns */
.modern-table .action-column {
    text-align: center !important;
}

.modern-table .action-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
    color: var(--primary) !important;
    transition: color 0.3s ease !important;
}

.modern-table .action-link:hover {
    color: var(--secondary) !important;
}

.modern-table .action-link i {
    font-size: 1.5em !important;
}

.modern-table .action-link.preview i {
    color: var(--secondary) !important;
}

.modern-table .action-link span {
    font-size: 0.9em !important;
    color: var(--dark) !important;
}

/* Modern Table Topic Cell */
.modern-table .topic-cell {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.modern-table .topic-cell i {
    color: var(--primary) !important;
    font-size: 1.2rem !important;
}

/* Modern Table Difficulty */
.modern-table .difficulty {
    text-align: center !important;
    color: var(--primary) !important;
}

/* Modern Table Responsive */
@media (max-width: 768px) {
    .modern-table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 0.75rem !important;
    }
    
    .modern-table .topic-cell {
        min-width: 150px !important;
    }
} 