.modules-admin-container {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.module-category-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.category-header {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    cursor: move;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #1e293b;
}

.category-title i {
    color: #3b82f6;
    width: 20px;
    text-align: center;
}

.submodules-list {
    padding: 1rem;
    min-height: 50px;
    background: #ffffff;
}

.submodule-item {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: move;
}

.submodule-item:hover {
    border-color: #3b82f6;
    background: #e2e8f0;
}

.submodule-item i {
    color: #64748b;
    width: 20px;
    text-align: center;
}

.submodule-label {
    flex-grow: 1;
    font-size: 0.875rem;
    color: #334155;
}

.sortable-ghost {
    opacity: 0.4;
    border: 2px dashed #3b82f6 !important;
}

.sortable-chosen {
    background: #dbeafe !important;
}

.drag-handle {
    color: #94a3b8;
    cursor: move;
}

.save-modules-btn {
    position: sticky;
    bottom: 2rem;
    right: 2rem;
    float: right;
    background: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
    z-index: 100;
    border: none;
    cursor: pointer;
}

.save-modules-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}
