/* Base styles - Mobile First */
body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f4f4f4;
}

.container {
    width: 100%;
    min-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-sizing: border-box;
}

.sidebar {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 1.5rem;
    width: 100%;
}

.filter-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.filter-section h3 {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.content {
    width: 100%;
}

/* Mobile First - List View */
.model-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.model-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.model-link {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #1e293b;
}

.model-content-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.model-thumbnail {
    display: none;
}

.model-info {
    flex: 1;
}

.model-title-link {
    text-decoration: none;
}

.model-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.375rem;
    line-height: 1.4;
    text-decoration: none;
}

.education-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.education-tag {
    display: inline-flex;
    align-items: center;
    background-color: #EEF2FF;
    color: #0E38AB;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    gap: 0.5rem;
    border: 1px solid #E0E7FF;
    transition: all 0.2s ease;
}

.education-tag:hover {
    background-color: #E0E7FF;
    border-color: #C7D2FE;
}

.education-separator {
    display: none;
}

.model-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.arrow-icon {
    color: #64748b;
    font-weight: 500;
}

/* Desktop Styles - Grid View */
@media (min-width: 1024px) {
    .container {
        flex-direction: column;
        max-width: 1400px;
        margin: 0 auto;
        padding: 2rem 3rem;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 2rem;
        position: relative;
        padding: 0;
        background: none;
        box-shadow: none;
    }

    .filter-section {
        background: white;
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .filter-section h3 {
        margin: 0;
        min-width: 140px;
        font-size: 1rem;
        color: #0f172a;
        text-transform: none;
        letter-spacing: normal;
        font-weight: 600;
    }

    .filter-content {
        flex: 1;
        max-width: 300px;
    }

    .filter-select {
        height: 42px;
        background-position: right 1rem center;
    }

    .model-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        gap: 1.5rem;
        margin-top: 1rem;
    }

    .model-item {
        background: white;
        border-radius: 12px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        transition: all 0.2s ease;
        border: 1px solid #f1f5f9;
        overflow: hidden;
    }

    .model-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
        border-color: #e2e8f0;
    }

    .model-link {
        padding: 0;
        height: 100%;
    }

    .model-content-wrapper {
        display: grid;
        grid-template-columns: 160px 1fr;
        height: 100%;
        gap: 0;
    }

    .model-thumbnail {
        display: block;
        width: 160px;
        height: 160px;
        object-fit: cover;
        border-radius: 0;
    }

    .model-info {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .model-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: #0f172a;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .education-tags-wrapper {
        margin-top: 1rem;
        gap: 0.625rem;
    }

    .education-tag {
        background-color: #f8fafc;
        padding: 0.5rem 0.875rem;
        border-radius: 8px;
        font-size: 0.875rem;
        border: 1px solid #e2e8f0;
        transition: all 0.2s ease;
        text-decoration: none;
    }

    .education-tag:hover {
        background-color: #f1f5f9;
        border-color: #cbd5e1;
        color: #334155;
    }

    .model-actions {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: white;
        padding: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .model-item:hover .model-actions {
        opacity: 1;
    }

    .edit-button {
        padding: 0.5rem;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .edit-button:hover {
        background-color: #f8fafc;
    }

    .arrow-icon {
        display: none;
    }
}

/* Tablet Breakpoint */
@media (min-width: 768px) and (max-width: 1023px) {
    .model-list {
        gap: 1rem;
    }

    .model-link {
        padding: 1.125rem;
    }

    .model-title {
        font-size: 1.05rem;
    }

    .education-tags-wrapper {
        margin-top: 0.75rem;
        gap: 0.5rem;
    }

    .education-tag {
        padding: 0.4375rem 0.8125rem;
    }

    .filter-section h3 {
        font-size: 0.9375rem;
    }

    .filter-select {
        padding: 0.875rem 1rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 90%; 
        margin: 0 auto; 
        padding: 1rem; 
    }

    .content {
        margin-top: 1rem; 
    }
}

@media (max-width: 640px) {
    .education-tag {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .education-tags-wrapper {
        margin-top: 0.375rem;
        gap: 0.375rem;
    }
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background-color: white;
    color: #1e293b;
    font-size: 0.9375rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-select:hover {
    border-color: #cbd5e1;
}

.filter-select option {
    padding: 0.5rem;
}

.edit-button {
    color: #64748b;
    text-decoration: none;
    padding: 0.25rem;
}

.edit-button:hover {
    color: #475569;
}