.category-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: none;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.category-image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.category-name {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.category-count {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(63, 81, 181, 0.8);
    color: white;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.category-description {
    font-size: 0.9rem;
    height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.category-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 6px;
    margin-top: 6px;
    transform: scale(0.9);
}

.category-actions .btn {
    border-radius: 4px;
    padding: 3px 8px;
    font-weight: 500;
    font-size: 0.8rem;
}

.categories-header {
    position: relative;
    background: linear-gradient(135deg, #3f51b5, #2c3e95);
    color: white;
    padding: 40px 0;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(63, 81, 181, 0.3);
}

.categories-header h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.categories-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.admin-actions {
    position: absolute;
    bottom: -20px;
    right: 30px;
}

.category-empty {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f9fa;
    border-radius: 15px;
    margin-top: 30px;
}

.category-empty i {
    font-size: 3rem;
    color: #3f51b5;
    margin-bottom: 20px;
}

.category-empty h3 {
    font-weight: 600;
    margin-bottom: 15px;
}

.category-empty p {
    color: #6c757d;
    margin-bottom: 20px;
}
